/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #64748b;
    --accent-color: #0ea5e9;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --background-light: #f8fafc;
    --background-white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Adjust font sizes and margins for headings */
h1 {
    font-size: 3.5rem; /* Hero heading size */
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem; /* Section heading size */
    line-height: 1.3;
    margin-bottom: 3rem; /* Space below section headings */
}

h3 {
    font-size: 1.8rem; /* Subheading size */
    line-height: 1.4;
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.2rem; /* Smaller heading size, e.g., testimonial author */
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1.5rem; /* Space below paragraphs */
    line-height: 1.7; /* Improved line height for paragraphs */
}

ul, ol {
    margin-bottom: 1.5rem; /* Space below lists */
    padding-left: 1.5rem; /* Default list padding */
}

li {
    margin-bottom: 0.75rem; /* Space between list items */
    line-height: 1.6;
}

/* Ensure consistent spacing below elements that typically precede text */
section h2 + *,
.hero h1 + * {
    margin-top: 0;
}

/* Refine spacing for specific components */
.medicare-badge {
    margin-bottom: 2rem; /* Space below badge */
}

.hero-cta {
    margin-bottom: 2rem; /* Space below hero buttons */
}

.hero-trust {
    margin-top: 2rem; /* Space above trust items */
}

.trust-item {
    gap: 0.75rem; /* Slightly increased space in trust items */
}

.about-intro {
    margin-bottom: 2rem; /* Space below about intro */
}

.trust-badges {
    gap: 2rem; /* Space between trust badges */
    margin-top: 3rem; /* Space above trust badges */
}

.badge i {
    margin-bottom: 1rem; /* Space below badge icon */
}

.badge span {
    margin-bottom: 0.5rem; /* Space below badge title */
}

.product-card h3 {
    margin: 1.5rem 0 1rem; /* Adjusted margin for product title */
}

.product-card p {
    padding: 0 0 1.5rem; /* Adjusted padding for product description */
}

.product-features {
    padding: 0 0 1.5rem; /* Adjusted padding for product features */
}

.product-features li {
    margin-bottom: 0.75rem; /* Space between product features */
}

.testimonial-avatar {
    margin: 0 auto 1.5rem; /* Space below testimonial avatar */
}

.testimonial-text {
    margin-bottom: 1.5rem; /* Space below testimonial text */
}

.testimonial-author h4 {
    margin-bottom: 0.5rem; /* Space below testimonial author name */
}

.stars {
    margin-bottom: 0.5rem; /* Space below stars */
}

.contact-item {
    gap: 1.5rem; /* Increased space in contact items */
    padding: 2rem; /* Increased padding for contact items */
}

.contact-item i {
    font-size: 1.8rem; /* Slightly larger contact icons */
}

.contact-item p {
    margin-top: 0.5rem; /* Increased space below contact links */
}

.footer-logo p {
    margin-top: 0.5rem; /* Space below footer logo */
}

.footer-column h4 {
    margin-bottom: 1.5rem; /* Space below footer column titles */
}

.footer-column a {
    margin-bottom: 0.75rem; /* Space between footer links */
}

.social-icons {
    gap: 1.5rem; /* Increased space between social icons */
}

.footer-bottom {
    margin-top: 4rem; /* Space above footer bottom text */
    padding: 2rem 0; /* Padding for footer bottom */
}

