/* --- CSS Variables (Color Palette & Fonts) --- */
:root {
    --brand-green: #0c5c12; /* Your original, vibrant green */
    --brand-green-hover: #0a4a0f;
    --bg-light: #FFFFFF;
    --bg-gray: #F9FAFB;
    --text-dark: #111827;
    --text-light: #4B5563;
    --text-on-dark: #FFFFFF;
    --border-color: #E5E7EB;
    --error-red: #DC2626;
    --font-primary: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --header-height: 72px;
}

/* --- Base & Reset Styles --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-primary);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* --- Layout & Typography --- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.grid-layout { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; text-wrap: balance; }
h1 { font-size: 3.25rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.125rem; }
p { color: var(--text-light); font-size: 1.125rem; }
a { color: var(--brand-green); text-decoration: none; }
.text-center { text-align: center; }
img { max-width: 100%; height: auto; display: block; border-radius: 12px; }


/* --- Header --- */
#main-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    height: var(--header-height);
    background-color: var(--brand-green);
    border-bottom: 1px solid var(--brand-green-hover);
    display: flex; align-items: center;
}
.header-container { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo img { 
    height: 32px; 
    /* filter: brightness(0) invert(1);  */
    /* Makes the SVG logo white */ 
}

/* --- Buttons --- */
.btn {
    display: inline-block; font-weight: 600; border-radius: 8px;
    transition: all 0.2s ease-in-out; cursor: pointer; border: none;
    text-align: center; padding: 12px 24px; font-size: 1rem;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.btn-primary { background-color: var(--bg-light); color: var(--brand-green); }
.btn-primary:hover { background-color: #F3F4F6; }
.btn-secondary { background-color: white; color: green; border: 1px solid var(--text-on-dark); }
.btn-secondary:hover { background-color: rgba(255,255,255,0.1); color: white }
.btn-large { padding: 16px 32px; font-size: 1.125rem; }
.btn-full { width: 100%; background-color: var(--brand-green); color: var(--bg-light); }
.btn-full:hover { background-color: var(--brand-green-hover); }

/* --- Sections --- */
section { padding: 80px 0; overflow: hidden; }
.hero-section {
    padding-top: calc(var(--header-height) + 60px); padding-bottom: 60px;
    background-color: var(--brand-green);
    color: var(--text-on-dark);
}
.hero-content h1, .hero-content p { color: var(--text-on-dark); }
.hero-content .subtitle { font-size: 1.25rem; opacity: 0.9; margin: 1rem 0 1.5rem 0; }
.hero-image { box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); }

.intro-section { background-color: var(--bg-light); }
.intro-text h2 { margin-bottom: 1rem; }

.benefits-section { background-color: var(--bg-gray); }
.section-header { margin-bottom: 48px; }
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 32px; }
.benefit-item { 
    background-color: var(--bg-light); padding: 32px; border-radius: 12px; 
    border: 1px solid var(--border-color);
    text-align: center; /* Center text and inline elements */
}
.benefit-icon-wrapper { /* New wrapper for centering and sizing */
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically if height is defined */
    width: 80px; /* Adjust size for the circular background */
    height: 80px;
    background-color: var(--brand-green); /* Example background for the icon */
    border-radius: 50%; /* Make it a circle */
    margin: 0 auto 1.5rem auto; /* Center wrapper and add space below */
}
.benefit-icon { 
    font-size: 2.5rem; /* Make the icon much larger */
    line-height: 1; /* Ensure text characters are vertically centered in their own space */
    color: var(--text-on-dark); /* Color of the icon itself */
}
.benefit-item h4 { margin-bottom: 0.5rem; color: var(--text-dark); }
.benefit-item p { font-size: 1rem; margin: 0; }

.quote-section { 
    background-color: var(--brand-green); 
    color: var(--text-on-dark);
    background-image: url('images/quote.png');
    background-size: cover;
    background-position: center;
    position: relative;
}

/* --- Add this new rule for a dark overlay to ensure text is readable --- */
.quote-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(37, 131, 45, 0.8); /* Dark green overlay with 80% opacity */
    z-index: 0;
}

