/**
 * Acre Ranger Visual Enhancements
 *
 * This file contains the visual improvements outlined in the
 * Visual Improvement Plan. Import this after style.css.
 *
 * Created: January 2, 2026
 */

/* ==========================================================================
   Extended Color Palette
   ========================================================================== */

:root {
    /* Background Colors - HIGH CONTRAST (must match style.css) */
    /* Rule: At least 10% lightness difference between adjacent sections */
    --color-sand: #E8DFCF;              /* 87% lightness - clearly warm/tan */
    --color-sand-light: #F2EDE4;        /* 93% lightness - subtle warm tint */
    --color-cream: #FBF9F4;             /* 97% lightness - near-white warm */
    --color-sage: #D4E5D7;              /* 89% lightness - clearly green-tinted */
    --color-sage-mist: #D4E5D7;         /* Alias for compatibility */
    --color-sage-mist-dark: #C5D9C9;    /* Darker sage for patterns */

    /* Extended Green Scale */
    --color-forest-lighter: #4A8B5F;
    --color-forest-dark: #1A3D28;
    --color-forest-darker: #0F2A1A;

    /* Enhanced Gold Scale */
    --color-gold-bright: #E8B84D;
    --color-gold-soft: #F5E6C8;
    --color-gold-pale: #FBF5E8;

    /* Trust/Accent Colors */
    --color-trust-blue: #2563EB;
    --color-trust-blue-light: #EEF4FF;

    /* Enhanced Shadow System */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 24px 48px rgba(0, 0, 0, 0.12);
    --shadow-green: 0 8px 24px rgba(45, 90, 61, 0.35);
    --shadow-gold: 0 8px 24px rgba(212, 168, 75, 0.35);
    --shadow-inset: inset 0 2px 4px rgba(0, 0, 0, 0.06);

    /* Hover lift amount */
    --hover-lift: -4px;
    --hover-lift-sm: -2px;
}

/* ==========================================================================
   Enhanced Typography
   ========================================================================== */

body {
    font-size: 17px;
    color: #374151;
}

h1 {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    letter-spacing: -0.01em;
}

.lead,
.hero__subtitle,
.section-intro {
    font-size: 1.25rem;
    line-height: 1.7;
    color: #4B5563;
}

/* ==========================================================================
   Enhanced Button Styles
   ========================================================================== */

