:root {
    --primary-color: #047857;
    /* Green */
    --primary-hover: #065f46;
    /* Darker Green */
    --secondary-color: #fbbf24;
    /* Yellow/Gold */
    --bg-color: #fffbeb;
    /* Light Beige/Off-white */
    --card-bg: rgba(255, 255, 255, 0.9);
    --text-main: #1e293b;
    /* Dark Slate */
    --text-muted: #64748b;
    /* Slate */
    --border-color: rgba(203, 213, 225, 0.4);
    --glass-border: 1px solid rgba(255, 255, 255, 0.5);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --font-family: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow-x: hidden;
}

/* Dynamic Background */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 15% 50%, rgba(99, 102, 241, 0.15), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(236, 72, 153, 0.15), transparent 25%);
    filter: blur(40px);
}

.app-container {
    width: 100%;
    max-width: 700px;
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: var(--glass-border);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    margin: 2rem;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

header {
    text-align: center;
    margin-bottom: 2.5rem;
}

header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #6366f1, #ec4899);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.app-logo {
    max-width: 120px;
    height: auto;
    margin-bottom: 1rem;
    border-radius: 50%;
    /* Optional: if the logo is circular or needs rounding */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* Subtle shadow for depth */
}

footer {
    text-align: center;
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.footer-logo {
    max-width: 80px;
    margin-bottom: 0;
    opacity: 0.8;
    /* Slightly muted for footer */
}

header p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Header Logo */
.app-logo-header {
    max-width: 250px;
    height: auto;
    margin-bottom: 0.5rem;
}

/* Progress Indicator */
#progress-indicator {
    margin-bottom: 2rem;
    text-align: center;
}

#progress-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

#progress-text span {
    color: var(--primary-color);
    font-weight: 700;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: rgba(4, 120, 87, 0.15);
    border-radius: 10px;
    overflow: hidden;
}

#progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    transition: width 0.4s ease;
}

/* Question Card */
.question-card {
    margin: 2rem 0;
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.question-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 2rem;
    line-height: 1.4;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.option-btn {
    width: 100%;
    padding: 1.2rem 1.5rem;
    background-color: #fff;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-main);
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.option-btn:hover {
    border-color: var(--primary-color);
    background-color: rgba(4, 120, 87, 0.05);
    transform: translateX(4px);
}

.option-btn.selected {
    border-color: var(--primary-color);
    background-color: rgba(4, 120, 87, 0.1);
    color: var(--primary-color);
    font-weight: 600;
}

/* Navigation Buttons */
.navigation-buttons {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2.5rem;
}

.nav-btn {
    flex: 1;
    padding: 0.9rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(4, 120, 87, 0.4);
}

.primary-btn:hover:not(:disabled) {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px -1px rgba(4, 120, 87, 0.5);
}

.primary-btn:disabled {
    background-color: #cbd5e1;
    cursor: not-allowed;
    box-shadow: none;
}

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

.secondary-btn:hover {
    background-color: rgba(4, 120, 87, 0.1);
    transform: translateY(-2px);
}

/* Results Section */
#results-section {
    animation: fadeIn 0.6s ease-out;
}

.results-content {
    text-align: center;
}

#results-display {
    margin: 2rem 0;
}

#bucket-label {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

#bucket-explanation {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.chart-container {
    max-width: 400px;
    margin: 2rem auto;
    position: relative;
    min-height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#placeholder-text {
    margin-top: 2rem;
    color: #94a3b8;
    font-style: italic;
}

/* Email Gate Section */
#email-gate-section {
    animation: fadeIn 0.6s ease-out;
}

.email-gate-content {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.email-gate-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.email-gate-intro {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
}

#email-gate-form {
    text-align: left;
}

#email-gate-form .form-group {
    margin-bottom: 1.25rem;
}

#email-gate-form button {
    width: 100%;
    margin-top: 1rem;
}


/* Lead Capture Section */
#lead-capture-section {
    margin-top: 3rem;
    padding: 2rem;
    background-color: rgba(4, 120, 87, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(4, 120, 87, 0.2);
}

#lead-capture-section h3 {
    font-size: 1.4rem;
    color: var(--text-main);
    margin-bottom: 0.75rem;
}

.lead-intro {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.form-group {
    margin-bottom: 1.25rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-main);
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-main);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(4, 120, 87, 0.1);
}