/* Responsive Typography and Spacing adjustments */
@media (max-width: 992px) {
    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2.2rem;
        margin-bottom: 2.5rem;
    }

    h3 {
        font-size: 1.6rem;
    }

    p {
        margin-bottom: 1.2rem;
    }

    ul, ol {
        margin-bottom: 1.2rem;
    }

    li {
        margin-bottom: 0.6rem;
    }

    .hero {
        padding: 6rem 1.5rem 3rem;
    }

    .about-content, .eligibility-container {
        gap: 3rem;
    }

    .trust-badges {
        margin-top: 2rem;
    }

    .product-card h3 {
        margin-top: 1rem;
    }

    .testimonial-avatar {
        margin-bottom: 1rem;
    }

    .testimonial-text {
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    h3 {
        font-size: 1.4rem;
    }

    section {
        padding: 80px 0;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    section {
        padding: 60px 0;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .contact-item i {
        margin-bottom: 0.5rem;
    }

    .contact-item p {
        margin-top: 0;
    }
}

/* Header and Navigation */
header {
    background: var(--background-white);
    box-shadow: var(--shadow-sm);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 0.5rem 0; /* Reduced header vertical padding */
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 0.3rem 0; /* Reduced scrolled header vertical padding */
    box-shadow: var(--shadow-md);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.3rem 1rem; /* Reduced vertical padding */
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    overflow: visible;
}

.logo {
    flex-shrink: 1;
    margin-right: 5px;
    min-width: 0;
    overflow: visible;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.logo img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 180px;
}

.logo span {
    display: inline-block;
    background-color: #e0f2fe; /* Light blue background */
    padding: 0.3rem 1rem; /* Adjusted vertical padding */
    border-radius: var(--radius-md); /* Rounded corners */
    font-size: 1.5rem; /* Adjust font size as needed */
    font-weight: 600; /* Slightly less bold for Global */
    color: var(--text-dark); /* Dark text for "Global" */
    line-height: 1.2; /* Adjusted line height */
}

.logo span span {
    color: var(--primary-color); /* Blue text for "Marketing" */
    font-weight: 700; /* Keep Marketing bold */
    line-height: 1.2; /* Adjusted line height */
}

.nav-links {
    display: flex;
    align-items: center;
    flex-grow: 1;
    min-width: 0;
    justify-content: flex-end;
    overflow: visible;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 8rem 2rem 4rem;
    background: linear-gradient(135deg, var(--background-light) 0%, #e0f2fe 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 80vh;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.medicare-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    background: var(--background-white);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    width: fit-content;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
    border: 1px solid var(--background-light);
    margin-left: 0;
    margin-right: auto;
}

.medicare-badge:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.medicare-badge img {
    width: 40px;
    height: 40px;
}

.medicare-badge span {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.hero-content {
    flex: 1;
    padding-right: 2rem;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-weight: 700;
}

.subheadline {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 600px;
    font-weight: 400;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hero-trust {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.trust-item i {
    color: #27ae60;
    font-size: 1.2rem;
}

.hero-image {
    flex: 1;
    text-align: center;
    position: relative;
}

.hero-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.hero-image img:hover {
    transform: scale(1.02);
}

/* Buttons */
.cta-button {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.cta-button.primary {
    background: var(--primary-color);
    color: white;
    border: none;
    box-shadow: var(--shadow-sm);
}

.cta-button.primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.cta-button.secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Sections */
section {
    padding: 100px 0;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section h2 {
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 3rem;
    font-size: 2.5rem;
    position: relative;
    font-weight: 700;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-color);
    border-radius: var(--radius-sm);
}

/* About Section */
.about {
    background-color: var(--background-light);
    padding: 80px 0;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-intro {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 0;
}

/* Why Choose Us Section */
.why-choose-us {
    background-color: var(--background-white);
    padding: 80px 0;
}

.why-choose-us h2 {
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 3rem;
    font-size: 2.5rem;
    position: relative;
    font-weight: 700;
}

.why-choose-us h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-color);
    border-radius: var(--radius-sm);
}

.why-choose-us .trust-badges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.why-choose-us .badge {
    background: var(--background-light);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--background-light);
}

.why-choose-us .badge:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.why-choose-us .badge i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.why-choose-us .badge span {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.why-choose-us .badge p {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .why-choose-us {
        padding: 60px 0;
    }

    .why-choose-us h2 {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }

    .why-choose-us .trust-badges {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }

    .why-choose-us .badge {
        padding: 2rem;
    }

    .why-choose-us .badge i {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .why-choose-us .badge span {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .why-choose-us {
        padding: 40px 0;
    }

    .why-choose-us h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .why-choose-us .trust-badges {
        grid-template-columns: 1fr;
        max-width: 300px;
        margin: 2rem auto 0;
    }
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.product-card {
    background: var(--background-white);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--background-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.product-image {
    width: 100%;
    height: auto;
    max-width: 300px;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-card h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin: 1.5rem 1.5rem 1rem;
    font-weight: 600;
}

.product-card p {
    color: var(--text-light);
    padding: 0 1.5rem 1.5rem;
    line-height: 1.7;
}

.product-features {
    list-style: none;
    padding: 0 1.5rem 1.5rem;
}

.product-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-light);
}

.product-features li::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: bold;
}

/* Eligibility Section */
.eligibility-container {
    display: flex;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.eligibility-info {
    flex: 1;
    padding: 2rem;
    background: var(--background-white);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.eligibility-info h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.eligibility-info p {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.eligibility-benefits {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.benefit i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.eligibility-form {
    flex: 1;
    padding: 2rem;
    background: var(--background-white);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.eligibility-form .form-group {
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
}

.eligibility-form .form-group input,
.eligibility-form .form-group select {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    flex-basis: 0;
}

.eligibility-form .form-group input:focus,
.eligibility-form .form-group select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.eligibility-form .form-group input::placeholder {
    color: #94a3b8;
}

.eligibility-form button[type="submit"] {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.eligibility-form button[type="submit"]:hover {
    background: var(--primary-dark);
}

.eligibility-form button[type="submit"]:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

/* Testimonials */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: var(--background-white);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--background-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: block;
    transition: transform 0.3s ease;
}

.testimonial-card:hover .testimonial-avatar {
    transform: scale(1.1);
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #4B5563;
    margin-bottom: 1.5rem;
}

.testimonial-author h4 {
    font-size: 1.2rem;
    color: #1F2937;
    margin-bottom: 0.5rem;
}

.stars {
    color: #F59E0B;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* Contact Section */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--background-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--background-light);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.contact-item a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary-color);
}

.contact-item p {
    color: var(--text-light);
    margin-top: 0.25rem;
}

/* Footer */
footer {
    background: var(--text-dark);
    color: white;
    padding: 4rem 0 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 4rem;
}

.footer-logo img {
    width: 180px;
    margin-bottom: 1rem;
}

.footer-logo p {
    color: #94a3b8;
    line-height: 1.8;
}

.footer-logo span {
    display: inline-block;
    background-color: #e0f2fe; /* Light blue background */
    padding: 0.3rem 1rem; /* Adjusted vertical padding */
    border-radius: var(--radius-md); /* Rounded corners */
    font-size: 1.5rem; /* Adjust font size as needed */
    font-weight: 600; /* Slightly less bold for Global */
    color: var(--text-dark); /* Dark text for "Global" */
    line-height: 1.2; /* Adjusted line height */
}

.footer-logo span span {
    color: var(--primary-color); /* Blue text for "Marketing" */
    font-weight: 700; /* Keep Marketing bold */
    line-height: 1.2; /* Adjusted line height */
}

.footer-column h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-column a {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: white;
}

.footer-social h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    color: #94a3b8;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        padding: 0 2rem;
    }

    .hero-container {
        gap: 2rem;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero-form-card {
        padding: 2rem;
    }
}

@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
    }

    .hero-left, .hero-right {
        width: 100%;
    }

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

    .hero-form-card {
        max-width: 100%;
    }

    .trust-badges {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .orthotics-intro .container,
    .orthotics-benefits .container,
    .orthotics-how-it-works .container {
        flex-direction: column;
    }

    .orthotics-content,
    .orthotics-benefits-content,
    .orthotics-how-it-works-content {
        width: 100%;
        margin-bottom: 2rem;
    }

    .orthotics-image,
    .orthotics-benefits-image,
    .orthotics-how-it-works-image {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--background-white);
        padding: 1rem;
        box-shadow: var(--shadow-md);
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-cta {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-trust {
        flex-direction: column;
        align-items: flex-start;
    }

    .product-grid,
    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .social-icons {
        justify-content: center;
    }

    .types-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    section {
        padding: 3rem 0;
    }

    .container {
        padding: 0 1rem;
    }

    section h2 {
        font-size: 2rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .subheadline {
        font-size: 1rem;
    }

    .cta-button {
        width: 100%;
    }

    .hero-cta {
        width: 100%;
    }

    .hero-trust {
        width: 100%;
    }

    .medicare-badge {
        flex-direction: column;
        text-align: center;
    }

    .hero-form-card .form-group {
        flex-direction: column;
    }

    .hero-form-card .form-group input[type="text"],
    .hero-form-card .form-group input[type="tel"],
    .hero-form-card .form-group input[type="date"] {
        width: 100%;
    }

    .trust-badges {
        grid-template-columns: 1fr;
    }

    .type-card {
        padding: 1.5rem;
    }

    .type-icon {
        font-size: 2rem;
    }

    .orthotics-benefits li {
        font-size: 0.9rem;
    }
}

/* Add smooth scrolling for better mobile experience */
html {
    scroll-behavior: smooth;
}

/* Improve touch targets for mobile */
button,
a,
input,
select {
    min-height: 44px;
}

/* Prevent text size adjustment on orientation change */
html {
    -webkit-text-size-adjust: 100%;
}

/* Improve form elements on mobile */
input,
select,
textarea {
    font-size: 16px; /* Prevents zoom on iOS */
}

/* Add active states for touch devices */
@media (hover: none) {
    .cta-button:active,
    .nav-links a:active {
        transform: scale(0.98);
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.animate {
    animation: fadeIn 0.6s ease-out forwards;
}

.animate-delay-1 {
    animation: fadeIn 0.6s ease-out 0.2s forwards;
    opacity: 0;
}

.animate-delay-2 {
    animation: fadeIn 0.6s ease-out 0.4s forwards;
    opacity: 0;
}

.animate-delay-3 {
    animation: fadeIn 0.6s ease-out 0.6s forwards;
    opacity: 0;
}

.slide-in {
    animation: slideIn 0.6s ease-out forwards;
}

.scale-in {
    animation: scaleIn 0.6s ease-out forwards;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus Styles */
:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
}

/* Print Styles */
@media print {
    header,
    .hero-cta,
    .footer {
        display: none;
    }

    body {
        color: black;
        background: white;
    }

    .container {
        max-width: none;
        padding: 0;
    }

    a {
        text-decoration: none;
        color: black;
    }
}

/* New Sections Styling */
.orthotics-intro,
.orthotics-benefits,
.orthotics-how-it-works,
.orthotics-types,
.book-appointment,
.products,
.eligibility,
.testimonials,
.contact {
    padding: 80px 0;
}

.orthotics-intro .container,
.orthotics-how-it-works .container,
.book-appointment .container,
.orthotics-benefits .container {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.orthotics-intro .orthotics-content,
.orthotics-how-it-works .orthotics-how-it-works-content,
.orthotics-benefits-content {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
}

.orthotics-intro .orthotics-image,
.orthotics-how-it-works .orthotics-how-it-works-image,
.book-appointment-image,
.orthotics-benefits-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.orthotics-intro img,
.orthotics-how-it-works img,
.book-appointment img,
.orthotics-benefits-image img,
.orthotics-intro svg,
.orthotics-how-it-works svg,
.book-appointment svg,
.orthotics-benefits-image svg {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    display: block;
}

.orthotics-benefits {
    background-color: var(--text-dark);
    color: var(--background-light);
}

.orthotics-benefits h2,
.orthotics-types h2,
.book-appointment h2,
.products h2,
.eligibility h2,
.testimonials h2,
.contact h2 {
     text-align: center;
     margin-bottom: 40px;
     color: inherit;
     font-size: 2.5em;
     font-weight: 700;
}

.orthotics-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.orthotics-benefits li {
    margin-bottom: 20px;
    padding-left: 30px;
    position: relative;
    line-height: 1.8;
    font-size: 1.1em;
}

.orthotics-benefits li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--accent-color);
    position: absolute;
    left: 0;
    top: 5px;
    font-size: 1.2em;
}

.orthotics-types {
    background-color: var(--background-light);
}

.orthotics-types .container {
    flex-direction: column;
}

.types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    width: 100%;
}

.type-card {
    background: var(--background-white);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--background-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.type-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.type-icon {
    font-size: 56px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.type-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.4em;
    color: #333;
}

.type-card p {
    font-size: 1em;
    color: #555;
    line-height: 1.6;
}

.book-appointment-content-card {
    background: var(--background-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--background-light);
    flex: 1;
}

.book-appointment-content-card h2 {
     margin-top: 0;
     margin-bottom: 15px;
     color: #333;
     font-size: 2em;
}

.book-appointment-content-card p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.hero-left {
    flex: 1;
    min-width: 300px;
    padding-right: 2rem;
}

.hero-right {
    flex: 1.2;
    min-width: 300px;
}

.hero-form-card {
    background-color: var(--background-white);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--background-light);
}

.hero-form-card h2 {
     margin-top: 0;
     margin-bottom: 10px;
     text-align: center;
     color: var(--text-dark);
     font-size: 1.8em;
}

.hero-form-card p {
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 1em;
}

.hero-form-card .form-group {
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-form-card .form-group input[type="text"],
.hero-form-card .form-group input[type="tel"],
.hero-form-card .form-group input[type="email"],
.hero-form-card .form-group input[type="date"],
.hero-form-card .form-group input[type="text"][placeholder="Medicare ID"],
.hero-form-card .form-group input[type="text"][placeholder="Address"],
.hero-form-card .form-group input[type="text"][placeholder="Zip Code"] {
    flex: 1;
    min-width: 150px;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    box-sizing: border-box;
    background: var(--background-light);
}

/* Specific styles for the date input placeholder */
.hero-form-card .form-group input[type="date"]::placeholder {
    color: var(--text-light);
    opacity: 1;
}

.hero-form-card button.cta-button {
    width: 100%;
    padding: 14px;
    font-size: 1.1rem;
    margin-top: 10px;
}

/* Ensure existing sections also have consistent heading styles */
.products h2, .eligibility h2, .testimonials h2, .contact h2 {
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 40px;
    font-size: 2.5rem;
    position: relative;
}

.products h2::after,
.eligibility h2::after,
.testimonials h2::after,
.contact h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #3498db;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .orthotics-intro .container,
    .orthotics-how-it-works .container,
    .book-appointment .container,
    .orthotics-benefits .container,
    .hero-container {
        flex-direction: column;
        gap: 40px;
    }

    .orthotics-intro .orthotics-image,
    .orthotics-how-it-works .orthotics-how-it-works-image,
    .book-appointment-image,
    .orthotics-benefits-image {
        order: -1;
    }

    .hero-container .hero-left,
    .hero-container .hero-right,
    .orthotics-intro .orthotics-content,
    .orthotics-how-it-works .orthotics-how-it-works-content,
    .orthotics-benefits-content,
    .book-appointment-content-card {
          flex: none;
          width: 100%;
     }

     .hero-form-card .form-group input[type="text"],
     .hero-form-card .form-group input[type="tel"],
     .hero-form-card .form-group input[type="email"],
     .hero-form-card .form-group input[type="date"] {
         flex: none;
         width: 100%;
         min-width: 0;
     }

     .types-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 20px;
     }

     .type-card {
        padding: 25px;
     }

     .orthotics-benefits li {
         padding-left: 25px;
         font-size: 1em;
     }

     .orthotics-benefits li::before {
         top: 4px;
         font-size: 1.1em;
     }

     .orthotics-intro h2,
     .orthotics-benefits h2,
     .orthotics-how-it-works h2,
     .orthotics-types h2,
     .book-appointment h2,
     .products h2, .eligibility h2, .testimonials h2, .contact h2 {
         font-size: 2em;
     }

     .hero-form-card h2 {
         font-size: 1.6em;
     }
}

@media (max-width: 576px) {
    section {
        padding: 60px 0;
    }

     .container {
         padding: 0 15px;
     }

    .orthotics-intro .container,
    .orthotics-how-it-works .container,
    .book-appointment .container,
    .orthotics-benefits .container,
    .hero-container {
         gap: 30px;
    }

     .orthotics-intro h2,
     .orthotics-benefits h2,
     .orthotics-how-it-works h2,
     .orthotics-types h2,
     .book-appointment h2,
     .products h2, .eligibility h2, .testimonials h2, .contact h2 {
         font-size: 1.8em;
     }

     .hero-form-card h2 {
         font-size: 1.4em;
     }

     .type-card {
         padding: 20px;
     }

     .type-icon {
         font-size: 48px;
     }

     .orthotics-benefits li {
         font-size: 0.95em;
     }

     .hero-form-card .form-group input[type="text"],
     .hero-form-card .form-group input[type="tel"],
     .hero-form-card .form-group input[type="email"],
     .hero-form-card .form-group input[type="date"] {
          padding: 10px;
          font-size: 14px;
     }

     .hero-form-card button.cta-button {
         padding: 12px;
         font-size: 16px;
     }
}

/* Add this to your styles.css for validation error highlighting */
.is-invalid {
    border-color: #ef4444 !important; /* Red border */
    box-shadow: 0 0 0 0.2rem rgba(239, 68, 68, 0.25); /* Red glow */
}