.btn {
    border-radius: var(--radius-lg);
    font-weight: var(--font-semibold);
    letter-spacing: 0.01em;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Primary Button - Gradient with shadow */
.btn--primary {
    background: linear-gradient(135deg, var(--color-forest-green) 0%, var(--color-forest-lighter) 100%);
    border: none;
    box-shadow:
        0 4px 14px rgba(45, 90, 61, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn--primary:hover {
    transform: translateY(var(--hover-lift-sm));
    box-shadow:
        0 8px 24px rgba(45, 90, 61, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, var(--color-forest-green-dark) 0%, var(--color-forest-green) 100%);
}

.btn--primary:active {
    transform: translateY(0);
    box-shadow:
        0 2px 8px rgba(45, 90, 61, 0.3),
        inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Gold Button - For high-priority CTAs */
.btn--gold {
    background: linear-gradient(135deg, var(--color-warm-gold) 0%, var(--color-gold-bright) 100%);
    color: var(--color-forest-dark);
    border: none;
    box-shadow: 0 4px 14px rgba(212, 168, 75, 0.4);
}

.btn--gold:hover {
    background: linear-gradient(135deg, var(--color-gold-bright) 0%, #F0C55C 100%);
    transform: translateY(var(--hover-lift-sm));
    box-shadow: 0 8px 24px rgba(212, 168, 75, 0.5);
    color: var(--color-forest-dark);
}

/* Secondary Button Enhancement */
.btn--secondary {
    border-width: 2px;
    position: relative;
    overflow: hidden;
}

.btn--secondary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--color-forest-green);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: -1;
}

.btn--secondary:hover {
    color: var(--color-white);
}

.btn--secondary:hover::before {
    transform: translateY(0);
}

/* White Button (on dark backgrounds) */
.btn--white {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.btn--white:hover {
    background: var(--color-cream);
    transform: translateY(var(--hover-lift-sm));
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Large Button */
.btn--lg {
    padding: var(--space-4) var(--space-10);
    font-size: var(--text-lg);
    border-radius: 14px;
}

/* ==========================================================================
   Enhanced Card Styles
   ========================================================================== */

.card {
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    border-color: rgba(45, 90, 61, 0.15);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.08),
        0 8px 16px rgba(45, 90, 61, 0.06);
    transform: translateY(var(--hover-lift));
}

/* Feature Card Enhancements */
.feature-card {
    padding: var(--space-10);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-forest-green), var(--color-forest-lighter));
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

/* Enhanced Feature Card Icon */
.feature-card__icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--color-forest-green) 0%, var(--color-forest-lighter) 100%);
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(45, 90, 61, 0.25);
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-card__icon {
    transform: scale(1.1);
}

.feature-card__icon svg {
    width: 40px;
    height: 40px;
}

/* ==========================================================================
   Section Background Enhancements
   ========================================================================== */

/* New background utility classes */
.bg-sand {
    background-color: var(--color-sand);
}

.bg-cream {
    background-color: var(--color-cream);
}

.bg-sage {
    background-color: var(--color-sage-mist);
}

/* Enhanced Hero Section - Only for heroes WITHOUT background images */
.hero:not(.hero--with-bg) {
    background:
        /* Soft radial glow behind content */
        radial-gradient(ellipse 80% 50% at 30% 50%, rgba(45, 90, 61, 0.05) 0%, transparent 70%),
        /* Topographic pattern */
        url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 90 Q30 70 50 75 T90 60' fill='none' stroke='%232D5A3D' stroke-width='0.5' opacity='0.08'/%3E%3Cpath d='M0 70 Q25 50 50 55 T100 40' fill='none' stroke='%232D5A3D' stroke-width='0.5' opacity='0.06'/%3E%3Cpath d='M5 50 Q30 30 55 35 T95 20' fill='none' stroke='%232D5A3D' stroke-width='0.5' opacity='0.04'/%3E%3C/svg%3E"),
        /* Warm gradient base */
        linear-gradient(135deg, var(--color-cream) 0%, var(--color-off-white) 50%, var(--color-sand) 100%);
    background-size: 100% 100%, 200px 200px, 100% 100%;
}

/* Why Us Section - Warm sand background */
.section.why-us,
.section[data-section="why-us"] {
    background-color: var(--color-sand);
    background-image:
        linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, transparent 100%);
}

/* How It Works - Clean white with accent */
.process {
    background-color: var(--color-white);
    position: relative;
}

.process::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--color-forest-green), transparent);
    border-radius: 2px;
}

/* What We Buy - Sage mist */
.section.what-we-buy,
.section[data-section="what-we-buy"] {
    background: linear-gradient(180deg, var(--color-sage-mist) 0%, var(--color-sage-mist-dark) 100%);
}

/* Pricing Transparency - Rich gradient */
.section.bg-green,
.section[data-section="pricing"] {
    background:
        url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 90 Q30 70 50 75 T90 60' fill='none' stroke='%23ffffff' stroke-width='0.3' opacity='0.08'/%3E%3Cpath d='M0 70 Q25 50 50 55 T100 40' fill='none' stroke='%23ffffff' stroke-width='0.3' opacity='0.05'/%3E%3C/svg%3E"),
        linear-gradient(135deg, var(--color-forest-dark) 0%, var(--color-forest-green) 50%, var(--color-forest-lighter) 100%);
    background-size: 200px 200px, 100% 100%;
}

/* Testimonials - Warm cream */
.testimonials {
    background-color: var(--color-cream);
    background-image:
        url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Ctext x='10' y='70' font-size='80' font-family='Georgia, serif' fill='%232D5A3D' opacity='0.03'%3E%E2%80%9C%3C/text%3E%3C/svg%3E");
    background-size: 180px 180px;
}

