/* Freedom Number Calculator - Distinct Styling */
/* UPDATED WITH BRAND COLOR PALETTE */
/* Primary: Dark Green #174A38, Hunter Green #205239, Gold #D4AF37 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #434B4D;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* Skip Navigation Link for Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #174A38;
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  z-index: 100;
  font-weight: 600;
}

.skip-link:focus {
  top: 0;
}

/* ========================================
   ACCESSIBILITY: FOCUS INDICATORS
   Added for WCAG 2.1 AA Compliance
   ======================================== */

/* General Link Focus */
a:focus {
    outline: 3px solid #174A38;
    outline-offset: 2px;
}

/* Button Focus Styles */
button:focus {
    outline: 3px solid #174A38;
    outline-offset: 2px;
}

.btn-primary:focus {
    outline: 3px solid #D4AF37;
    outline-offset: 3px;
    box-shadow: 0 6px 16px rgba(23, 74, 56, 0.3), 0 0 0 6px rgba(212, 175, 55, 0.2);
}

.btn-secondary:focus {
    outline: 3px solid #174A38;
    outline-offset: 3px;
    box-shadow: 0 0 0 6px rgba(23, 74, 56, 0.15);
}

.btn-cta:focus {
    outline: 3px solid #174A38;
    outline-offset: 3px;
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.3), 0 0 0 6px rgba(23, 74, 56, 0.2);
}

.btn-large:focus {
    outline-width: 4px;
}

/* Screen Reader Only - Hides content visually but keeps it accessible */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}



/* Header - Tightened spacing for above-the-fold optimization */
header {
    text-align: center;
    padding: 20px 20px;
    background: white;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.logo-container {
    margin-bottom: 10px;
}

.logo {
    max-width: 450px;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.presented-by {
    color: #636E70;
    font-size: 14px;
    margin: 5px 0;
}

.site-title {
    font-size: 28px;
    font-weight: 700;
    color: #174A38;
    margin: 5px 0;
}

.site-title a {
    color: #174A38;
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-title a:hover {
    color: #205239;
}

/* Progress Dots - Different from bar */
.progress-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 30px 0;
    padding: 20px;
}

.dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #5C6670 !important;
    color: #FFFFFF !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
}

.dot.active {
    background: #174A38;
    color: white;
    box-shadow: 0 4px 12px rgba(23, 74, 56, 0.3);
    transform: scale(1.1);
}

.dot.completed {
    background: #D4AF37;
    color: #174A38;
}

/* Main Content */
main {
    min-height: 400px;
}

.step {
    display: none;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    animation: fadeIn 0.4s ease;
}

.step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1 {
    font-size: 36px;
    color: #174A38;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: 32px;
    color: #174A38;
    margin-bottom: 15px;
    font-weight: 700;
}

.step-description {
    font-size: 18px;
    color: #5A6C7D;
    margin-bottom: 20px;
}

.step-hint {
    font-size: 16px;
    color: #636E70;
    font-style: italic;
    margin-bottom: 25px;
}

/* Welcome Screen - Hero Style */
.hero-box {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #174A38 0%, #205239 100%);
    color: white;
    border-radius: 12px;
}

.hero-box h2 {
    color: white;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 400;
}

.hero-text {
    font-size: 24px;
    font-weight: 600;
    margin-top: 15px;
}

/* Benefit Cards */
.benefit-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.benefit-card {
    background: #F8F9FA;
    padding: 30px 20px;
    border-radius: 8px;
    text-align: center;
    border: 2px solid #6B7280;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    border-color: #D4AF37;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

.benefit-number {
    font-size: 48px;
    font-weight: 700;
    color: #7A5C12 !important;
    line-height: 1;
}

.benefit-text {
    font-size: 16px;
    color: #5A6C7D;
    margin-top: 10px;
}

.intro-text {
    font-size: 18px;
    text-align: center;
    color: #434B4D;
    margin: 30px 0;
}

/* Form Cards */
.form-card {
    background: #F8F9FA;
    padding: 30px;
    border-radius: 8px;
    margin: 25px 0;
}

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    font-weight: 600;
    font-size: 16px;
    color: #434B4D;
    margin-bottom: 8px;
}

.input-hint {
    font-size: 14px;
    color: #636E70;
    margin-bottom: 10px;
    font-style: italic;
}

input[type="text"],
input[type="email"],
input[type="number"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #6B7280;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus {
    outline: 3px solid #174A38;
    outline-offset: 2px;
    border-color: #174A38;
    box-shadow: 0 0 0 3px rgba(23, 74, 56, 0.1);
}

/* Money Input - Special Styling */
.money-input-group {
    margin: 30px 0;
}

.money-input {
    display: flex;
    align-items: center;
    background: white;
    border: 3px solid #174A38;
    border-radius: 8px;
    padding: 5px 15px;
    font-size: 24px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.money-input:focus-within {
    border-color: #D4AF37;
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
}

.currency-symbol {
    color: #8B6914 !important;
    font-size: 28px;
    font-weight: 700;
    margin-right: 5px;
}

.money-input input {
    flex: 1;
    border: none;
    padding: 15px 10px;
    font-size: 24px;
    font-weight: 600;
    color: #434B4D;
}

.money-input input:focus {
    outline: 3px solid #174A38;
    outline-offset: 2px;
    border: none;
    box-shadow: none;
}

.per-period {
    color: #5A6C7D;
    font-size: 18px;
    margin-left: 5px;
}

/* Slider Styling */
.slider-container {
    margin: 20px 0;
}

input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #6B7280;
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #174A38;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(23, 74, 56, 0.3);
}

input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #174A38;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(23, 74, 56, 0.3);
}

