/* Enhanced Persona Quiz Card Styling */
.persona-quiz-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
    border: 2px solid rgba(59,122,222,.15);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 12px 32px rgba(59,122,222,.08), 0 4px 16px rgba(0,0,0,.04);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    grid-column: span 2;
    align-self: start;
}

.persona-quiz-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3B7ADE 0%, #2E5EB1 50%, #1E3A8A 100%);
    border-radius: 20px 20px 0 0;
}

.persona-quiz-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(59,122,222,.12), 0 8px 20px rgba(0,0,0,.06);
    border-color: rgba(59,122,222,.25);
}

.persona-quiz-header {
    text-align: center;
    margin-bottom: 0px;
}

.persona-quiz-card .eyebrow {
    background: linear-gradient(135deg, #3B7ADE 0%, #2E5EB1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    font-size: 13px;
    letter-spacing: 0.5px;
    position: relative;
    display: inline-block;
    margin-bottom: 12px;
}

.persona-quiz-card .eyebrow::after {
    content: '⚡';
    margin-left: 8px;
    font-size: 14px;
}

.persona-quiz-card h3 {
    color: #142F57;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 16px;
    letter-spacing: -0.01em;
}

.persona-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: rgba(59,122,222,.1);
    border-radius: 999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3B7ADE 0%, #2E5EB1 100%);
    border-radius: 999px;
    transition: width 0.3s ease;
}

.progress-steps {
    font-size: 14px;
    color: #6B7280;
    font-weight: 600;
}

.quiz-step {
    border: none;
    padding: 0;
    margin: 0;
}

.quiz-question {
    font-size: 20px;
    font-weight: 700;
    color: #142F57;
    margin: 0 0 16px;
    text-align: center;
    line-height: 1.3;
}

.quiz-options {
    display: grid;
    gap: 12px;
    margin-bottom: 20px;
}

.grid-2x2 {
    grid-template-columns: repeat(2, 1fr);
}

.quiz-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: #fff;
    border: 2px solid rgba(59,122,222,.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    width: 100%;
    min-height: 60px;
}

.quiz-option:hover {
    border-color: rgba(59,122,222,.3);
    background: rgba(59,122,222,.02);
    transform: translateY(-1px);
}

.quiz-option.selected {
    border-color: #3B7ADE;
    background: rgba(59,122,222,.05);
    box-shadow: 0 4px 12px rgba(59,122,222,.15);
}

.option-icon {
    font-size: 16px;
    color: #3B7ADE;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(59,122,222,.1);
    border-radius: 8px;
}

.option-text {
    font-size: 15px;
    font-weight: 600;
    color: #374151;
    line-height: 1.3;
}

/* Interstitial */
.interstitial-content {
    text-align: center;
    padding: 40px 20px;
}

.loading-spinner {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.spinner-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #3B7ADE;
    animation: spinner-pulse 1.2s infinite ease-in-out;
}

.spinner-dot:nth-child(2) { animation-delay: 0.15s; }
.spinner-dot:nth-child(3) { animation-delay: 0.30s; }

@keyframes spinner-pulse {
    0%, 100% { transform: scale(0.8); opacity: 0.25; }
    50% { transform: scale(1.25); opacity: 1; }
}

.interstitial-content h4 {
    color: #142F57;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 20px;
}

.mini-progress {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.mini-bar {
    height: 6px;
    background: rgba(59,122,222,.1);
    border-radius: 999px;
    overflow: hidden;
}

.mini-fill {
    height: 100%;
    background: linear-gradient(90deg, #3B7ADE 0%, #2E5EB1 100%);
    border-radius: 999px;
    transition: width 0.3s ease;
}

/* Persona Reveal */
.persona-reveal {
    background: rgba(59,122,222,.05);
    border: 1px solid rgba(59,122,222,.1);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    margin-bottom: 16px;
}

.reveal-label {
    font-size: 12px;
    color: #6B7280;
    margin-bottom: 6px;
    font-weight: 600;
}

.reveal-name {
    font-size: 20px;
    font-weight: 800;
    color: #3B7ADE;
    margin-bottom: 6px;
}

.reveal-description {
    font-size: 14px;
    color: #374151;
    line-height: 1.3;
}

.persona-reveal.blurred {
    filter: blur(6px);
    user-select: none;
    pointer-events: none;
    transition: filter 0.4s ease;
}

/* Lead Form */
.lead-form {
    display: grid;
    gap: 0px;
    margin-bottom: 15px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 70px;
    position: relative;
}

.form-field label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.form-field input {
    padding: 12px 16px;
    border: 2px solid rgba(59,122,222,.15);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fff;
    width: 100%;
}

.form-field:last-child input {
    padding: 12px 20px;
}

.form-field input:focus {
    border-color: #3B7ADE;
    box-shadow: 0 0 0 3px rgba(59,122,222,.1);
    outline: none;
}

.form-field input.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239,68,68,.15);
}

