/* ClearTime Quiz Abandonment Overlay (#1489) */

#ct-quiz-abandonment-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 26, 38, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    padding: 16px;
    animation: ct-qa-fade-in 200ms ease-out;
}

#ct-quiz-abandonment-overlay.open {
    display: flex;
}

#ct-quiz-abandonment-overlay .ct-qa-dialog {
    background: #fff;
    color: #1a2233;
    max-width: 480px;
    width: 100%;
    border-radius: 18px;
    padding: 28px 24px 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    position: relative;
    animation: ct-qa-slide-up 280ms cubic-bezier(.22, 1, .36, 1);
}

#ct-quiz-abandonment-overlay .ct-qa-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #6b7280;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    border-radius: 8px;
}
#ct-quiz-abandonment-overlay .ct-qa-close:hover {
    background: #f3f4f6;
    color: #1a2233;
}

#ct-quiz-abandonment-overlay .ct-qa-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.25;
}

#ct-quiz-abandonment-overlay .ct-qa-subtitle {
    font-size: 15px;
    color: #4b5563;
    margin: 0 0 20px;
    line-height: 1.5;
}

#ct-quiz-abandonment-overlay .ct-qa-field {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

#ct-quiz-abandonment-overlay input[type="email"] {
    flex: 1;
    padding: 14px 16px;
    border: 1.5px solid #d1d5db;
    border-radius: 12px;
    font-size: 16px;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    font-family: inherit;
}
#ct-quiz-abandonment-overlay input[type="email"]:focus {
    border-color: #2c7be5;
    box-shadow: 0 0 0 3px rgba(44, 123, 229, .15);
}

#ct-quiz-abandonment-overlay button[type="submit"] {
    background: #2c7be5;
    color: #fff;
    border: none;
    padding: 14px 22px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, transform .15s;
    white-space: nowrap;
    font-family: inherit;
}
#ct-quiz-abandonment-overlay button[type="submit"]:hover:not(:disabled) {
    background: #1f63bf;
}
#ct-quiz-abandonment-overlay button[type="submit"]:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

#ct-quiz-abandonment-overlay .ct-qa-fineprint {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.5;
    margin: 8px 0 0;
}

#ct-quiz-abandonment-overlay [data-ct-status] {
    color: #b91c1c;
    font-size: 13px;
    margin-top: 6px;
    min-height: 18px;
}

#ct-quiz-abandonment-overlay [data-ct-step="thanks"] {
    text-align: center;
    padding: 18px 0 6px;
}
#ct-quiz-abandonment-overlay [data-ct-step="thanks"] .ct-qa-check {
    font-size: 44px;
    line-height: 1;
    color: #16a34a;
    margin-bottom: 12px;
}

@keyframes ct-qa-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes ct-qa-slide-up {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

@media (max-width: 480px) {
    #ct-quiz-abandonment-overlay .ct-qa-dialog {
        padding: 24px 18px 20px;
        border-radius: 14px;
    }
    #ct-quiz-abandonment-overlay .ct-qa-field {
        flex-direction: column;
    }
    #ct-quiz-abandonment-overlay button[type="submit"] {
        width: 100%;
    }
}
