/* styles.css - Main stylesheet */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #00373e;
    --secondary: #4ccbbb;
    --accent: #efc01d;
    --danger: #f39cac;
    --background: #f7f6f4;
    --card-bg: #fdf7f1;
    --white: #ffffff;
    --text-primary: #00373e;
    --text-secondary: rgba(0, 55, 62, 0.7);
    --text-light: rgba(0, 55, 62, 0.6);
    --spacing: 0.25rem;
}

/* Offset scrolling for hash navigation (like #get-quote-form) */
html {
    scroll-padding-top: 6rem;
    /* adjust as needed for fixed headers */
}

body {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-variation-settings: 'opsz' 14, 'wdth' 100;
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0, 55, 62, 0.1);
    z-index: 50;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo,
.footer-logo {
    font-weight: 700;
    letter-spacing: -0.2px;
    text-transform: uppercase;
    font-size: 1.125rem;
}
.footer-logo {
    font-size: 0.8rem;
}
.logo a,
.footer-logo a {
    color: var(--primary);
    text-decoration: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}
.logo img,
.footer-logo img {
    height: 27px;
    margin-right: -5px;
    margin-top: -5px;
}
.footer-logo img {
    height: 19px;
    /* 27px × 0.7 = 18.9px */
    margin-right: -3.5px;
    /* -5px × 0.7 */
    margin-top: -3.5px;
    /* -5px × 0.7 */
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s;
    letter-spacing: 0.5px;
}

.nav-phone:hover {
    color: var(--secondary);
}

.desktop-menu {
    display: none;
}

.mobile-menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle svg {
    width: 1.5rem;
    height: 1.5rem;
    stroke: var(--text-primary);
}

.close-icon {
    display: none;
}

.mobile-menu-toggle.active .menu-icon {
    display: none;
}

.mobile-menu-toggle.active .close-icon {
    display: block;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(0, 55, 62, 0.1);
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 0.5px;
}

/* Sticky Bar */
.sticky-bar {
    position: fixed;
    bottom: -100px;
    left: 0;
    right: 0;
    background: var(--primary);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    z-index: 40;
    transition: bottom 0.3s;
}

.sticky-bar.visible {
    bottom: 0;
}

.sticky-bar-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
}

.sticky-bar-text {
    text-align: center;
    color: var(--white);
}

.sticky-bar-title {
    letter-spacing: 0.5px;
}

.sticky-bar-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.sticky-bar-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1.5rem;
    border-radius: 100px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    text-decoration: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: rgba(0, 55, 62, 0.9);
}

.btn-outline {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-white {
    background: var(--white);
    color: var(--primary);
}

.btn-white:hover {
    background: rgba(255, 255, 255, 0.9);
}

.btn-accent {
    background: var(--secondary);
    color: var(--white);
}

.btn-accent:hover {
    background: rgba(76, 203, 187, 0.9);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}
@media screen and (max-width: 500px) {
    .btn-lg {
        font-size: 0.8rem;
        padding: 0.95rem 1.125rem;
    }
}
.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.icon {
    width: 1.25rem;
    height: 1.25rem;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 8rem 1.5rem 3rem;
    overflow: hidden;
}

.hero-gradient {
    position: absolute;
    top: 0;
    right: 0;
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, rgba(76, 203, 187, 0.2), rgba(239, 192, 29, 0.2));
    border-radius: 50%;
    filter: blur(64px);
    z-index: -1;
}

.hero-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

.urgency-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(243, 156, 172, 0.1);
    border: 1px solid rgba(243, 156, 172, 0.3);
    border-radius: 100px;
    padding: 0.5rem 1rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}
@media screen and (max-width: 500px) {
    .urgency-badge {
        font-size: 0.7rem;
    }
}

.urgency-badge svg {
    stroke: var(--danger);
}

.hero-title {
    font-size: clamp(2.75rem, 6vw, 4.5rem);
    line-height: 1.05;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.gradient-text {
    display: block;
    background: linear-gradient(to right, var(--secondary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
    max-width: 40rem;
}

.benefit-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}
@media screen and (max-width: 500px) {
    .benefit-badges {
        display: none;
    }
}
.badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--white);
    border: 1px solid rgba(0, 55, 62, 0.1);
    border-radius: 100px;
    padding: 0.5rem 1rem;
    letter-spacing: 0.5px;
}