.slider-value {
    text-align: center;
    margin-top: 15px;
    font-size: 20px;
    font-weight: 600;
    color: #174A38;
}

.slider-value span {
    font-size: 28px;
    color: #8B6914 !important;
}

/* Buttons */
.button-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.btn-primary,
.btn-secondary,
.btn-cta {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #174A38;
    color: white;
    box-shadow: 0 4px 12px rgba(23, 74, 56, 0.3);
}

.btn-primary:hover {
    background: #205239;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(23, 74, 56, 0.4);
}

.btn-secondary {
    background: #6B7280;
    color: #FFFFFF;
}

.btn-secondary:hover {
    background: #cbd5e0;
}

.btn-cta {
    background: linear-gradient(135deg, #D4AF37 0%, #B8941F 100%);
    color: #174A38;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.5);
}

.btn-large {
    padding: 18px 40px;
    font-size: 18px;
    width: 100%;
    max-width: 400px;
    display: block;
    margin: 20px auto;
}

/* Results Page */
.results-hero {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #174A38 0%, #205239 100%);
    color: white;
    border-radius: 12px;
    margin-bottom: 30px;
}

.results-intro {
    font-size: 20px;
    margin-bottom: 10px;
}

.freedom-number-display {
    font-size: 72px;
    font-weight: 700;
    color: #D4AF37;
    line-height: 1;
    margin: 20px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.results-subtext {
    font-size: 24px;
    margin-top: 10px;
}

.chart-container {
    background: white;
    padding: 30px;
    border-radius: 8px;
    margin: 30px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.breakdown-card {
    background: #F8F9FA;
    padding: 30px;
    border-radius: 8px;
    margin: 30px 0;
}

.breakdown-card h3 {
    color: #174A38;
    margin-bottom: 20px;
}

.breakdown-table {
    font-size: 16px;
    line-height: 2;
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #6B7280;
}

.breakdown-label {
    font-weight: 600;
    color: #434B4D;
}

.breakdown-value {
    font-weight: 600;
    color: #174A38;
}

.breakdown-total {
    background: #174A38;
    color: white;
    padding: 15px;
    border-radius: 6px;
    margin-top: 15px;
    font-size: 18px;
}

.breakdown-total .breakdown-value {
    color: white;  /* Override dark green to white for readability */
}

.breakdown-total .breakdown-label {
    color: white;  /* Override dark grey to white for readability */
}

.breakdown-gap {
    background: #D4AF37;
    color: #174A38;
    padding: 20px;
    border-radius: 6px;
    margin-top: 10px;
    font-size: 20px;
    font-weight: 700;
}

/* Sales Content */
.sales-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    margin-top: 30px;
    border: 3px solid #9A7B1A;
}

.sales-content h3 {
    color: #174A38;
    margin: 25px 0 15px 0;
}

.sales-content p {
    font-size: 18px;
    line-height: 1.8;
    margin: 15px 0;
    color: #434B4D;
}

.divider-line {
    height: 3px;
    background: #E0E6ED;
    margin: 30px 0;
}

.playbook-features {
    list-style: none;
    padding: 0;
    margin: 25px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.playbook-features li {
    background: #F8F9FA;
    padding: 15px 20px 15px 25px;
    border-radius: 6px;
    border-left: 4px solid #9A7B1A;
    font-weight: 600;
    color: #174A38;
}

.signature {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #6B7280;
    font-size: 16px;
    color: #5A6C7D;
    font-style: italic;
}

/* Error Messages */
.error-message {
    color: #B71C1C;
    background: #FADBD8;
    padding: 12px 15px;
    border-radius: 6px;
    margin-top: 15px;
    display: none;
}

.error-message.show {
    display: block;
}

/* Privacy Note */
.privacy-note {
    text-align: center;
    font-size: 14px;
    color: #636E70;
    margin-top: 20px;
    font-style: italic;
}

/* Disclaimer */
.disclaimer-notice {
    background: linear-gradient(135deg, #FFF9E6 0%, #FFF3D1 100%);
    border: 2px solid #9A7B1A;
    border-radius: 8px;
    padding: 20px 25px;
    margin: 40px 0 20px 0;
    font-size: 13px;
    line-height: 1.6;
    color: #5A6C7D;
}

.disclaimer-notice p {
    margin: 10px 0;
}

.disclaimer-notice strong {
    color: #174A38;
}

.disclaimer-notice a {
    color: #174A38;
    font-weight: 600;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px 20px;
    color: #636E70;
    font-size: 14px;
}

.footer-links {
    margin: 15px 0;
}

.footer-links a {
    color: #174A38;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #D4AF37;
}

.privacy-footer {
    margin-top: 15px;
    font-size: 13px;
    color: #636E70;
    font-style: italic;
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #2E7D32;
    color: white;
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 9999;
    display: none;
}

.cookie-banner.show {
    display: block;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-text {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.5;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.cookie-decline {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cookie-decline:hover {
    background: rgba(255, 255, 255, 0.1);
}

.cookie-accept {
    background: white;
    color: #2E7D32;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cookie-accept:hover {
    background: #f0f0f0;
}

/* Exit Intent Popup Styles */
/* Exit popup overlay */
#exitPopupOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Exit popup modal */
.exit-popup-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 40px;
    border-radius: 8px;
    max-width: 550px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
    z-index: 10000;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Close button */
.exit-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.exit-popup-close:hover {
    color: #000;
}

/* Popup content */
.exit-popup-title {
    font-size: 1.8rem;
    color: #2E7D32;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.exit-popup-subtitle {
    font-size: 1rem;
    color: #434B4D;
    margin: 0 0 25px 0;
    line-height: 1.5;
}

.exit-popup-benefits {
    margin: 25px 0;
}

.exit-benefit-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: #434B4D;
}

.check-icon {
    color: #2E7D32;
    font-weight: bold;
    margin-right: 10px;
    font-size: 1.2rem;
}

/* Form styles */
.exit-popup-modal .form-group {
    margin-bottom: 15px;
}

.exit-popup-modal input[type="text"],
.exit-popup-modal input[type="email"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #6B7280;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.exit-popup-modal input:focus {
    outline: none;
    border-color: #2E7D32;
}

.exit-popup-modal .btn-primary {
    width: 100%;
    padding: 14px;
    background: #2E7D32;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.exit-popup-modal .btn-primary:hover {
    background: #1B5E20;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

.exit-popup-modal .btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.exit-popup-modal .error-message {
    color: #d32f2f;
    font-size: 0.9rem;
    margin-top: 10px;
    display: none;
}

.exit-popup-modal .error-message.show {
    display: block;
}

/* Confirmation screen */
#exitPopupConfirmation {
    text-align: center;
    display: none;
}

#exitPopupConfirmation h2 {
    color: #2E7D32;
    margin-bottom: 15px;
}

#exitPopupConfirmation p {
    color: #434B4D;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* FIX: Ensure text on dark green backgrounds is white and readable */
.breakdown-row.total-row,
[style*="background: #2E7D32"],
[style*="background:#2E7D32"],
[style*="background-color: #2E7D32"],
[style*="background-color:#2E7D32"] {
    color: white !important;
}

/* Ensure all child elements within dark green backgrounds are also white */
[style*="background: #2E7D32"] *,
[style*="background:#2E7D32"] *,
[style*="background-color: #2E7D32"] *,
[style*="background-color:#2E7D32"] * {
    color: white !important;
}

/* Responsive */

/* ================================================================ */
/* RESPONSIVE MEDIA QUERIES - MOBILE OPTIMIZED */
/* ================================================================ */

/* Tablet and Mobile Devices (768px and below) */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    header {
        padding: 15px;
        margin-bottom: 15px;
    }

    .logo {
        max-width: 300px;
    }

    .site-title {
        font-size: 24px;
    }

    .presented-by {
        font-size: 13px;
    }

    .step {
        padding: 25px 20px;
    }

    .playbook-features {
        grid-template-columns: 1fr;
    }

    h2 {
        font-size: 24px;
        line-height: 1.3;
    }

    h3 {
        font-size: 20px;
    }

    .intro-text {
        font-size: 16px;
        margin: 20px 0;
    }

    /* Forms and Inputs */
    .form-card {
        padding: 20px;
    }

    .form-group {
        margin-bottom: 20px;
    }

    label {
        font-size: 15px;
    }

    input[type="text"],
    input[type="email"],
    input[type="number"] {
        padding: 12px;
        font-size: 16px; /* Prevent iOS zoom */
    }

    /* Money Input */
    .money-input {
        font-size: 20px;
    }

    .currency-symbol {
        font-size: 24px;
    }

    .money-input input {
        font-size: 20px;
        padding: 12px 8px;
    }

    .per-period {
        font-size: 16px;
    }

    /* Buttons */
    .btn-primary,
    .btn-secondary,
    .btn-cta {
        padding: 14px 24px;
        font-size: 16px;
    }

    .btn-large {
        padding: 16px 32px;
        font-size: 17px;
        max-width: 100%;
    }

    .button-group {
        flex-direction: column;
        gap: 10px;
    }

    .button-group .btn-primary,
    .button-group .btn-secondary {
        width: 100%;
    }

    /* Progress Dots */
    .progress-dots {
        gap: 10px;
        padding: 15px;
        margin: 20px 0;
    }

    .dot {
        width: 34px;
        height: 34px;
        font-size: 15px;
    }

    /* Results Page */
    .results-hero {
        padding: 30px 20px;
    }

    .results-intro {
        font-size: 18px;
    }

    .freedom-number-display {
        font-size: 56px;
    }

    .results-subtext {
        font-size: 20px;
    }

    /* Benefits */
    .benefit-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .benefit-card {
        padding: 25px;
    }

    .benefit-number {
        font-size: 40px;
    }

    .benefit-text {
        font-size: 15px;
    }

    /* Charts and Breakdowns */
    .chart-container {
        padding: 20px;
    }

    .breakdown-card {
        padding: 20px;
    }

    .breakdown-table {
        font-size: 15px;
    }

    .breakdown-row {
        flex-direction: column;
        gap: 5px;
        align-items: flex-start;
        padding: 12px 0;
    }

    .breakdown-total {
        font-size: 17px;
        padding: 12px;
    }

    .breakdown-gap {
        font-size: 18px;
        padding: 15px;
    }

    /* Sales Content */
    .sales-content {
        padding: 25px 20px;
    }

    .sales-content h3 {
        font-size: 20px;
    }

    .sales-content p {
        font-size: 16px;
    }

    /* Playbook Features */
    .playbook-features {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .feature-item {
        padding: 20px;
    }

    /* Footer */
    footer {
        padding: 25px 15px;
        font-size: 13px;
    }

    .footer-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .footer-links a {
        margin: 5px;
        font-size: 13px;
    }

    /* Disclaimer */
    .disclaimer-notice {
        padding: 15px 18px;
        font-size: 12px;
        margin: 30px 0 15px 0;
    }

    /* Cookie Banner - now handled by JavaScript, but keep for fallback */
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .cookie-text {
        font-size: 14px;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .cookie-decline,
    .cookie-accept {
        flex: 1;
        min-width: 120px;
        padding: 10px 20px;
        font-size: 14px;
    }

    /* Exit Popup - now handled by JavaScript, but keep for fallback */
    .exit-popup-modal {
        padding: 30px 20px;
        width: 90%;
        max-width: 500px;
    }

    .exit-popup-title {
        font-size: 24px;
    }

    .exit-popup-subtitle {
        font-size: 15px;
    }

    .exit-benefit-item {
        font-size: 14px;
    }
}

/* Small Mobile Devices (480px and below) */
@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    header {
        padding: 12px;
        margin-bottom: 12px;
    }

    .logo {
        max-width: 260px;
    }

    .site-title {
        font-size: 22px;
    }

    .presented-by {
        font-size: 12px;
    }

    .step {
        padding: 20px 15px;
    }

    h2 {
        font-size: 22px;
        line-height: 1.3;
    }

    h3 {
        font-size: 18px;
    }

    .intro-text {
        font-size: 15px;
        margin: 15px 0;
    }

    /* Forms */
    .form-card {
        padding: 15px;
        margin: 15px 0;
    }

    .form-group {
        margin-bottom: 18px;
    }

    label {
        font-size: 14px;
    }

    .input-hint {
        font-size: 13px;
    }

    input[type="text"],
    input[type="email"],
    input[type="number"] {
        padding: 11px;
        font-size: 16px; /* Keep at 16px to prevent iOS zoom */
    }

    /* Money Input - Smaller on small screens */
    .money-input {
        font-size: 18px;
        padding: 4px 12px;
    }

    .currency-symbol {
        font-size: 22px;
        margin-right: 3px;
    }

    .money-input input {
        font-size: 18px;
        padding: 10px 6px;
    }

    .per-period {
        font-size: 14px;
        margin-left: 3px;
    }

    /* Buttons - Touch-friendly */
    .btn-primary,
    .btn-secondary,
    .btn-cta {
        padding: 13px 20px;
        font-size: 15px;
        min-height: 44px; /* iOS touch target minimum */
    }

    .btn-large {
        padding: 14px 28px;
        font-size: 16px;
        min-height: 48px;
    }

    /* Progress Dots */
    .progress-dots {
        gap: 8px;
        padding: 12px;
        margin: 15px 0;
    }

    .dot {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }

    /* Results Page */
    .results-hero {
        padding: 25px 15px;
    }

    .results-intro {
        font-size: 16px;
    }

    .freedom-number-display {
        font-size: 42px;
    }

    .results-subtext {
        font-size: 18px;
    }

    /* Benefits */
    .benefit-card {
        padding: 20px;
    }

    .benefit-number {
        font-size: 36px;
    }

    .benefit-text {
        font-size: 14px;
    }

    /* Charts and Breakdowns */
    .chart-container {
        padding: 15px;
    }

    .breakdown-card {
        padding: 15px;
    }

    .breakdown-table {
        font-size: 14px;
        line-height: 1.6;
    }

    .breakdown-row {
        padding: 10px 0;
    }

    .breakdown-label,
    .breakdown-value {
        font-size: 14px;
    }

    .breakdown-total {
        font-size: 16px;
        padding: 10px;
    }

    .breakdown-gap {
        font-size: 17px;
        padding: 12px;
    }

    /* Sales Content */
    .sales-content {
        padding: 20px 15px;
        margin-top: 20px;
    }

    .sales-content h3 {
        font-size: 18px;
        margin: 20px 0 12px 0;
    }

    .sales-content p {
        font-size: 15px;
        line-height: 1.6;
        margin: 12px 0;
    }

    /* Features */
    .feature-item {
        padding: 15px;
    }

    .feature-title {
        font-size: 16px;
    }

    .feature-description {
        font-size: 14px;
    }

    /* Footer */
    footer {
        padding: 20px 10px;
        font-size: 12px;
    }

    .footer-links a {
        display: inline-block;
        margin: 5px 5px;
        font-size: 12px;
    }

    /* Disclaimer */
    .disclaimer-notice {
        padding: 12px 15px;
        font-size: 11px;
        line-height: 1.5;
        margin: 25px 0 12px 0;
    }

    /* Cookie Banner */
    .cookie-text {
        font-size: 13px;
        line-height: 1.4;
    }
    
    .cookie-decline,
    .cookie-accept {
        min-width: 100px;
        padding: 9px 16px;
        font-size: 13px;
    }

    /* Exit Popup */
    .exit-popup-modal {
        padding: 25px 15px;
        width: 95%;
    }

    .exit-popup-title {
        font-size: 22px;
    }

    .exit-popup-subtitle {
        font-size: 14px;
    }

    .exit-benefit-item {
        font-size: 13px;
    }

    #exitPopupLeadForm input {
        padding: 12px 14px;
        font-size: 16px; /* Prevent iOS zoom */
    }

    #exitPopupLeadForm button {
        padding: 13px 20px;
        font-size: 15px;
    }
}

/* Extra Small Devices (360px and below) */
@media (max-width: 360px) {
    .logo {
        max-width: 240px;
    }

    .freedom-number-display {
        font-size: 36px;
    }

    h2 {
        font-size: 20px;
    }

    .money-input {
        font-size: 16px;
    }

    .currency-symbol {
        font-size: 20px;
    }

    .money-input input {
        font-size: 16px;
    }
}
/* Input Placeholder Styling - WCAG 2.1 AA Compliant */
input::placeholder,
textarea::placeholder {
    color: #C85A54;
    opacity: 1; /* Firefox needs this */
}

/* Vendor prefixes for older browsers */
input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
    color: #C85A54;
}

input::-moz-placeholder,
textarea::-moz-placeholder {
    color: #C85A54;
    opacity: 1;
}

input:-ms-input-placeholder,
textarea:-ms-input-placeholder {
    color: #C85A54;
}

/* ========================================
   WCAG 2.2 COMPLIANCE & UI UPGRADES
   ======================================== */

/* 1. CRITICAL: Fix Low Contrast Text */
.presented-by,
.privacy-note,
.step-hint,
.input-hint,
.trust-line,
footer p,
footer a,
input::placeholder,
textarea::placeholder {
    color: #5A6C7D !important; /* Passes WCAG AA */
    opacity: 1; /* Firefox fix */
}

/* 2. Mobile Touch Targets (Fat Finger Fix) */
@media (max-width: 768px) {
    .dot {
        width: 44px;
        height: 44px;
    }
    .btn-primary, .btn-secondary, .btn-cta, button {
        min-height: 48px;
    }
    footer ul li a {
        display: inline-block;
        padding: 12px;
    }
}

/* 3. Focus States */
.btn-cta:focus, .btn-primary:focus, input:focus {
    outline: 3px solid #174A38 !important;
    outline-offset: 3px;
}

/* 4. OPTION CARDS (Traffic Light Logic) */
.options-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 25px 0;
}

.option-card {
    padding: 20px 25px;
    border-radius: 8px;
    background: white;
    border: 1px solid #6B7280;
}

/* Neutral/Gray */
.option-neutral {
    background-color: #F8F9FA;
    border-left: 5px solid #95A5A6;
}
.option-neutral h3 { color: #5A6C7D; font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }

/* Danger/Red - Using high contrast background */
.option-danger {
    background-color: #FFF5F5;
    border-left: 5px solid #E74C3C;
}
.option-danger h3 { color: #C0392B; font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }

/* Success/Green - Brand Aligned */
.option-success {
    background-color: #F1F8F4;
    border-left: 5px solid #174A38;
    box-shadow: 0 4px 12px rgba(23, 74, 56, 0.1);
}
.option-success h3 { color: #174A38; font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }

/* 5. PRINT RECEIPT BOX */
.print-receipt-box {
    text-align: center;
    margin: 40px 0;
    padding: 25px;
    background: #F8F9FA;
    border: 2px dashed #6B7280;
    border-radius: 8px;
}

.print-receipt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    background: white;
    border: 2px solid #174A38;
    color: #174A38;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.print-receipt-btn:hover {
    background-color: #E8F5E9;
}

/* Desktop Grid Layout */
@media (min-width: 768px) {
    .options-grid {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        align-items: stretch;
    }
}

/* ========================================
   LANDING PAGE STYLES (starttest.html)
   ======================================== */

/* Hero Section */
.start-hero {
    text-align: center;
    padding: 40px 0 30px 0;
    margin-bottom: 40px;
}

.start-hero h1 {
    font-size: 2.5rem;
    color: #174A38;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.start-hero .subheadline {
    font-size: 1.25rem;
    color: #434B4D;
    line-height: 1.5;
    margin-bottom: 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Problem Section */
.problem-section {
    max-width: 900px;
    margin: 50px auto;
    text-align: center;
}

.problem-section h2 {
    font-size: 1.8rem;
    color: #434B4D;
    margin-bottom: 20px;
    font-weight: 600;
}

.problem-section p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #434B4D;
    margin-bottom: 20px;
}

.highlight-box {
    background: #FFF9E6;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #D4AF37;
    text-align: left;
    margin: 25px 0;
}

.highlight-box strong {
    color: #174A38;
    display: block;
    margin-bottom: 10px;
    font-size: 1.05rem;
}

/* Solution Section & Grid */
.solution-section {
    max-width: 750px;
    margin: 50px auto;
}

.solution-section h2 {
    font-size: 1.8rem;
    color: #434B4D;
    margin-bottom: 20px;
    font-weight: 600;
    text-align: center;
}

.solution-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.solution-item {
    background: #F8F9FA;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #174A38;
}

.solution-item strong {
    display: block;
    color: #174A38;
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.solution-item p {
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
    color: #434B4D;
}

/* Proof Section */
.proof-section {
    max-width: 900px;
    margin: 50px auto;
    background: #F8F9FA;
    padding: 40px 30px;
    border-radius: 12px;
    border-left: 4px solid #D4AF37;
}

.proof-section h2 {
    font-size: 1.8rem;
    color: #434B4D;
    margin-bottom: 25px;
    font-weight: 600;
}

.proof-example {
    background: white;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.proof-example h3 {
    color: #174A38;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.proof-example p {
    font-size: 1rem;
    line-height: 1.6;
    color: #434B4D;
    margin-bottom: 10px;
}

.proof-example .result {
    background: #E8F5E9;
    padding: 15px;
    border-radius: 6px;
    margin-top: 15px;
    font-weight: 600;
    color: #174A38;
}

/* Scorecard CTA Area */
.scorecard-cta {
    background: linear-gradient(135deg, #174A38 0%, #205239 100%);
    color: white;
    padding: 50px 30px;
    border-radius: 12px;
    text-align: center;
    margin: 50px auto;
    max-width: 900px;
}

.scorecard-cta h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: white;
}

/* "You'll Get" Block */
.youll-get-block {
    background: linear-gradient(135deg, #E8F5E9 0%, #F1F8F4 100%);
    border: 2px solid #174A38;
    border-radius: 8px;
    padding: 30px 35px;
    margin: 35px auto;
    text-align: left;
    box-shadow: 0 2px 8px rgba(45, 95, 79, 0.12);
}

.youll-get-block h3 {
    color: #174A38;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 20px 0;
}

.youll-get-block p {
    color: #434B4D;
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0 0 15px 0;
}

.youll-get-block strong {
    color: #174A38;
}

.youll-get-block img {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Scorecard Form Container (Single Column) */
.scorecard-form-container {
    max-width: 100%;
    margin: 0 auto;
}

/* Opt-in Form Container */
.scorecard-form {
    max-width: 100%;
    margin: 30px auto 0;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    text-align: left;
}

.scorecard-form h2 {
    color: #174A38;
    margin: 0 0 20px 0;
    font-size: 1.3rem;
    text-align: center;
}

.scorecard-form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 2px solid #6B7280;
    border-radius: 6px;
    font-size: 1rem;
    color: #434B4D;
}

.scorecard-form input:focus {
    outline: 3px solid #D4AF37;
    outline-offset: 2px;
    border-color: #174A38;
}

.scorecard-form button {
    width: 100%;
    padding: 15px;
    background: #D4AF37;
    color: #174A38;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.scorecard-form button:hover {
    background: #C9A532;
    transform: translateY(-2px);
}

/* Tier Preview Grid */
.income-tiers {
    max-width: 900px;
    margin: 50px auto;
}

.income-tiers h2 {
    font-size: 1.8rem;
    color: #434B4D;
    margin-bottom: 30px;
    font-weight: 600;
    text-align: center;
}

.tier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.tier-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    border-top: 4px solid #174A38;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.tier-card h3 {
    color: #174A38;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.tier-card .tier-range {
    font-size: 1.5rem;
    font-weight: 700;
    color: #A38218; /* Darker Gold for Accessibility */
    margin: 10px 0;
}

/* FAQ */
.faq-section {
    max-width: 750px;
    margin: 50px auto;
}

.faq-section h2 {
    text-align: center;
    font-size: 1.8rem;
    color: #434B4D;
    margin-bottom: 30px;
}

.faq-item {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #6B7280;
}

.faq-item h3 {
    color: #174A38;
    font-size: 1.15rem;
    margin-bottom: 12px;
}

/* CTA Button - Scroll */
.scroll-cta {
    text-align: center;
    margin: 30px auto 40px auto;
}

.scroll-cta-btn {
    display: inline-block;
    background: white;
    border: 2px solid #174A38;
    color: #174A38;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.scroll-cta-btn:hover {
    background: #174A38;
    color: white;
}

.bridge-line {
    max-width: 900px;
    margin: 35px auto;
    text-align: center;
    padding: 20px 30px;
    background: #F8F9FA;
    border-radius: 8px;
    font-size: 1rem;
    color: #434B4D;
}

.bridge-line strong {
    color: #174A38;
}

/* Start Page Mobile */
@media (max-width: 768px) {
    .start-hero h1 { font-size: 1.8rem; }
    .start-hero .subheadline { font-size: 1.05rem; }
    .solution-grid { grid-template-columns: 1fr; }
    .tier-grid { grid-template-columns: 1fr; }
    .scorecard-cta { padding: 30px 20px; }
    .scorecard-cta h2 { font-size: 1.5rem; }
    .scroll-cta-btn { padding: 10px 25px; }
}

/* ========== Styles from index.html ========== */

 /* Accessibility Helper */
        .sr-only {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0,0,0,0);
            white-space: nowrap;
            border: 0;
        }
        
        /* CONVERSION OPTIMIZATION: Proof Block */
        .proof-block {
            background: white;
            padding: 25px 30px;
            border-radius: 8px;
            margin: 30px 0;
            border-left: 4px solid #174A38;
        }
        
        .proof-block h3 {
            color: #174A38;
            font-size: 1.1rem;
            font-weight: 600;
            margin: 0 0 15px 0;
        }
        
        .proof-examples {
            margin: 15px 0;
        }
        
        .proof-example-item {
            color: #434B4D;
            font-size: 0.95rem;
            line-height: 1.7;
            margin-bottom: 8px;
            padding-left: 20px;
            position: relative;
        }
        
        .proof-example-item::before {
            content: "→";
            color: #174A38;
            font-weight: bold;
            position: absolute;
            left: 0;
        }
        
        .proof-quote {
            color: #434B4D;
            font-size: 0.95rem;
            font-style: italic;
            margin: 15px 0 5px 0;
            padding: 15px;
            background: #F8F9FA;
            border-radius: 6px;
        }
        
        .proof-attribution {
            color: #5A6C7D;
            font-size: 0.85rem;
            text-align: right;
            margin: 0;
        }
        
        /* CONVERSION OPTIMIZATION: Why Trust This Math Section */
        .trust-math-section {
            background: linear-gradient(135deg, #E8F5E9 0%, #F1F8F4 100%);
            border: 2px solid #174A38;
            border-radius: 8px;
            padding: 25px 30px;
            margin: 30px 0;
        }
        
        .trust-math-section h3 {
            color: #174A38;
            font-size: 1.15rem;
            font-weight: 700;
            margin: 0 0 15px 0;
        }
        
        .trust-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }
        
        .trust-list li {
            color: #434B4D;
            font-size: 0.95rem;
            line-height: 1.7;
            margin-bottom: 8px;
            padding-left: 25px;
            position: relative;
        }
        
        .trust-list li.trust-does::before {
            content: "✓";
            color: #174A38;
            font-weight: bold;
            font-size: 1.1rem;
            position: absolute;
            left: 0;
        }
        
        .trust-list li.trust-doesnt::before {
            content: "✗";
            color: #5A6C7D;
            font-weight: bold;
            font-size: 1.1rem;
            position: absolute;
            left: 0;
        }
        
        /* CONVERSION OPTIMIZATION: Math-Anchored Testimonial */
        .math-testimonial {
            background: white;
            border-left: 4px solid #9A7B1A;
            border-radius: 8px;
            padding: 20px 25px;
            margin: 25px 0;
        }
        
        .testimonial-header {
            display: flex;
            justify-content: flex-start;    /* Groups them to the left */
            gap: 15px;                      /* Adds a clean space between them */
            align-items: baseline;
            margin-bottom: 10px;
            flex-wrap: wrap;
}
        
        .testimonial-role {
            color: #174A38;
            font-weight: 600;
            font-size: 1rem;
        }
        
        .testimonial-age {
  color: #5A6C7D;
  font-size: 0.9rem;
}

.testimonial-age::before {
  content: "-";
  margin-right: 10px;
  color: #E0E6ED;
}

        
        .testimonial-number {
            color: #8B6914 !important;
            font-weight: 700;
            font-size: 1.1rem;
            margin: 8px 0;
        }
        
        .testimonial-insight {
            color: #434B4D;
            font-size: 0.95rem;
            font-style: italic;
            margin: 10px 0 0 0;
            line-height: 1.6;
        }
        
        /* CONVERSION OPTIMIZATION: No Signup Reassurance */
        .no-signup-line {
            text-align: center;
            color: #174A38;
            font-weight: 600;
            font-size: 0.95rem;
            margin: 12px 0 8px 0;
        }
        
        /* CONVERSION OPTIMIZATION: Visual Chunk Separators */
        .chunk-separator {
            height: 1px;
            background: linear-gradient(to right, transparent, #E0E6ED, transparent);
            margin: 35px 0;
        }
        
        /* Mobile Responsive */
        @media (max-width: 768px) {
            .proof-block,
            .trust-math-section,
            .math-testimonial {
                padding: 20px;
            }
            
            .testimonial-header {
                flex-direction: column;
                align-items: flex-start;
            }
            
            .testimonial-age {
                margin-top: 3px;
            }
        }
        
        /* TESTIMONIALS: Micro-testimonials */
        .micro-testimonials {
            text-align: center;
            margin: 20px 0;
        }
        
        .micro-testimonials p {
            color: #5A6C7D;
            font-size: 0.9rem;
            font-style: italic;
            margin: 8px 0;
            line-height: 1.5;
        }
        
        /* TESTIMONIALS: Section Header */
        .testimonial-section-header {
            color: #434B4D;
            font-size: 1rem;
            font-weight: 600;
            text-align: center;
            margin: 25px 0 15px 0;
            text-transform: none;
        }
        
        /* TESTIMONIALS: Process Testimonial (Skeptic/Relief) */
        .process-testimonial {
            background: white;
            border-left: 4px solid #5A6C7D;
            border-radius: 8px;
            padding: 20px 25px;
            margin: 25px auto;
            max-width: 750px;
        }
        
        .process-testimonial-quote {
            color: #174A38;
            font-weight: 600;
            font-size: 1.05rem;
            margin: 0 0 12px 0;
            line-height: 1.4;
        }
        
        .process-testimonial-body {
            color: #434B4D;
            font-size: 0.95rem;
            line-height: 1.7;
            margin: 0 0 12px 0;
        }
        
        .process-testimonial-attribution {
            color: #5A6C7D;
            font-size: 0.85rem;
            font-style: italic;
            text-align: right;
            margin: 0;
        }
        
        /* TESTIMONIALS: Disclaimer */
        .testimonial-disclaimer {
            background: #F8F9FA;
            border: 1px solid #6B7280;
            border-radius: 6px;
            padding: 15px 20px;
            margin: 30px auto;
            max-width: 750px;
            font-size: 0.85rem;
            color: #5A6C7D;
            line-height: 1.6;
            text-align: center;
        }
        
        @media (max-width: 768px) {
            .process-testimonial {
                padding: 15px 20px;
            }
            
            .testimonial-disclaimer {
                font-size: 0.8rem;
                padding: 12px 15px;
            }
        }

        /* Mobile styles from start.html */

         @media (max-width: 768px) {
                    .scorecard-form-container {
                        grid-template-columns: 1fr !important;
                        gap: 30px !important;
                    }
                    
                    .scorecard-preview {
                        position: static !important;
                        order: -1; /* Show image above form on mobile */
                    }
                    
                    .scorecard-preview img {
                        max-width: 320px !important;
                    }
                    
                    /* Make inline preview smaller on mobile too */
                    .youll-get-block img {
                        max-width: 260px !important;
                    }
                }