/* Final CTA - Dark with texture */
.cta {
    background:
        linear-gradient(rgba(26, 61, 40, 0.92), rgba(26, 61, 40, 0.95)),
        url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 90 Q30 70 50 75 T90 60' fill='none' stroke='%23ffffff' stroke-width='0.3' opacity='0.1'/%3E%3C/svg%3E");
    background-size: 100% 100%, 200px 200px;
    background-color: var(--color-forest-dark);
}

/* ==========================================================================
   Enhanced Process Steps
   ========================================================================== */

.process-step__number {
    width: 72px;
    height: 72px;
    font-size: var(--text-2xl);
    background: linear-gradient(135deg, var(--color-forest-green) 0%, var(--color-forest-lighter) 100%);
    box-shadow: 0 8px 24px rgba(45, 90, 61, 0.3);
}

/* Better connector line */
@media (min-width: 768px) {
    .process-step:not(:last-child)::after {
        height: 3px;
        background: linear-gradient(90deg,
            var(--color-forest-green) 0%,
            var(--color-warm-gold) 50%,
            var(--color-gray-light) 100%);
        border-radius: 2px;
    }
}

/* ==========================================================================
   Enhanced Testimonial Cards
   ========================================================================== */

.testimonial-card {
    padding: var(--space-10);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 24px;
    left: 32px;
    font-size: 72px;
    font-family: Georgia, serif;
    color: var(--color-forest-green);
    opacity: 0.1;
    line-height: 1;
}

.testimonial-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 40px;
    right: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-forest-green), var(--color-warm-gold), var(--color-forest-green));
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.testimonial-card:hover::after {
    opacity: 0.5;
}

.testimonial-card__quote {
    padding-left: var(--space-8);
}

/* Star rating addition */
.testimonial-card__rating {
    display: flex;
    gap: 4px;
    margin-bottom: var(--space-4);
    color: var(--color-warm-gold);
}

/* ==========================================================================
   Enhanced FAQ Accordion
   ========================================================================== */

.faq-item {
    background: var(--color-white);
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(45, 90, 61, 0.08);
    overflow: hidden;
}

.faq-item__question {
    padding: var(--space-6);
    font-size: var(--text-lg);
}

.faq-item--open {
    border-color: rgba(45, 90, 61, 0.2);
    box-shadow: 0 4px 16px rgba(45, 90, 61, 0.1);
}

.faq-item__answer {
    padding: 0 var(--space-6) var(--space-6);
}

/* ==========================================================================
   Enhanced Trust Badges
   ========================================================================== */

.hero__trust-item {
    background: rgba(45, 90, 61, 0.08);
    padding: var(--space-2) var(--space-4);
    border-radius: 24px;
    border: 1px solid rgba(45, 90, 61, 0.12);
    transition: all 0.2s ease;
}

.hero__trust-item:hover {
    background: rgba(45, 90, 61, 0.12);
    border-color: rgba(45, 90, 61, 0.2);
}

/* ==========================================================================
   Enhanced Section Spacing
   ========================================================================== */

.section {
    padding: 80px 0;
}

@media (min-width: 768px) {
    .section {
        padding: 100px 0;
    }
}

@media (min-width: 1024px) {
    .section {
        padding: 120px 0;
    }
}

.section--lg {
    padding: 100px 0;
}

@media (min-width: 768px) {
    .section--lg {
        padding: 140px 0;
    }
}

