/* =================================================================
   RESET & BASE STYLES
   ================================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --navy: #1a1a2e;
    --slate: #2d3b55;
    --steel: #64748b;
    --white: #ffffff;
    --cloud: #f5f5f5;
    --mist: #fafafa;
    --gold: #f4c430;
    --slate-blue: #4a6fa5;
    --amber: #d4a017;
    --green: #28a745;

    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 40px;
    --space-3xl: 60px;

    /* Transitions */
    --transition-fast: 200ms ease;
    --transition-medium: 300ms ease;
    --transition-slow: 500ms ease;
    --transition-result: 1000ms ease-out;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--slate);
    background-color: var(--white);
}

/* =================================================================
   CONTAINER
   ================================================================= */
.assessment-container {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-md);
}

/* =================================================================
   HEADER SECTION
   ================================================================= */
.assessment-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.assessment-header h1 {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: var(--space-md);
    line-height: 1.2;
}

.assessment-header p {
    font-size: 18px;
    color: var(--slate);
    max-width: 700px;
    margin: 0 auto;
}

/* =================================================================
   PROGRESS INDICATOR
   ================================================================= */
.progress-indicator {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    margin-bottom: var(--space-xl);
}

.progress-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--cloud);
    transition: background-color var(--transition-medium);
}

.progress-dot.active {
    background-color: var(--gold);
}

.progress-dot.completed {
    background-color: var(--slate-blue);
}

/* =================================================================
   QUESTION COUNTER (v3.0)
   ================================================================= */
.question-counter {
    text-align: center;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--steel);
    margin-bottom: var(--space-lg);
    letter-spacing: 0.5px;
}

/* =================================================================
   FORM FIELD (v3.0 - for grouped questions)
   ================================================================= */
.form-field {
    margin-bottom: var(--space-md);
}

.form-field label {
    display: block;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: var(--space-xs);
}

.form-field .required {
    color: #dc3545;
}

/* =================================================================
   CONFIRMATION SECTION (v3.0 - replaces on-page results)
   ================================================================= */
.confirmation-section {
    display: none;
    text-align: center;
    padding: var(--space-3xl) var(--space-xl);
    animation: fadeIn 600ms ease;
}

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

.confirmation-section .checkmark {
    width: 80px;
    height: 80px;
    background-color: var(--green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-xl);
    animation: scaleIn 400ms ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.confirmation-section .checkmark svg {
    width: 40px;
    height: 40px;
    fill: var(--white);
}

.confirmation-section h2 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: var(--space-md);
}

.confirmation-section p {
    font-size: 18px;
    color: var(--slate);
    margin-bottom: var(--space-sm);
}

.confirmation-section .confirmation-detail {
    font-size: 16px;
    color: var(--steel);
    margin-bottom: var(--space-xl);
}

.confirmation-section .next-steps {
    background-color: var(--mist);
    border-radius: 12px;
    padding: var(--space-xl);
    margin-top: var(--space-xl);
    text-align: left;
}

.confirmation-section .next-steps h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: var(--space-sm);
}

.confirmation-section .next-steps p {
    font-size: 16px;
    color: var(--slate);
    margin-bottom: 0;
}

/* =================================================================
   QUESTION CARD
   ================================================================= */
.question-card {
    background-color: var(--white);
    border: 1px solid var(--cloud);
    border-radius: 12px;
    padding: var(--space-2xl);
    margin-bottom: var(--space-lg);
    box-shadow: 0 2px 8px rgba(26, 26, 46, 0.08);
    display: none;
}

.question-card.active {
    display: block;
    animation: fadeIn 400ms ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.question-label {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: var(--space-lg);
    display: block;
}

/* =================================================================
   FORM CONTROLS
   ================================================================= */

/* Dropdown */
.form-select {
    width: 100%;
    padding: 12px;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--slate);
    background-color: var(--white);
    border: 2px solid var(--cloud);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color var(--transition-medium);
    margin-bottom: var(--space-lg);
}

.form-select:focus {
    outline: none;
    border-color: var(--gold);
}

/* Checkboxes */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.checkbox-option {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color var(--transition-medium);
}

.checkbox-option:hover {
    background-color: var(--mist);
}

.checkbox-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: var(--space-md);
    cursor: pointer;
    accent-color: var(--gold);
}

.checkbox-option label {
    font-size: 16px;
    color: var(--slate);
    cursor: pointer;
    flex: 1;
}

/* Radio Buttons */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.radio-option {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color var(--transition-medium);
}

.radio-option:hover {
    background-color: var(--mist);
}

.radio-option input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-right: var(--space-md);
    cursor: pointer;
    accent-color: var(--gold);
}

.radio-option label {
    font-size: 16px;
    color: var(--slate);
    cursor: pointer;
    flex: 1;
}

/* Text Inputs */
.form-input {
    width: 100%;
    padding: 12px;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--slate);
    background-color: var(--white);
    border: 2px solid var(--cloud);
    border-radius: 8px;
    transition: border-color var(--transition-medium);
    margin-bottom: var(--space-lg);
}

.form-input:focus {
    outline: none;
    border-color: var(--gold);
}

.form-input::placeholder {
    color: var(--steel);
}

/* Textarea */
.form-textarea {
    width: 100%;
    padding: 12px;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--slate);
    background-color: var(--white);
    border: 2px solid var(--cloud);
    border-radius: 8px;
    transition: border-color var(--transition-medium);
    margin-bottom: var(--space-lg);
    min-height: 100px;
    resize: vertical;
}

.form-textarea:focus {
    outline: none;
    border-color: var(--gold);
}

/* =================================================================
   BUTTONS
   ================================================================= */
