/* ===== AI WAITLIST MODAL ===== */

.ai-waitlist-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(6, 26, 51, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 24px;
}

.ai-waitlist-overlay.active {
    opacity: 1;
    visibility: visible;
}

.ai-waitlist-modal {
    background: #ffffff;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    position: relative;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.3s ease;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
}

.ai-waitlist-overlay.active .ai-waitlist-modal {
    transform: translateY(0) scale(1);
}

.ai-waitlist-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #637080;
    transition: all 0.2s ease;
    z-index: 1;
}

.ai-waitlist-close:hover {
    background: #f0f2f5;
    color: #061A33;
}

/* Header */
.ai-waitlist-header {
    text-align: center;
    margin-bottom: 24px;
}

.ai-waitlist-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(30, 144, 255, 0.1), rgba(30, 144, 255, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.ai-waitlist-icon .material-symbols-outlined {
    font-size: 28px;
    color: var(--blue);
}

.ai-waitlist-header .badge {
    margin-bottom: 16px;
    display: inline-flex;
    font-size: 12px;
}

.ai-waitlist-header h2 {
    font-size: clamp(1.3rem, 2.5vw, 1.6rem);
    font-weight: 800;
    color: #061A33;
    line-height: 1.25;
    margin-bottom: 10px;
}

.ai-waitlist-header p {
    font-size: 14px;
    color: #637080;
    line-height: 1.65;
    max-width: 460px;
    margin: 0 auto;
}

/* ===== STEPPER PROGRESS INDICATOR ===== */
.wizard-stepper {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 28px;
    padding: 0 4px;
    gap: 0;
}

.wizard-stepper-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 48px;
    flex-shrink: 0;
}

.wizard-stepper-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    background: #ECEEF1;
    color: #828C99;
    border: 2px solid transparent;
    transition: all 0.35s ease;
    position: relative;
    flex-shrink: 0;
}

/* Active step */
.wizard-stepper-step.active .wizard-stepper-circle {
    background: var(--blue);
    color: #ffffff;
    border-color: rgba(30, 144, 255, 0.3);
    box-shadow: 0 0 0 4px rgba(30, 144, 255, 0.12);
}

/* Completed step */
.wizard-stepper-step.completed .wizard-stepper-circle {
    background: #32CD32;
    color: #ffffff;
    border-color: rgba(50, 205, 50, 0.2);
}

.wizard-stepper-label {
    font-size: 11px;
    font-weight: 500;
    color: #C1C6CC;
    text-align: center;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.wizard-stepper-step.active .wizard-stepper-label {
    color: var(--blue);
    font-weight: 600;
}

.wizard-stepper-step.completed .wizard-stepper-label {
    color: #32CD32;
    font-weight: 600;
}

.wizard-stepper-line {
    flex: 1;
    height: 2px;
    background: #ECEEF1;
    margin: 16px 4px 0;
    border-radius: 1px;
    transition: background 0.35s ease;
    min-width: 16px;
}

.wizard-stepper-line.completed {
    background: #32CD32;
}

/* ===== WIZARD STEPS ===== */
.wizard-step {
    display: none;
    animation: wizardFadeIn 0.3s ease;
}

.wizard-step.active {
    display: block;
}

@keyframes wizardFadeIn {
    from { opacity: 0; transform: translateX(12px); }
    to { opacity: 1; transform: translateX(0); }
}

.wizard-step-title {
    font-size: 16px;
    font-weight: 700;
    color: #061A33;
    margin-bottom: 20px;
}

/* Required star */
.required-star {
    color: var(--blue);
    font-weight: 700;
}

/* Helper text */
.form-helper {
    font-size: 12px;
    color: #828C99;
    margin-bottom: 4px;
    font-style: italic;
}

/* ===== FORM FIELDS ===== */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 4px;
}