/* Visual section breaks */
.section + .section:not(.bg-green):not(.cta) {
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

/* Remove border when background contrast is sufficient */
.bg-white + .bg-sand,
.bg-sand + .bg-white,
.bg-white + .bg-sage,
.bg-sage + .bg-white,
.bg-cream + .bg-white,
.bg-white + .bg-green,
.bg-green + .bg-white,
.bg-green + .bg-cream {
    border-top: none;
}

/* ==========================================================================
   Enhanced Form Inputs
   ========================================================================== */

.form-input,
.form-select,
.form-textarea {
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    padding: var(--space-4) var(--space-5);
    font-size: var(--text-base);
    background: var(--color-white);
    transition: all 0.2s ease;
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
    border-color: #D1D5DB;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-forest-green);
    box-shadow:
        0 0 0 4px rgba(45, 90, 61, 0.1),
        0 2px 8px rgba(45, 90, 61, 0.08);
}

.form-label {
    font-weight: var(--font-semibold);
    font-size: var(--text-sm);
    color: #374151;
    margin-bottom: var(--space-2);
}

/* ==========================================================================
   Scroll Animations (require JS to add .is-visible class)
   ========================================================================== */

.animate-fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered children */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger-children.is-visible > *:nth-child(1) { transition-delay: 0ms; opacity: 1; transform: translateY(0); }
.stagger-children.is-visible > *:nth-child(2) { transition-delay: 100ms; opacity: 1; transform: translateY(0); }
.stagger-children.is-visible > *:nth-child(3) { transition-delay: 200ms; opacity: 1; transform: translateY(0); }
.stagger-children.is-visible > *:nth-child(4) { transition-delay: 300ms; opacity: 1; transform: translateY(0); }
.stagger-children.is-visible > *:nth-child(5) { transition-delay: 400ms; opacity: 1; transform: translateY(0); }
.stagger-children.is-visible > *:nth-child(6) { transition-delay: 500ms; opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Property Type Cards - Color-coded
   ========================================================================== */

.property-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    padding: var(--space-8);
    background: var(--color-white);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.property-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--card-accent, var(--color-forest-green));
}

.property-card:hover {
    border-color: var(--card-accent, var(--color-forest-green));
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

/* Property type color accents */
.property-card--vacant-land { --card-accent: var(--color-forest-green); }
.property-card--rural-homes { --card-accent: var(--color-earth-brown); }
.property-card--farms { --card-accent: var(--color-warm-gold); }
.property-card--recreational { --card-accent: var(--color-forest-lighter); }
.property-card--problem { --card-accent: var(--color-charcoal); }

/* ==========================================================================
   Utility Classes
   ========================================================================== */

/* Gradient text */
.text-gradient {
    background: linear-gradient(135deg, var(--color-forest-green) 0%, var(--color-forest-lighter) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Gold highlight pill */
.pill {
    display: inline-block;
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    border-radius: var(--radius-full);
}

.pill--green {
    background: rgba(45, 90, 61, 0.1);
    color: var(--color-forest-green);
}

.pill--gold {
    background: var(--color-gold-soft);
    color: var(--color-earth-brown);
}

/* Decorative line */
.decorative-line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-forest-green), var(--color-warm-gold));
    border-radius: 2px;
    margin: var(--space-4) auto;
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

@media (max-width: 767px) {
    .feature-card {
        padding: var(--space-6);
    }

    .feature-card__icon {
        width: 64px;
        height: 64px;
    }

    .feature-card__icon svg {
        width: 32px;
        height: 32px;
    }

    .testimonial-card {
        padding: var(--space-6);
    }

    .testimonial-card::before {
        font-size: 48px;
        left: 20px;
        top: 16px;
    }

    .process-step__number {
        width: 56px;
        height: 56px;
        font-size: var(--text-xl);
    }
}

/* ==========================================================================
   Why Us Section - Value Props Icon Centering Fix
   ========================================================================== */

.why-us .text-center > div:first-child,
[data-section="why-us"] .text-center > div:first-child {
    display: flex;
    justify-content: center;
    align-items: center;
}

.why-us .text-center > div:first-child svg,
[data-section="why-us"] .text-center > div:first-child svg {
    display: block;
}

/* ==========================================================================
   Hero Form Component
   ========================================================================== */

.hero__form-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

@media (min-width: 1024px) {
    .hero__form-wrapper {
        justify-content: flex-end;
    }
}

.hero-form {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(45, 90, 61, 0.05);
    padding: var(--space-6);
    max-width: 400px;
    width: 100%;
}

@media (min-width: 768px) {
    .hero-form {
        padding: var(--space-8);
    }
}

.hero-form__header {
    text-align: center;
    margin-bottom: var(--space-5);
}

.hero-form__title {
    font-size: var(--text-xl);
    color: var(--color-charcoal);
    margin-bottom: var(--space-1);
    font-weight: var(--font-bold);
}

@media (min-width: 768px) {
    .hero-form__title {
        font-size: var(--text-2xl);
    }
}

.hero-form__subtitle {
    font-size: var(--text-sm);
    color: var(--color-gray-dark);
    margin: 0;
}

.hero-form__form .form-group {
    margin-bottom: var(--space-4);
}

.hero-form__form .form-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--color-charcoal);
    margin-bottom: var(--space-2);
}