.button-group {
    display: flex;
    gap: var(--space-md);
    justify-content: flex-end;
}

.btn {
    padding: 14px 28px;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-medium);
}

.btn-primary {
    background-color: var(--gold);
    color: var(--navy);
}

.btn-primary:hover {
    background-color: var(--amber);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 196, 48, 0.3);
}

.btn-primary:disabled {
    background-color: var(--cloud);
    color: var(--steel);
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background-color: transparent;
    color: var(--slate);
    border: 2px solid var(--cloud);
}

.btn-secondary:hover {
    border-color: var(--slate-blue);
    color: var(--slate-blue);
}

/* =================================================================
   RESULTS DISPLAY
   ================================================================= */
.results-section {
    display: none;
    animation: fadeIn 600ms ease;
}

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

.results-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.results-header h2 {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: var(--space-lg);
}

.score-display {
    margin-bottom: var(--space-md);
}

.score-number {
    font-family: var(--font-heading);
    font-size: 72px;
    font-weight: 700;
    color: var(--gold);
}

.score-label {
    font-size: 14px;
    color: var(--steel);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stage-message {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 600;
    color: var(--slate);
    font-style: italic;
    margin-top: var(--space-md);
}

/* Profile Bars */
.profile-section {
    background-color: var(--mist);
    border-radius: 12px;
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.profile-section h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: var(--space-lg);
}

.profile-bar {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.profile-bar:last-child {
    margin-bottom: 0;
}

.profile-bar-label {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    color: var(--navy);
    width: 120px;
    flex-shrink: 0;
}

.profile-bar-track {
    flex: 1;
    height: 8px;
    background-color: var(--cloud);
    border-radius: 4px;
    overflow: hidden;
}

.profile-bar-fill {
    height: 100%;
    background-color: var(--slate-blue);
    border-radius: 4px;
    width: 0;
    transition: width var(--transition-result);
}

.profile-bar-value {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    color: var(--slate);
    width: 100px;
    flex-shrink: 0;
}

/* Team Hours Display */
.team-hours-section {
    background-color: var(--white);
    border: 2px solid var(--gold);
    border-radius: 12px;
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.team-hours-section h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: var(--space-md);
}

.hours-stat {
    margin-bottom: var(--space-md);
}

.hours-stat:last-child {
    margin-bottom: 0;
}

.hours-stat-label {
    font-size: 14px;
    color: var(--steel);
    margin-bottom: 4px;
}

.hours-stat-value {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--navy);
}

/* Insights */
.insights-section {
    margin-bottom: var(--space-xl);
}

.insights-section h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: var(--space-md);
}

.insight-item {
    background-color: var(--mist);
    border-left: 4px solid var(--gold);
    border-radius: 8px;
    padding: var(--space-md);
    margin-bottom: var(--space-md);
}

.insight-item p {
    font-size: 14px;
    color: var(--slate);
    line-height: 1.6;
}

/* Questions Worth Asking */
.questions-section {
    background-color: var(--cloud);
    border-radius: 12px;
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.questions-section h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: var(--space-md);
}

.questions-section ul {
    list-style: none;
    padding: 0;
}

.questions-section li {
    padding-left: var(--space-lg);
    position: relative;
    margin-bottom: var(--space-sm);
    font-size: 14px;
    color: var(--slate);
}

.questions-section li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: 700;
    font-size: 20px;
}

/* CTA Section */
.cta-section {
    background-color: var(--navy);
    border-radius: 12px;
    padding: var(--space-xl);
    text-align: center;
    color: var(--white);
}

.cta-section h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: var(--space-lg);
}

.cta-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta-primary {
    background-color: var(--gold);
    color: var(--navy);
    padding: 16px 32px;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-medium);
    text-decoration: none;
    display: inline-block;
}

.btn-cta-primary:hover {
    background-color: var(--amber);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 196, 48, 0.3);
}

.btn-cta-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    padding: 16px 32px;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-medium);
    text-decoration: none;
    display: inline-block;
}

.btn-cta-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Tier 2 Form */
.tier2-form {
    display: none;
}

.tier2-form.active {
    display: block;
}

.tier2-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.tier2-header h2 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: var(--space-md);
}

.tier2-header p {
    font-size: 16px;
    color: var(--slate);
}

.form-field {
    margin-bottom: var(--space-lg);
}

.form-field label {
    display: block;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: var(--space-sm);
}

.required {
    color: var(--gold);
}

/* Thank You */
.thank-you-section {
    display: none;
    text-align: center;
    padding: var(--space-3xl) 0;
}

.thank-you-section.active {
    display: block;
    animation: fadeIn 600ms ease;
}

.thank-you-section h2 {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: var(--space-lg);
}

.thank-you-section p {
    font-size: 18px;
    color: var(--slate);
    margin-bottom: var(--space-xl);
}

.checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
    animation: scaleIn 400ms ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.checkmark svg {
    width: 40px;
    height: 40px;
    fill: var(--white);
}

/* =================================================================
   RESPONSIVE
   ================================================================= */
@media (max-width: 768px) {
    .assessment-header h1 {
        font-size: 24px;
    }

    .assessment-header p {
        font-size: 16px;
    }

    .question-card {
        padding: var(--space-lg);
    }

    .score-number {
        font-size: 56px;
    }

    .profile-bar {
        flex-wrap: wrap;
    }

    .profile-bar-label {
        width: 100%;
        margin-bottom: var(--space-sm);
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn-cta-primary,
    .btn-cta-secondary {
        width: 100%;
    }

    .button-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

/* =================================================================
   ACCESSIBILITY
   ================================================================= */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles */
*:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}