.submission-success {
    padding: 1.5rem;
    background-color: rgba(16, 185, 129, 0.1);
    border-radius: 8px;
    margin-top: 1rem;
}

/* Footer & Disclaimer */
footer {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-logo {
    max-width: 80px;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.disclaimer {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: rgba(203, 213, 225, 0.2);
    border-radius: 8px;
    text-align: left;
}

.disclaimer p {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

.disclaimer strong {
    color: var(--text-main);
}

/* Section Headers */
.section-header {
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
}

/* Form Styles */
.question-item {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 12px;
    transition: background-color 0.3s ease;
    border: 1px solid transparent;
}

.question-item:hover {
    background-color: rgba(4, 120, 87, 0.05);
    border-color: var(--border-color);
}

.question-label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 500;
    font-size: 1.05rem;
    color: var(--text-main);
}

.question-why {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
    background: rgba(251, 191, 36, 0.15);
    /* Yellow tint */
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    border-left: 3px solid var(--secondary-color);
}

select {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    background-color: #fff;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23047857%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem top 50%;
    background-size: 0.65rem auto;
    transition: border-color 0.2s, box-shadow 0.2s;
}

select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(4, 120, 87, 0.2);
}

.form-actions {
    margin-top: 2.5rem;
    text-align: center;
}

button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.9rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.4);
}

button:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px -1px rgba(99, 102, 241, 0.5);
}

button:active {
    transform: translateY(0);
}

/* Success Message */
.hidden {
    display: none;
}

#success-message {
    text-align: center;
    padding: 2rem 0;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

#success-message h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

#success-message p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Checkmark Animation */
.checkmark-circle {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    position: relative;
    border-radius: 50%;
    background: rgba(4, 120, 87, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.checkmark {
    width: 40px;
    height: 20px;
    border-left: 4px solid var(--primary-color);
    border-bottom: 4px solid var(--primary-color);
    transform: rotate(-45deg);
    margin-top: -5px;
}

/* Responsive */
@media (max-width: 600px) {
    .app-container {
        margin: 1rem;
        padding: 1.5rem;
    }

    header h1 {
        font-size: 1.5rem;
    }

    .question-text {
        font-size: 1.25rem;
    }

    .navigation-buttons {
        flex-direction: column-reverse;
    }

    .nav-btn {
        width: 100%;
    }

    #bucket-label {
        font-size: 1.6rem;
    }

    .disclaimer p {
        font-size: 0.7rem;
    }
}

/* Home Screen Styles */
#home-section {
    text-align: center;
    animation: fadeIn 0.8s ease-out;
}

.home-headline {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #2d5016, #d4af37);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.home-subline {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.path-cards {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.path-card {
    background: #fff;
    border: 2px solid var(--border-color);
    /* Match option-btn */
    border-radius: 12px;
    /* Match option-btn */
    padding: 2rem;
    flex: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.path-card:hover {
    border-color: var(--primary-color);
    background-color: rgba(4, 120, 87, 0.05);
    /* Match option-btn hover */
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.path-card .icon {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    /* Fixed height for alignment */
    width: 100%;
}

.path-card .icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.path-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
}

.path-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Projection Section Styles */
#projection-section {
    animation: fadeIn 0.6s ease-out;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 2rem;
}

.projection-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.projection-inputs {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-main);
    display: flex;
    justify-content: space-between;
}

.input-group label span {
    color: var(--primary-color);
    font-weight: 600;
}

.input-group input[type="range"] {
    width: 100%;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.projection-chart-wrapper {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    min-height: 300px;
}

.chart-disclaimer {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 1rem;
    font-style: italic;
}

@media (min-width: 768px) {

    /* Keep column layout for projection container, but center it */
    .projection-container {
        max-width: 800px;
        margin: 0 auto;
    }

    .projection-chart-wrapper {
        min-height: 350px;
        /* Taller on desktop but fixed */
        height: 350px;
    }
}

.projection-chart-wrapper {
    background: #fff;
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    height: 300px;
    /* Fixed height for mobile */
    width: 100%;
    margin-bottom: 2rem;
    position: relative;
}

@media (max-width: 600px) {
    .path-cards {
        flex-direction: column;
    }

    .projection-chart-wrapper {
        height: 250px;
        /* Slightly shorter on small screens */
    }
}