blockquote { 
    font-size: 2rem; 
    text-align: center; 
    max-width: 720px; 
    margin: 0 auto; 
    font-weight: 600;
    position: relative; /* Change from 'relative' to this */
    z-index: 1; /* Make sure text is above the overlay */ 
}

/* --- Form Section --- */
.form-section { scroll-margin-top: calc(var(--header-height) + 24px); background-color: var(--bg-light); }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 48px; max-width: 900px; margin: 0 auto; align-items: center; }
.form-text h2 { margin-bottom: 1rem; color: var(--text-dark); }
.form-wrapper { position: relative; }
#form-container {
    background-color: var(--bg-gray); padding: 40px; border-radius: 16px;
    border: 1px solid var(--border-color); transition: opacity 0.5s ease;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.form-group { position: relative; margin-bottom: 24px; }
.form-group:last-of-type { margin-bottom: 0; }
.form-group label {
    position: absolute; left: 16px; top: 14px; color: var(--text-light);
    pointer-events: none; transition: all 0.2s ease-out; padding: 0 4px;
}
.form-group input, .form-group select {
    width: 100%; font-family: var(--font-primary);
    background-color: var(--bg-light); border: 1px solid var(--border-color);
    border-radius: 8px; padding: 14px 16px; color: var(--text-dark);
    box-sizing: border-box; font-size: 1rem; appearance: none;
}
.form-group input:focus, .form-group select:focus { outline: none; border-color: var(--brand-green); box-shadow: 0 0 0 3px rgba(12, 92, 18, 0.2); }
.form-group input:focus + label, .form-group input:not(:placeholder-shown) + label,
.form-group select:focus + label, .form-group.select-has-value label {
    top: -10px; font-size: 0.875rem; color: var(--brand-green); background-color: var(--bg-gray);
}
.error-message { font-size: 0.875rem; color: var(--error-red); margin-top: 6px; }
.form-group .input-error { border-color: var(--error-red) !important; }
#submit-button { margin-top: 16px; display: flex; justify-content: center; align-items: center; min-height: 52px; }
#submit-button:disabled { background-color: #9CA3AF; cursor: not-allowed; }
.form-submission-status { text-align: center; margin-top: 16px; color: var(--error-red); }

#thank-you-message.hidden {
    display: none; /* The message is completely hidden by default */
}

#thank-you-message {
    position: absolute; /* This is only applied when the 'hidden' class is removed by JS */
    inset: 0; 
    background-color: var(--bg-gray);
    padding: 2rem; border-radius: 16px;
    display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
    transition: opacity 0.5s ease;
}
#thank-you-message h3 { color: var(--text-dark); }
#thank-you-message p { font-size: 1.125rem; }

/* --- Footer --- */
footer { background-color: var(--brand-green); padding: 40px 0; }
.footer-bottom { text-align: center; color: var(--text-on-dark); opacity: 0.8; }

/* --- Utilities & Animations --- */
.fade-in-up { opacity: 0; transform: translateY(20px); animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; animation-play-state: paused; }
.fade-in-up.animate, body:not(.js-enabled) .fade-in-up { animation-play-state: running; }

@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }
.spinner { width: 20px; height: 20px; border: 2px solid rgba(255, 255, 255, 0.3); border-radius: 50%; border-top-color: var(--bg-light); animation: spin 1s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(0deg); } }

/* --- Responsive Design --- */
@media (min-width: 768px) {
    .grid-layout { grid-template-columns: 1fr 1fr; }
    .intro-section .grid-layout { grid-template-columns: 5fr 6fr; }
    .form-grid { grid-template-columns: 4fr 5fr; }
}
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; } h2 { font-size: 2rem; }
    .hero-layout { flex-direction: column-reverse; }
    .hero-image-wrapper { order: -1; margin-bottom: 2rem; }
    .intro-image-wrapper { margin-bottom: 2rem; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .form-group:not(:last-child) { margin-bottom: 24px; }
}

@media (min-width: 768px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr); /* Two columns on larger screens */
    }
}

.form-text-image {
    display: block;
    margin: 0 auto 1rem auto; /* Centers the image and adds space below */
    width: 250px; /* Makes the image take the full width of its container */
    height: 250px; /* Maintains the aspect ratio */
    border-radius: 12px; /* Gives it slightly rounded corners, matching other elements */
}