.ak-crm-form {
    max-width: 540px;
    margin: 0 auto;
    padding: 16px 0;
    font-family: inherit;
}

.ak-crm-form-header {
    margin-bottom: 16px;
    text-align: center;
}

.ak-crm-form-title {
    font-size: 24px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 4px 0;
}

.ak-crm-form-subtitle {
    margin: 4px 0 12px 0;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
    color: #bea460;
    text-align: center;
}

.ak-crm-form-description {
    font-size: 14px;
    color: #4b5563;
    margin: 0 0 12px 0;
    text-align: center;
}

.ak-crm-form-progress {
    margin-bottom: 16px;
}

.ak-crm-form-progress-track {
    width: 100%;
    height: 4px;
    border-radius: 999px;
    background-color: #e5e7eb;
    overflow: hidden;
    margin-bottom: 6px;
}

.ak-crm-form-progress-bar {
    height: 4px;
    width: 0;
    border-radius: 999px;
    background-color: #bea460;
    transition: width 0.3s ease;
}

.ak-crm-form-progress-label {
    font-size: 12px;
    color: #6b7280;
    text-align: right;
}

.ak-crm-form-inner {
    position: relative;
    background-color: #ffffff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
}

.ak-crm-form-body {
    padding-bottom: 24px;
}

.ak-crm-form-step {
    display: none;
}

.ak-crm-form-step.is-active {
    display: block;
}

.ak-crm-form-step.is-hidden {
    display: none !important;
}

.ak-crm-form-step-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.ak-crm-form-field {
    margin-bottom: 12px;
}

.ak-crm-form-field.is-hidden {
    display: none !important;
}

.ak-crm-form-field label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.ak-crm-form-field input,
.ak-crm-form-field select,
.ak-crm-form-field textarea {
    width: 100%;
    padding: 8px 10px;
    font-size: 14px;
    border-radius: 6px;
    border: 1px solid #d4d4d8;
    background: #ffffff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
    max-width: 100%;
}

.ak-crm-form-field input:focus,
.ak-crm-form-field select:focus,
.ak-crm-form-field textarea:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

.ak-crm-form-field.has-error input,
.ak-crm-form-field.has-error select,
.ak-crm-form-field.has-error textarea {
    border-color: #dc2626;
    box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.3);
}

.ak-crm-form-field-error {
    margin: 4px 0 0;
    font-size: 12px;
    color: #b91c1c;
    display: none;
}

.ak-crm-form-field-description {
    font-size: 13px;
    color: #6b7280;
    margin: 4px 0 0;
}

.ak-crm-form-option {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
}

.ak-crm-form-footer {
    display: flex;
    gap: 8px;
    justify-content: flex-start;
    align-items: center;
    margin-top: 16px;
}

.ak-crm-form-footer button {
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 999px;
    border-width: 1px;
    border-style: solid;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, filter 0.2s ease;
}

.ak-crm-form-prev {
    background-color: transparent;
    border-color: #bea460;
    color: #bea460;
}

.ak-crm-form-next,
.ak-crm-form-submit {
    background-color: #bea460;
    border-color: #bea460;
    color: #ffffff;
}

.ak-crm-form-next:hover,
.ak-crm-form-submit:hover {
    filter: brightness(1.05);
}

.ak-crm-form-prev:hover {
    background-color: rgba(190, 164, 96, 0.08);
}

.ak-crm-form-footer button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ak-crm-form-message {
    margin-top: 12px;
    font-size: 14px;
    display: none;
}

.ak-crm-form-message.is-success {
    color: #047857;
}

.ak-crm-form-message.is-error {
    color: #b91c1c;
}

.ak-crm-form-inner.is-submitting {
    opacity: 0.7;
}

@media (max-width: 768px) {
    .ak-crm-modal .ak-crm-form-body {
        padding-bottom: 96px;
    }

    .ak-crm-modal .ak-crm-form-footer {
        position: sticky;
        bottom: 0;
        left: 0;
        right: 0;
        background: #ffffff;
        z-index: 20;
        margin-top: 0;
        flex-direction: column;
        gap: 12px;
        justify-content: flex-start;
        align-items: stretch;
    }

    .ak-crm-modal .ak-crm-form-footer button {
        width: 100%;
        margin-left: 0;
    }
}

@media (min-width: 769px) {
    .ak-crm-form-next,
    .ak-crm-form-submit {
        padding: 10px 28px;
        margin-left: auto;
    }

    .ak-crm-form-prev {
        margin-right: auto;
    }
}