.field-error {
    color: #ef4444;
    font-size: 12px;
    margin-top: 4px;
    font-weight: 500;
    position: absolute;
    bottom: -20px;
    left: 0;
    right: 0;
}

.form-actions {
    margin-top: 20px;
    margin-bottom: 8px;
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #3B7ADE 0%, #2E5EB1 100%);
    border: none;
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(59,122,222,.3);
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(59,122,222,.4);
    background: linear-gradient(135deg, #2E5EB1 0%, #1E3A8A 100%);
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.social-proof {
    text-align: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(59,122,222,.1);
}

.proof-text {
    font-size: 13px;
    color: #6B7280;
    font-weight: 500;
}

.sr-only {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* Thank You Step */
.thank-you-content {
    text-align: center;
    padding: 0 0 10px;
}

.thank-you-icon {
    font-size: 36px;
    color: #3B7ADE;
    margin-bottom: 12px;
    font-weight: bold;
}

.thank-you-title {
    font-size: 22px;
    font-weight: 800;
    color: #142F57;
    margin: 0 0 8px;
}

.thank-you-message {
    font-size: 15px;
    color: #6B7280;
    margin: 0 0 16px;
    line-height: 1.4;
}

.thank-you-persona {
    background: rgba(59,122,222,.05);
    border: 1px solid rgba(59,122,222,.1);
    border-radius: 12px;
    padding: 14px;
    margin: 0 0 16px;
    text-align: center;
}

.thank-you-persona-label {
    font-size: 13px;
    color: #6B7280;
    margin-bottom: 4px;
    font-weight: 600;
}

.thank-you-persona-name {
    font-size: 20px;
    font-weight: 800;
    color: #3B7ADE;
    margin-bottom: 4px;
}

.thank-you-persona-description {
    font-size: 14px;
    color: #374151;
    line-height: 1.3;
}

.thank-you-cta {
    margin-top: 16px;
    text-align: center;
}

.instant-quote-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #3B7ADE 0%, #2E5EB1 100%);
    color: #fff;
    padding: 14px 32px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(.4,0,.2,1);
    font-family: "Plus Jakarta Sans", "Inter", Arial, Helvetica, sans-serif;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: .02em;
    box-shadow: 0 6px 24px rgba(59,122,222,.35);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.instant-quote-cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.instant-quote-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(59,122,222,.45);
    background: linear-gradient(135deg, #2E5EB1 0%, #1E3A8A 100%);
    color: #fff;
    text-decoration: none;
}

.instant-quote-cta-btn:hover::before {
    left: 100%;
}

.thank-you-cta-subtext {
    font-size: 13px;
    color: #6B7280;
    margin: 8px 0 0;
    font-weight: 500;
}

.thank-you-actions {
    margin-top: 10px;
}

.restart-quiz-btn {
    background: linear-gradient(135deg, #3B7ADE 0%, #2E5EB1 100%);
    border: none;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 24px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(59,122,222,.3);
}

.restart-quiz-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(59,122,222,.4);
    background: linear-gradient(135deg, #2E5EB1 0%, #1E3A8A 100%);
}

.restart-quiz-link {
    background: none;
    border: none;
    box-shadow: none;
    color: #6B7280;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 16px;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.restart-quiz-link:hover {
    background: none;
    box-shadow: none;
    color: #3B7ADE;
    transform: none;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .persona-quiz-card {
        padding: 20px;
        grid-column: span 1;
    }
    
    .grid-2x2 {
        grid-template-columns: 1fr;
    }
    
    .quiz-option {
        padding: 14px;
    }
    
    .quiz-question {
        font-size: 18px;
    }
    
    .persona-quiz-card h3 {
        font-size: 22px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }

    .instant-quote-cta-btn {
        width: 100%;
        padding: 14px 24px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .persona-quiz-card {
        padding: 16px;
    }
    
    .quiz-option {
        padding: 12px;
    }
    
    .quiz-question {
        font-size: 16px;
    }
    
    .persona-quiz-card h3 {
        font-size: 20px;
    }
}
