:root {
    --primary: #006847;
    --primary-hover: #00a86b;
}

header {
    background: linear-gradient(135deg, var(--primary) 0%, #00a86b 100%);
    padding: 3rem 0;
    color: white;
    text-align: center;
}

/* Constrain all container widths for optimal readability on large screens */
.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Ensure sections within main also respect max-width */
main section {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

header h1 {
    color: white;
    margin-bottom: 0.5rem;
}

header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
}

h2, h3, h4 {
    text-align: center;
}

.hero {
    text-align: center;
    padding: 2rem 0;
}

.problem-section {
    background-color: var(--pico-card-background-color);
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.solution-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.location-card {
    background-color: var(--pico-card-background-color);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--pico-muted-border-color);
}

.location-card h3 {
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.location-card ul {
    list-style: none !important;
    padding: 0;
    margin: 0;
}

.location-card li {
    list-style: none !important;
}

.location-card li {
    padding: 0.25rem 0;
    font-size: 0.95rem;
}

.cta-section {
    background-color: var(--pico-card-background-color);
    padding: 3rem 2rem;
    border-radius: 8px;
    margin: 3rem 0;
    text-align: center;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.feature {
    text-align: center;
    padding: 1rem;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

form {
    max-width: 500px;
    margin: 2rem auto;
}

#tally-form-container {
    max-width: 600px;
    margin: 2rem auto;
    background-color: white;
    border-radius: 8px;
    padding: 1rem;
}

#tally-form-container iframe {
    border-radius: 8px;
}

.form-note {
    font-size: 0.9rem;
    color: var(--pico-muted-color);
    margin-top: 0.5rem;
}

footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 1px solid var(--pico-muted-border-color);
    color: var(--pico-muted-color);
}

.highlight {
    background-color: #fff3cd;
    padding: 1rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    border: 2px solid #ffc107;
    display: block;
    margin-top: 1.5rem;
    font-size: 1.05rem;
}

.hero-cta {
    margin-top: 2rem;
}

.hero-cta button {
    font-size: 1.1rem;
    padding: 1rem 2rem;
    background-color: var(--primary);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.hero-cta button:hover {
    background-color: var(--primary-hover);
}

.form-trust-signals {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.95rem;
    color: var(--pico-muted-color);
}

.form-trust-signals span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#tally-form-container {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--primary);
}

html {
    scroll-behavior: smooth;
}

.locations-toggle {
    text-align: center;
    margin-top: 1rem;
}

.locations-toggle button {
    background-color: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.5rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.locations-toggle button:hover {
    background-color: var(--primary);
    color: white;
}

.location-card.hidden {
    display: none;
}

.key-faqs {
    background-color: var(--pico-card-background-color);
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.key-faqs h3 {
    margin-bottom: 1.5rem;
}

.key-faqs details {
    margin-bottom: 1rem;
}

.key-faqs summary,
details summary {
    display: flex;
    cursor: pointer;
}

.key-faqs summary::before,
details summary::before {
    content: '▶';
    display: inline-block;
    margin-right: 0.5rem;
    transition: transform 0.2s;
}

.key-faqs details[open] summary::before,
details[open] summary::before {
    transform: rotate(90deg);
}

.key-faqs summary::marker,
details summary::marker {
    content: '';
    display: none;
}

#exit-intent-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

#exit-intent-modal.show {
    display: flex;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    max-width: 500px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.modal-content h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.modal-content p {
    margin-bottom: 1.5rem;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--pico-muted-color);
}

.modal-close:hover {
    color: var(--primary);
}

.modal-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.modal-cta button {
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.modal-cta .primary-btn {
    background-color: var(--primary);
    color: white;
}

.modal-cta .primary-btn:hover {
    background-color: var(--primary-hover);
}

.modal-cta .secondary-btn {
    background-color: transparent;
    border: 1px solid var(--pico-muted-border-color);
    color: var(--pico-muted-color);
}

.modal-cta .secondary-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.problem-section ul {
    list-style: none !important;
    padding-left: 0 !important;
}

.problem-section ul li {
    list-style: none !important;
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
}

.problem-section ul li strong {
    font-size: 1.1rem;
}

.feature h3 {
    font-size: 1.3rem;
}

.feature p {
    font-size: 1rem;
}

/* Responsive max-width breakpoints following industry best practices */
@media (min-width: 1920px) {
    /* Extra large screens: cap at 1280px for optimal readability */
    .container,
    main section {
        max-width: 1280px;
    }
}

@media (max-width: 1279px) and (min-width: 1024px) {
    /* Large screens: 950px */
    .container,
    main section {
        max-width: 950px;
    }
}

@media (max-width: 1023px) and (min-width: 768px) {
    /* Medium screens (tablets): 700px */
    .container,
    main section {
        max-width: 700px;
    }
}

@media (max-width: 767px) {
    /* Small screens (mobile): Full width with padding */
    .container,
    main section {
        max-width: 100%;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* Thank You Page Styles */
.success-container {
    text-align: center;
    padding: 4rem 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.success-icon {
    font-size: 5rem;
    margin-bottom: 2rem;
    animation: bounce 1s ease-in-out;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.next-steps {
    background-color: var(--pico-card-background-color);
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
    text-align: left;
}

.next-steps ul {
    margin: 1rem 0;
}

.next-steps li {
    margin: 0.75rem 0;
}