.badge svg {
    stroke: var(--secondary);
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.trust-line {
    color: var(--text-light);
    letter-spacing: 0.5px;
}
@media screen and (max-width: 500px) {
    .trust-line {
        font-size: 0.6em;
        text-align: center;
    }
}
.hero-image {
    position: relative;
    height: 400px;
}

.image-wrapper {
    position: absolute;
    inset: 0;
    border-radius: 50px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0, 55, 62, 0.05), rgba(76, 203, 187, 0.05));
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.floating-card {
    position: absolute;
    background: var(--white);
    border-radius: 30px;
    padding: 1rem;
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 55, 62, 0.1);
    display: none;
}

.floating-card-1 {
    top: 3rem;
    left: -1rem;
}

.floating-card-2 {
    bottom: 3rem;
    right: -1rem;
    background: var(--primary);
    color: var(--white);
}

.floating-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.floating-card-icon {
    width: 3rem;
    height: 3rem;
    background: rgba(76, 203, 187, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-card-2 .floating-card-icon {
    background: rgba(255, 255, 255, 0.2);
}

.floating-card-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    stroke: var(--secondary);
}

.floating-card-2 .floating-card-icon svg {
    stroke: var(--white);
}

.card-title {
    letter-spacing: 0.5px;
    font-weight: 600;
}

.card-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.floating-card-2 .card-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

/* Stats Section */
.stats-section {
    position: relative;
    z-index: 20;
    margin-top: -5rem;
    padding: 0 1.5rem 4rem;
}

.stats-card {
    background: var(--white);
    border-radius: 50px;
    padding: 2rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 55, 62, 0.05);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.stat-item:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
}

.stat-icon svg {
    width: 2rem;
    height: 2rem;
}

.stat-icon-primary {
    background: rgba(76, 203, 187, 0.2);
}

.stat-icon-primary svg {
    stroke: var(--secondary);
}

.stat-icon-accent {
    background: rgba(239, 192, 29, 0.2);
}

.stat-icon-accent svg {
    stroke: var(--accent);
}

.stat-icon-secondary {
    background: rgba(243, 156, 172, 0.2);
}

.stat-icon-secondary svg {
    stroke: var(--danger);
}