.form-group label:not(.checkbox-label):not(.radio-label) {
    font-size: 13px;
    font-weight: 600;
    color: #445366;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    padding: 10px 14px;
    border: 1px solid #D8DEE3;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: #061A33;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    resize: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(30, 144, 255, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #C1C6CC;
}

/* Checkboxes */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.checkbox-group--wide {
    gap: 8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 400;
    color: #445366;
    cursor: pointer;
    padding: 8px 14px;
    border: 1px solid #ECEEF1;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.checkbox-label:hover {
    border-color: var(--blue);
    background: rgba(30, 144, 255, 0.04);
}

.checkbox-label input[type="checkbox"] {
    accent-color: var(--blue);
    width: 16px;
    height: 16px;
}

/* Select All checkbox label */
.checkbox-label--select-all {
    width: 100%;
    background: rgba(30, 144, 255, 0.03);
    border-color: rgba(30, 144, 255, 0.15);
}

.checkbox-label--select-all strong {
    color: var(--blue);
    font-weight: 600;
}

/* Radio buttons */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #445366;
    cursor: pointer;
    padding: 12px 16px;
    border: 1px solid #ECEEF1;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.radio-label:hover {
    border-color: var(--blue);
    background: rgba(30, 144, 255, 0.04);
}

/* Selected radio/checkbox states */
.radio-label.selected,
.checkbox-label.selected {
    border-color: var(--blue);
    background: rgba(30, 144, 255, 0.06);
}

.radio-label input[type="radio"] {
    accent-color: var(--blue);
    width: 16px;
    height: 16px;
}

/* Pain point "Something else" text field */
.painpoint-other-wrap {
    margin-top: 10px;
}

.painpoint-other-wrap input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #D8DEE3;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: #061A33;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.painpoint-other-wrap input:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(30, 144, 255, 0.1);
}

.painpoint-other-wrap input::placeholder {
    color: #C1C6CC;
}

/* ===== WIZARD NAVIGATION ===== */
.wizard-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #ECEEF1;
}

.btn-ghost {
    background: none;
    border: none;
    color: #637080;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-ghost:hover {
    background: #f0f2f5;
    color: #061A33;
}

.wizard-next {
    margin-left: auto;
    min-width: 140px;
    justify-content: center;
    font-size: 15px;
    padding: 12px 24px;
}

.wizard-next .material-symbols-outlined {
    font-size: 18px;
}

/* ===== SUCCESS STATE ===== */
.waitlist-success {
    text-align: center;
    padding: 32px 20px;
}

.waitlist-success .material-symbols-outlined {
    font-size: 56px;
    color: #32CD32;
    margin-bottom: 16px;
}

.waitlist-success h3 {
    font-size: 22px;
    font-weight: 700;
    color: #061A33;
    margin-bottom: 8px;
}

.waitlist-success p {
    font-size: 15px;
    color: #637080;
    line-height: 1.65;
}

/* Footer */
.ai-waitlist-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #ECEEF1;
}

.ai-waitlist-footer span {
    font-size: 13px;
    color: #828C99;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ai-waitlist-footer .material-symbols-outlined {
    font-size: 16px;
}

/* ===== COMING SOON BADGE ===== */
.badge-coming-soon {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(30, 144, 255, 0.1);
    color: var(--blue);
}

.section--dark .badge-coming-soon {
    background: rgba(30, 144, 255, 0.15);
    color: #60b4ff;
}

/* Validation error */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #f44336;
}

.validation-msg {
    font-size: 12px;
    color: #f44336;
    margin-top: 8px;
    display: none;
    align-items: center;
    gap: 4px;
}

.validation-msg.show {
    display: flex;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
    .ai-waitlist-modal {
        padding: 28px 20px;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .ai-waitlist-header h2 {
        font-size: 1.2rem;
    }
    /* Stepper: hide labels on small screens */
    .wizard-stepper-label {
        display: none;
    }
    .wizard-stepper-circle {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    .wizard-stepper-line {
        margin-top: 14px;
    }
}
