/* Family Business Assessment - Consolidated Styles */

/* ===================================
   GLOBAL STYLES
   =================================== */
* {
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
}

body {
    background: #ffffff;
    margin: 0;
    padding: 0;
    color: #1e293b;
}

.assessment-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.page-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.content-main {
    flex: 1;
}

/* Placeholder Styling */
input::placeholder,
textarea::placeholder,
select::placeholder {
    color: #cbd5e1 !important;
    opacity: 1;
}

input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
    color: #cbd5e1 !important;
    opacity: 1;
}

input::-moz-placeholder,
textarea::-moz-placeholder {
    color: #cbd5e1 !important;
    opacity: 1;
}

input:-ms-input-placeholder,
textarea:-ms-input-placeholder {
    color: #cbd5e1 !important;
    opacity: 1;
}

/* ===================================
   NAVBAR
   =================================== */
.assessment-navbar {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    padding: 1.25rem 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.brand-logo {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.brand-logo span {
    color: #f37022;
    font-weight: 800;
}

/* ===================================
   HERO SECTION
   =================================== */
.assessment-hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
}

.assessment-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(251, 191, 36, 0.1) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.3;
    }
}

.hero-badge {
    display: inline-block;
    background: rgba(243, 112, 34, 0.2);
    border: 1px solid rgba(243, 112, 34, 0.5);
    color: #f37022;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
}

.text-highlight {
    color: #f37022;
}

.hero-subtitle {
    font-size: 1.125rem;
    line-height: 1.7;
    opacity: 0.9;
    max-width: 600px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 900;
    color: #f37022;
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-top: 0.25rem;
}

.stat-divider {
    width: 2px;
    height: 40px;
    background: rgba(255, 255, 255, 0.3);
}

/* ===================================
   HERO CARD
   =================================== */
.hero-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    position: relative;
}

.score-circle {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #f37022;
}

.card-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.card-subtitle {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
}

/* ===================================
   FORM STYLING
   =================================== */
.form-label {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.code-input {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    text-align: center;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s;
}

.code-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    outline: none;
}

.btn-primary-custom {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-weight: 700;
    font-size: 1.125rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(30, 58, 138, 0.3);
    color: #fff;
}

/* ===================================
   TRUST INDICATORS
   =================================== */
.trust-indicators {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.875rem;
}

.trust-item i {
    font-size: 1.5rem;
    color: #3b82f6;
}

/* ===================================
   FEATURES SECTION
   =================================== */
.features-section {
    padding: 5rem 2rem;
    background: #f8fafc;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

.feature-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s;
    border: 2px solid #e2e8f0;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: #3b82f6;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3b82f6 0%, #1e3a8a 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #f37022;
    margin-bottom: 1.5rem;
}

.feature-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.feature-description {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* ===================================
   ABOUT SECTION
   =================================== */
.about-section {
    padding: 5rem 2rem;
    background: #ffffff;
}

.section-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #475569;
}

.quote-box {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-left: 4px solid #3b82f6;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    position: relative;
}

.quote-icon {
    color: #3b82f6;
    font-size: 2rem;
    opacity: 0.3;
    position: absolute;
    top: 1rem;
    left: 1rem;
}

.quote-text {
    font-size: 1.125rem;
    font-style: italic;
    color: #1e3a8a;
    font-weight: 600;
    margin: 0 0 0.5rem 2rem;
    line-height: 1.6;
}

.quote-author {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0 0 0 2rem;
    font-weight: 600;
}

.testimonial-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 2px solid #e2e8f0;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    font-size: 0.95rem;
    color: #1e293b;
}

/* ===================================
   FOOTER
   =================================== */
.footer-bar {
    background: #1e293b;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    padding: 1.5rem;
    font-size: 0.875rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    margin-top: auto;
}

/* ===================================
   CARD GLASS
   =================================== */
.card-glass {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

/* ===================================
   STEP INDICATOR
   =================================== */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-top: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
}

.step-circle.done {
    background: #10b981;
    border-color: #10b981;
    color: white;
}

.step-circle.active {
    background: #f37022;
    border-color: #f37022;
    color: #1e3a8a;
}

.step-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
}

.step-label.done,
.step-label.active {
    color: white;
}

.step-connector {
    width: 60px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    margin: 0;
    margin-bottom: 1.5rem;
}

.step-connector.done {
    background: #10b981;
}

/* ===================================
   QUESTIONS PAGE - SECTION CARDS
   =================================== */
.section-card {
    background: #fff;
    border-radius: 1.25rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    margin-bottom: 2rem;
    overflow: hidden;
    border: none;
    display: none;
}

.section-card.active {
    display: block;
}

.section-header {
    background: linear-gradient(135deg, #1a2a4a 0%, #2d4a7a 100%);
    color: white;
    padding: 1.2rem 1.8rem;
}

.section-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(243, 112, 34, 0.2);
    border: 2px solid #f37022;
    border-radius: 50%;
    color: #f37022;
    font-weight: 700;
    font-size: 0.85rem;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.question-item {
    padding: 1.5rem 1.8rem;
    border-bottom: 1px solid #f0f4f8;
    transition: background 0.2s;
}

.question-item:last-child {
    border-bottom: none;
}

.question-item:hover {
    background: #fafcff;
}

.question-text {
    font-size: 0.97rem;
    color: #2d3748;
    font-weight: 500;
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* ===================================
   QUESTIONS PAGE - ANSWER OPTIONS
   =================================== */
.answer-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.answer-option input[type="radio"] {
    display: none;
}

.answer-option label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    border: 2px solid #e2e8f0;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: #475569;
    transition: all 0.25s;
    background: #ffffff;
    position: relative;
}

.answer-option label::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 4px;
    flex-shrink: 0;
    transition: all 0.25s;
    background: #f8fafc;
    background-image: none;
}