.stat-value {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-label {
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    font-size: 0.875rem;
}

/* Sections */
section {
    padding: 4rem 1.5rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-subtitle {
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-description {
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.6;
    max-width: 30rem;
    margin: 0 auto;
}

/* Form Section */
.form-section {
    background: var(--background);
}

.form-container {
    max-width: 48rem;
    margin: 0 auto;
}

.multi-step-form {
    width: 100%;
}

.form-progress {
    margin-bottom: 2rem;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.progress-bar {
    height: 0.5rem;
    background: rgba(0, 55, 62, 0.1);
    border-radius: 100px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    transition: width 0.3s;
}
.form-alert {
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    display: none;
}

.form-alert.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-alert.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-card {
    background: var(--card-bg);
    border-radius: 50px;
    padding: 3rem 2rem;
    min-height: 400px;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.3s;
}

.form-step h3 {
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 0.5rem;
}

.step-description {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 2rem;
}

.form-input {
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--white);
    border: 2px solid rgba(0, 55, 62, 0.2);
    border-radius: 30px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
    outline: none;
}
/* Global select input fix */
select.form-input {
    padding-right: 2.5rem;
    /* leave space for arrow */
    appearance: none;
    /* remove default styling */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgd2lkdGg9IjMyIiBoZWlnaHQ9IjMyIiBjb2xvcj0iIzAwMDAwMCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJjdXJyZW50Q29sb3IiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiPgogICAgPHBhdGggZD0iTTE4IDkuMDAwMDVDMTggOS4wMDAwNSAxMy41ODExIDE1IDEyIDE1QzEwLjQxODggMTUgNiA5IDYgOSIgLz4KPC9zdmc+");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 0.65rem;
}

.form-input:focus {
    border-color: var(--primary);
}

.form-input-center {
    text-align: center;
}

#tcpaConsent {
    margin-top: 15px;
}

.checkbox-label {
    margin-left: 5px;
}

.disclaimer-text {
    font-size: 0.835rem;
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: justify;
}
.button-group {
    display: grid;
    gap: 0.75rem;
}

.button-group-2col {
    grid-template-columns: repeat(2, 1fr);
}

.option-btn {
    padding: 1.5rem 1.5rem;
    background: var(--white);
    color: var(--text-primary);
    border: 2px solid rgba(0, 55, 62, 0.2);
    border-radius: 30px;
    font-size: 1rem;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.option-btn:hover {
    border-color: rgba(0, 55, 62, 0.4);
}

.option-btn.selected {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

/* Reasons Section */
.reasons-section {
    background: var(--background);
}

.reasons-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

.reason-card {
    background: var(--white);
    border-radius: 50px;
    padding: 2rem;
}

.reason-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.reason-icon svg {
    width: 2rem;
    height: 2rem;
}

.reason-icon-danger {
    background: rgba(243, 156, 172, 0.2);
}

.reason-icon-danger svg {
    stroke: var(--danger);
}

.reason-icon-warning {
    background: rgba(239, 192, 29, 0.2);
}

.reason-icon-warning svg {
    stroke: var(--accent);
}

.reason-icon-success {
    background: rgba(76, 203, 187, 0.2);
}

.reason-icon-success svg {
    stroke: var(--secondary);
}

.reason-card h3 {
    margin-bottom: 0.75rem;
    letter-spacing: 0.5px;
}

.reason-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}
/* --- Benefits Section --- */
.benefits-section {
    padding: 4rem 1.5rem;
    background: #fff;
}

@media (min-width: 768px) {
    .benefits-section {
        padding: 6rem 3rem;
    }
}

.benefits-container {
    max-width: 1440px;
    margin: 0 auto;
}

/* Header */
.benefits-header {
    text-align: center;
    margin-bottom: 4rem;
}

.benefits-pretitle {
    color: #00373e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.benefits-title {
    color: #00373e;
    line-height: 1.2;
    font-size: clamp(2rem, 4vw, 3rem);
}

/* Grid */
.benefits-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .benefits-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Card */
.benefit-card {
    background: #fdf7f1;
    border-radius: 50px;
    padding: 2rem;
}

.benefit-icon svg {
    width: 32px;
    height: 32px;
    color: #00373e;
    margin-bottom: 1rem;
}

.benefit-title {
    color: #00373e;
    margin-bottom: 0.75rem;
    letter-spacing: 0.5px;
}

.benefit-description {
    color: rgba(0, 55, 62, 0.7);
    line-height: 1.6;
}

.cta-card {
    background: var(--primary);
    color: var(--white);
    border-radius: 50px;
    padding: 3rem 2rem;
    text-align: center;
}

.cta-card h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.cta-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

.btn-secondary {
    background: var(--secondary);
    color: var(--white);
}

.btn-secondary:hover {
    background: rgba(76, 203, 187, 0.9);
}

.btn-tertiary {
    background: var(--danger);
    color: var(--white);
}

.btn-tertiary:hover {
    background: rgba(243, 156, 172, 0.9);
}

/* FAQ Section */
.faq-section {
    background: var(--background);
}

.faq-content {
    display: grid;
    gap: 3rem;
    margin-bottom: 3rem;
}

.faq-header {
    max-width: none;
}

.faq-description {
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.6;
}

.faq-illustration {
    height: 24rem;
    background-color: var(--background);
    background-image: url(/images/faq-section.jpg);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    overflow: hidden;
    border-radius: 50px;
}

.faq-list {
    display: grid;
    gap: 1rem;
}

.faq-item {
    background: var(--white);
    border-radius: 30px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    font-size: 1.125rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    gap: 1rem;
}

.faq-icon {
    width: 2.625rem;
    height: 2.625rem;
    stroke: var(--primary);
    flex-shrink: 0;
    transition: transform 0.3s;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* About Section */
.about-section {
    background: var(--white);
}

.about-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

.about-text {
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.feature-item svg {
    stroke: var(--secondary);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.testimonial-card-featured {
    background: var(--card-bg);
    border-radius: 50px;
    padding: 3rem 2rem;
}

.stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
}

.stars svg {
    width: 1.5rem;
    height: 1.5rem;
    fill: var(--accent);
}

.testimonial-card-featured blockquote {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.testimonial-author-info {
    padding-top: 1.5rem;
}

.author-name {
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.author-details {
    color: var(--text-light);
    letter-spacing: 0.5px;
}

/* Final CTA Section */
.final-cta-section {
    background: var(--background);
}

.final-cta-card {
    background: var(--primary);
    color: var(--white);
    border-radius: 50px;
    padding: 4rem 2rem;
    text-align: center;
}

.final-cta-card h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.final-cta-card p {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.footer {
    padding: 3rem 1.5rem 6rem 1.5rem;
    background: var(--white);
    border-top: 1px solid rgba(0, 55, 62, 0.1);
}
.footer-content {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-logo {
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.footer-col h4 {
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.footer-col a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 55, 62, 0.1);
    color: var(--text-light);
    letter-spacing: 0.5px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.7s;
}

.animate-fade-in-delayed {
    animation: fadeIn 0.7s 0.3s both;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s, transform 0.6s;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}


.page-content {
    margin-top: 10rem;
}

/* ----------------------------------------------- */
/* Long-form Content / Policy & Legal Page Styles  */
/* ----------------------------------------------- */

.page-content {
    margin: 6rem auto 4rem;
    padding: 0 1.25rem;
}

/* Headings */
.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4 {
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1rem;
    margin-top: 2.5rem;
    letter-spacing: 0.3px;
}

.page-content h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
}
.page-content h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}
.page-content h3 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
}
.page-content h4 {
    font-size: 1.125rem;
}

/* Paragraphs */
.page-content p {
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    line-height: 1.7;
}

/* Lists */
.page-content ul,
.page-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.page-content li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

/* Links */
.page-content a {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: rgba(0, 55, 62, 0.3);
    text-underline-offset: 3px;
}

.page-content a:hover {
    text-decoration-color: var(--primary);
}

/* Horizontal rules */
.page-content hr {
    border: none;
    border-top: 1px solid rgba(0, 55, 62, 0.15);
    margin: 3rem 0;
}

/* Blockquotes */
.page-content blockquote {
    border-left: 4px solid var(--secondary);
    padding-left: 1rem;
    margin: 2rem 0;
    color: var(--text-secondary);
    font-style: italic;
}

/* Tables */
.page-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.page-content th,
.page-content td {
    border: 1px solid rgba(0, 55, 62, 0.15);
    padding: 0.75rem;
}

.page-content th {
    background: rgba(0, 55, 62, 0.05);
    font-weight: 600;
}

/* Code blocks (if needed) */
.page-content pre,
.page-content code {
    background: rgba(0, 55, 62, 0.05);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.875rem;
}

/* Spacing helpers for sections */
.page-content section {
    margin-bottom: 2.5rem;
}

/* --- Page-specific form enhancements --- */
.page-content .form-card {
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    background: var(--card-bg);
    max-width: 60rem;
    margin: 3rem auto;
}

/* Improve row spacing */
.page-content .form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Standard field width */
.page-content .form-field {
    flex: 1 1 calc(50% - 1.5rem);
    display: flex;
    flex-direction: column;
}

/* Make long fields span full width automatically */
.page-content .form-field:nth-child(1):only-child,
.page-content .form-field.full {
    flex: 1 1 100%;
}

/* Label styling */
.page-content .form-field label {
    font-weight: 600;
    margin-bottom: 0.45rem;
}

/* Inputs */
.page-content .form-input {
    padding: 0.75rem 1rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    font-size: 1rem;
}

.page-content .form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(210, 154, 0, 0.15);
    outline: none;
}

/* Radio button groups */
.page-content .button-group {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.35rem;
}

.page-content .option-btn {
    flex: 1 1 calc(50% - 0.75rem);
    padding: 0.75rem;
    border: 2px solid rgba(0, 55, 62, 0.2);
    text-align: center;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.page-content .option-btn input {
    display: none;
}

.page-content .option-btn:hover {
    border-color: var(--accent);
}

.page-content .option-btn.active,
.page-content .option-btn input:checked+span {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}


/* Mobile adjustments */
@media (max-width: 640px) {
    .page-content .form-field {
        flex: 1 1 100%;
    }

    .page-content .button-group {
        flex-direction: column;
    }

    .page-content .option-btn {
        flex: 1 1 100%;
    }
}


/* Tablet */
@media (min-width: 768px) {
    .desktop-menu {
        display: flex;
    }

    .mobile-menu-toggle {
        display: none;
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 3rem;
    }

    .reasons-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero-actions {
        flex-direction: row;
    }

    .sticky-bar-content {
        flex-direction: row;
        justify-content: space-between;
    }

    .sticky-bar-text {
        text-align: left;
    }

    .sticky-bar-actions {
        flex-direction: row;
        width: auto;
    }

    .cta-actions {
        flex-direction: row;
    }

    .footer-content {
        grid-template-columns: 2fr repeat(2, 1fr);
    }

    .floating-card {
        display: flex;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-card {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-card-primary {
        flex-direction: row-reverse;
    }

    .service-card-full {
        grid-template-columns: 1fr 1fr;
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .resources-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .community-card {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .faq-content {
        grid-template-columns: 1fr 1fr;
    }

    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 55% 45%;
    }

    .hero-image {
        height: 600px;
    }

    section {
        padding: 6rem 3rem;
    }

    .stats-section {
        padding: 0 3rem 4rem;
    }

    .container {
        padding: 0 3rem;
    }
}