.hero-form__form .form-input,
.hero-form__form .form-select {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-base);
    border: 2px solid var(--color-gray-light);
    border-radius: var(--radius-lg);
    background: var(--color-white);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.hero-form__form .form-input:focus,
.hero-form__form .form-select:focus {
    outline: none;
    border-color: var(--color-forest-green);
    box-shadow: 0 0 0 3px rgba(45, 90, 61, 0.1);
}

.hero-form__form .form-input::placeholder {
    color: var(--color-gray);
}

.hero-form__form .btn--full {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
}

.hero-form__form .btn svg {
    flex-shrink: 0;
}

.hero-form__footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    margin-top: var(--space-4);
    font-size: var(--text-xs);
    color: var(--color-gray);
    text-align: center;
}

.hero-form__footer svg {
    color: var(--color-forest-green);
    flex-shrink: 0;
}

/* Form success/error states */
.hero-form__message {
    padding: var(--space-4);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-4);
    font-size: var(--text-sm);
    text-align: center;
}

.hero-form__message--success {
    background: rgba(45, 90, 61, 0.1);
    color: var(--color-forest-green);
    border: 1px solid rgba(45, 90, 61, 0.2);
}

.hero-form__message--error {
    background: rgba(197, 48, 48, 0.1);
    color: var(--color-error);
    border: 1px solid rgba(197, 48, 48, 0.2);
}

/* Loading state */
.hero-form__form.is-loading .btn {
    opacity: 0.7;
    pointer-events: none;
}

.hero-form__form.is-loading .btn::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: var(--space-2);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* County loading indicator */
.form-select--loading {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='M12 2v4M12 18v4M4.93 4.93l2.83 2.83M16.24 16.24l2.83 2.83M2 12h4M18 12h4M4.93 19.07l2.83-2.83M16.24 7.76l2.83-2.83'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 12 12' to='360 12 12' dur='1s' repeatCount='indefinite'/%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
}

/* ==========================================================================
   Compact Hero Form - 2-Column Layout
   ========================================================================== */

/* Wider form for breathing room */
.hero-form {
    max-width: 440px;
}

@media (min-width: 1200px) {
    .hero-form {
        max-width: 460px;
    }
}

/* Increased padding for less cramped feel */
.hero-form--compact {
    padding: var(--space-6);
}

@media (min-width: 768px) {
    .hero-form--compact {
        padding: var(--space-8);
    }
}

/* More space between header and fields */
.hero-form--compact .hero-form__header {
    margin-bottom: var(--space-6);
}

.hero-form--compact .hero-form__title {
    font-size: var(--text-lg);
}

@media (min-width: 768px) {
    .hero-form--compact .hero-form__title {
        font-size: var(--text-xl);
    }
}

/* 2-Column Form Rows with better spacing */
.form-row {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.form-row--2col {
    flex-direction: column;
}

@media (min-width: 480px) {
    .form-row--2col {
        flex-direction: row;
    }

    .form-row--2col .form-group {
        flex: 1;
        min-width: 0;
    }
}

/* Better spacing for form groups */
.hero-form--compact .form-group {
    margin-bottom: var(--space-4);
}

.hero-form--compact .form-row .form-group {
    margin-bottom: 0;
}

/* Improved input styling - less cramped */
.hero-form--compact .form-input,
.hero-form--compact .form-select {
    padding: var(--space-3) var(--space-4);
    font-size: 15px;
}

@media (min-width: 768px) {
    .hero-form--compact .form-input,
    .hero-form--compact .form-select {
        padding: 14px var(--space-4);
    }
}

/* Smaller, lighter placeholder text */
.hero-form--compact .form-input::placeholder {
    font-size: 0.9em;
    color: #9CA3AF;
    font-weight: 400;
}

/* Make dropdowns clearly distinguishable from text inputs */
.hero-form--compact .form-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #FAFAF8;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23666666' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px 16px;
    padding-right: 44px;
    cursor: pointer;
}