.answer-option input:not(:checked)+label::before {
    background: #f8fafc;
    background-image: none;
    border-color: #cbd5e1;
}

.answer-option input:checked+label::before {
    background: #1a2a4a;
    border-color: #1a2a4a;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.answer-option input:checked+label {
    background: #f8fafc;
    border-color: #1a2a4a;
    color: #1a2a4a;
    box-shadow: 0 2px 8px rgba(26, 42, 74, 0.15);
}

.answer-option label:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}

.answer-option .option-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-left: auto;
    transition: all 0.25s;
}

.answer-option label[style*="#16a34a"] .option-letter {
    background: #f0fdf4;
    color: #16a34a;
}

.answer-option label[style*="#2563eb"] .option-letter {
    background: #eff6ff;
    color: #2563eb;
}

.answer-option label[style*="#d97706"] .option-letter {
    background: #fffbeb;
    color: #d97706;
}

.answer-option label[style*="#dc2626"] .option-letter {
    background: #fef2f2;
    color: #dc2626;
}

/* ===================================
   PROGRESS BAR
   =================================== */
.progress-bar-custom {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #f37022, #e09a1a);
    border-radius: 3px;
    transition: width 0.4s ease;
}

/* ===================================
   STICKY SUBMIT
   =================================== */
.sticky-submit {
    position: relative;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-top: 1px solid #e2e8f0;
    padding: 2rem 1.5rem 2.5rem;
    margin-top: 3rem;
    margin-bottom: 2rem;
    min-height: 150px;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.05);
}

/* ===================================
   RESULTS PAGE - GRADES
   =================================== */
.grade-badge {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -3px;
}

.grade-A {
    color: #166534;
}

.grade-B {
    color: #22c55e;
}

.grade-C {
    color: #eab308;
}

.grade-D {
    color: #f97316;
}

.grade-F {
    color: #ef4444;
}

.score-bar-track {
    background: #e2e8f0;
    border-radius: 999px;
    height: 12px;
    overflow: hidden;
    margin-top: 0.4rem;
}

.score-bar-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 1.2s ease;
}

/* ===================================
   RESULTS PAGE - CATEGORIES
   =================================== */
.category-card {
    background: #fff;
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}

.category-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* ===================================
   RESULTS PAGE - NEXT STEPS
   =================================== */
.next-step-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid #f0f4f8;
}

.next-step-item:last-child {
    border-bottom: none;
}

.step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f37022;
    flex-shrink: 0;
    margin-top: 0.5rem;
}

/* ===================================
   RESULTS PAGE - CTA CARD
   =================================== */
.cta-card {
    background: linear-gradient(135deg, #1a2a4a 0%, #2d4a7a 100%);
    border-radius: 1.5rem;
    padding: 2.5rem;
    color: white;
    text-align: center;
}

.fa-handshake {
    color: #f37022;
}

.btn-gold {
    background: #f37022;
    color: #1a2a4a;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 700;
    transition: all 0.3s;
}

.btn-gold:hover {
    background: #e09a1a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(240, 180, 41, 0.3);
    color: #1a2a4a;
}

/* ===================================
   RESPONSIVE STYLES
   =================================== */
@media (max-width: 768px) {
    .assessment-hero {
        padding: 2rem 0.5rem;
    }

    .feature-card {
        text-align: center;
    }

    .feature-icon {
        margin: auto;
    }

    .hero-card {
        padding: 15px 20px;
    }

    .hero-badge {
        font-size: 0.65rem;
        padding: 0.4rem 1rem;
        margin-bottom: 15px !important;
    }

    .hero-title {
        font-size: 27px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .stat-value {
        font-size: 18px;
    }

    .stat-label {
        font-size: 13px;
    }

    .score-circle {
        width: 60px;
        height: 60px;
        font-size: 20px;
    }

    .code-input {
        padding: 0px !important;
        font-size: 15px;
    }

    .hero-card .card-title {
        font-size: 22px;
    }

    .hero-card form button {
        padding: 12px;
        font-size: 15px;
    }

    .section-header {
        padding: 0.8rem 1.2rem;
    }

    #btn-proceed-questions,
    #btn-schedule-consultation {
        padding: 12px !important;
    }

    .next-section-btn {
        padding: 12px !important;
    }

    .question-item {
        padding: 1rem 1.2rem;
    }

    .hero-stats {
        justify-content: center;
    }

    .stat-divider {
        display: none;
    }

    .trust-indicators {
        /* flex-direction: column; */
        gap: 1rem;
    }

    .trust-item {
        text-align: center;
    }

    .section-title {
        font-size: 27px !important;
        text-align: center !important;
    }

    .section-text {
        text-align: center;
    }

    .brand-logo img {
        width: 100% !important;
        height: unset !important;
    }

    .features-section,
    .about-section {
        padding: 35px 15px;
    }

    /* Step Indicator - Hide Labels on Mobile */
    .step-label {
        display: none !important;
    }

    .step-connector {
        position: relative;
        top: 10px;
    }
}

@media (max-width: 576px) {
    .answer-options {
        grid-template-columns: 1fr;
    }

    .step-indicator {
        max-width: 100% !important;
    }

    .step-label {
        font-size: 0.7rem;
        max-width: 100px !important;
    }
}