/* 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;
}

/* 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: #7F8C8D;
    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: #E0E6ED;
    color: #7F8C8D;
    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: white;
}

/* 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);
    }
}

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: #7F8C8D;
    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 #E0E6ED;
    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: #D4AF37;
    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: #7F8C8D;
    margin-bottom: 10px;
    font-style: italic;
}

input[type="text"],
input[type="email"],
input[type="number"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #E0E6ED;
    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: none;
    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: #D4AF37;
    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: none;
    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: #E0E6ED;
    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: #D4AF37;
}

/* 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: #E0E6ED;
    color: #434B4D;
}

.btn-secondary:hover {
    background: #cbd5e0;
}

.btn-cta {
    background: linear-gradient(135deg, #D4AF37 0%, #B8941F 100%);
    color: white;
    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 #E0E6ED;
}

.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-gap {
    background: #D4AF37;
    color: white;
    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 #D4AF37;
}

.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: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.playbook-features li {
    background: #F8F9FA;
    padding: 15px 20px;
    border-radius: 6px;
    border-left: 4px solid #D4AF37;
    font-weight: 600;
    color: #174A38;
}

.signature {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #E0E6ED;
    font-size: 16px;
    color: #5A6C7D;
    font-style: italic;
}

/* Error Messages */
.error-message {
    color: #E74C3C;
    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: #7F8C8D;
    margin-top: 20px;
    font-style: italic;
}

/* Disclaimer */
.disclaimer-notice {
    background: linear-gradient(135deg, #FFF9E6 0%, #FFF3D1 100%);
    border: 2px solid #D4AF37;
    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: #7F8C8D;
    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: #7F8C8D;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .step {
        padding: 25px 20px;
    }

    h2 {
        font-size: 24px;
    }

    .logo {
        max-width: 360px;
    }

    .freedom-number-display {
        font-size: 48px;
    }

    .benefit-cards {
        grid-template-columns: 1fr;
    }

    .button-group {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    .progress-dots {
        gap: 8px;
    }

    .dot {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .sales-content {
        padding: 25px 20px;
    }

    .playbook-features {
        grid-template-columns: 1fr;
    }
}