.hero-form--compact .form-select:hover {
    background-color: #F5F5F5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%232D5A3D' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

.hero-form--compact .form-select:focus {
    background-color: var(--color-white);
}

/* Optional field styling */
.form-group--optional .form-label {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.form-label__optional {
    font-size: var(--text-xs);
    font-weight: var(--font-normal);
    color: var(--color-gray);
    font-style: italic;
}

/* More spacing before submit button */
.hero-form--compact .form-group--optional {
    margin-bottom: var(--space-2);
}

.hero-form--compact .btn--full {
    margin-top: var(--space-5);
}

/* Better button padding */
.hero-form--compact .btn--lg {
    padding: var(--space-4) var(--space-6);
}

/* ==========================================================================
   SMS Consent Component - TCPA Compliant
   ========================================================================== */

.form-consent {
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.form-consent__checkbox {
    display: flex;
    align-items: flex-start;
    margin-bottom: var(--space-2);
}

/* Hide native checkbox but keep accessible */
.form-consent__input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Clickable label area */
.form-consent__label {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    cursor: pointer;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--color-charcoal);
    line-height: 1.4;
    user-select: none;
}

/* Custom checkbox box */
.form-consent__checkmark {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    border: 2px solid #CCCCCC;
    border-radius: 4px;
    background-color: var(--color-white);
    transition: all 0.15s ease;
    position: relative;
}

/* Checkmark icon (hidden by default) */
.form-consent__checkmark::after {
    content: '';
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid var(--color-white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Hover state */
.form-consent__label:hover .form-consent__checkmark {
    border-color: var(--color-forest-green);
    background-color: rgba(45, 90, 61, 0.05);
}

/* Focus state (keyboard) */
.form-consent__input:focus + .form-consent__label .form-consent__checkmark {
    border-color: var(--color-forest-green);
    box-shadow: 0 0 0 3px rgba(45, 90, 61, 0.15);
    outline: none;
}

/* Checked state */
.form-consent__input:checked + .form-consent__label .form-consent__checkmark {
    background-color: var(--color-forest-green);
    border-color: var(--color-forest-green);
}

.form-consent__input:checked + .form-consent__label .form-consent__checkmark::after {
    display: block;
}

/* Consent text - dark text for white form background */
.form-consent__text {
    flex: 1;
    font-size: 11px;
    line-height: 1.5;
    color: #6B7280;
}

/* Legal disclosure text */
.form-consent__disclosure {
    font-size: 11px;
    color: #6B7280;
    line-height: 1.5;
    padding-left: 32px;
    margin: 0;
}

.form-consent__disclosure a {
    color: var(--color-forest-green);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.form-consent__disclosure a:hover {
    color: #1E3D29;
}

.form-consent__disclosure a:focus {
    outline: 2px solid var(--color-forest-green);
    outline-offset: 2px;
}

/* Mobile adjustments */
@media (max-width: 479px) {
    .form-consent__checkmark {
        width: 22px;
        height: 22px;
    }

    .form-consent__checkmark::after {
        left: 7px;
        top: 3px;
    }

    .form-consent__disclosure {
        padding-left: 0;
        margin-top: var(--space-2);
    }

    .form-consent__label {
        font-size: 13px;
    }
}

/* Legal Links Below Button - dark text for white form background */
.form-legal-links {
    text-align: center;
    margin-top: var(--space-3);
    font-size: 11px;
    color: #9CA3AF;
}

.form-legal-links a {
    color: #6B7280;
    text-decoration: none;
    transition: color 0.15s ease;
}

.form-legal-links a:hover {
    color: var(--color-forest-green);
    text-decoration: underline;
}

/* Spacing between multiple consent checkboxes */
.form-consent__checkbox + .form-consent__checkbox {
    margin-top: var(--space-3);
}

/* ==========================================================================
   Hero with Background Image
   NOTE: .hero--with-bg styles are defined in style.css using <picture> element
   Do NOT add CSS background-image here as it conflicts with the responsive
   picture element approach.
   ========================================================================== */

/* ==========================================================================
   Why Us Section - Robust Icon Centering Fix
   ========================================================================== */

/* Target the value prop grid items */
.why-us .grid > div,
[data-section="why-us"] .grid > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Icon wrapper - flex container for centering */
.why-us .grid > div > div:first-child,
[data-section="why-us"] .grid > div > div:first-child,
.value-prop__icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-4);
}

/* Ensure SVG icons display correctly */
.why-us .grid svg,
[data-section="why-us"] .grid svg,
.value-prop__icon svg {
    display: block;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

/* ==========================================================================
   Legal Content Pages (Privacy Policy, Terms of Service)
   ========================================================================== */

.legal-content {
    max-width: 720px;
    margin: 0 auto;
}

.legal-content__header {
    text-align: center;
    margin-bottom: var(--space-10);
    padding-bottom: var(--space-6);
    border-bottom: 2px solid var(--color-forest-green);
}

.legal-content__header h1 {
    margin-bottom: var(--space-2);
}

.legal-content__updated {
    color: var(--color-gray);
    font-size: var(--text-sm);
    margin: 0;
}

.legal-content__body {
    font-size: var(--text-base);
    line-height: 1.8;
    color: var(--color-charcoal);
}

.legal-content__body h2 {
    font-size: var(--text-xl);
    color: var(--color-forest-green);
    margin-top: var(--space-10);
    margin-bottom: var(--space-4);
    padding-top: var(--space-6);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.legal-content__body h2:first-of-type {
    border-top: none;
    padding-top: 0;
    margin-top: var(--space-6);
}

.legal-content__body h3 {
    font-size: var(--text-lg);
    color: var(--color-charcoal);
    margin-top: var(--space-6);
    margin-bottom: var(--space-3);
}

.legal-content__body p {
    margin-bottom: var(--space-4);
}

.legal-content__body .lead {
    font-size: var(--text-lg);
    color: var(--color-gray-dark);
    line-height: 1.7;
    margin-bottom: var(--space-6);
}

.legal-content__body ul {
    margin: var(--space-4) 0;
    padding-left: var(--space-6);
}

.legal-content__body li {
    margin-bottom: var(--space-2);
    line-height: 1.6;
}

.legal-content__body a {
    color: var(--color-forest-green);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-content__body a:hover {
    color: #1E3D29;
}

.legal-content__body strong {
    font-weight: var(--font-semibold);
    color: var(--color-charcoal);
}

.legal-content__contact {
    background: var(--color-cream);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    font-style: normal;
    margin-top: var(--space-6);
}

.legal-content__contact strong {
    display: block;
    margin-bottom: var(--space-2);
    font-size: var(--text-lg);
}

/* Important callout box for critical notices */
.legal-content__callout {
    background: linear-gradient(135deg, rgba(45, 90, 61, 0.08) 0%, rgba(45, 90, 61, 0.04) 100%);
    border: 2px solid var(--color-forest-green);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    margin: var(--space-8) 0;
}

.legal-content__callout h3 {
    color: var(--color-forest-green);
    margin-top: 0;
    margin-bottom: var(--space-3);
    font-size: var(--text-lg);
}

.legal-content__callout p {
    margin-bottom: var(--space-2);
}

.legal-content__callout p:last-child {
    margin-bottom: 0;
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .legal-content__body h2 {
        font-size: var(--text-lg);
        margin-top: var(--space-8);
    }

    .legal-content__body h3 {
        font-size: var(--text-base);
    }

    .legal-content__callout {
        padding: var(--space-4);
    }
}
