/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c5282;
    --secondary-color: #007bff;
    --accent-color: #007bff;
    --text-color: #2d3748;
    --light-bg: #f7fafc;
    --white: #ffffff;
    --gray-light: #f8f9fa;
    --gray-medium: #6c757d;
    --gray-dark: #495057;
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --container-max-width: 1200px;
    --section-padding: 80px 20px;
    --section-padding-mobile: 60px 20px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    background-color: var(--white);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

/* Container */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* --- TOP BAR --- */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #212529;
    color: #f8f9fa;
    padding: 12px 0;
    font-weight: 400;
    text-align: center;
    z-index: 1050;
    box-shadow: var(--shadow-light);
}

.top-bar .stars {
    color: #FFC107;
    margin-right: 8px;
}

.top-bar span {
    font-size: clamp(0.7rem, 2.5vw, 0.9rem);
    white-space: nowrap;
}

/* Navbar Styling */
.navbar {
    background-color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    position: sticky;
    top: 45px;
    z-index: 1000;
    margin-top: 45px;
    margin-bottom: 0;
    box-shadow: var(--shadow-light);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

.logo img {
    height: 50px;
    width: auto;
    display: block;
    object-fit: contain;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links li a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
}

/* Hero Section */
.hero {
    padding: var(--section-padding);
    background-color: var(--white);
    text-align: center;
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: var(--container-max-width);
    margin: 0 auto 150px auto;
    /* 80px bottom space */
    position: relative;
    width: 100%;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin: 0 0 1.5rem 0;
    color: var(--primary-color);
    line-height: 1.2;
    font-weight: 700;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--gray-medium);
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
    margin: 2.5rem auto;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    color: var(--text-color);
    padding: 0.5rem 0;
}

.feature-item i {
    color: var(--accent-color);
    font-size: 1.3rem;
    min-width: 20px;
}

/* Info Section */
.info-section {
    background-color: var(--gray-light);
    padding: 0;
    margin: 0;
    overflow: hidden;
}

/* Benefits Section */
.benefits {
    max-width: var(--container-max-width);
    /* MODIFIED: Reduced bottom margin for consistent, smaller spacing */
    margin: -60px auto 40px auto;
    padding: 60px 30px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    display: flex;
    align-items: center;
    gap: 4rem;
    position: relative;
    z-index: 10;
}

.benefit-content {
    flex: 1;
    text-align: left;
}

.benefit-content h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.benefit-content p {
    font-size: 1.1rem;
    color: var(--gray-medium);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.benefit-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.benefit-image img {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    object-fit: cover;
    display: block;
}

/* Trust Badges Section */
.trust-badges {
    padding-top: 0;
    /* Remove top padding */
    margin-top: 0;
    /* Remove extra space from outside */
    padding-bottom: 40px;
    padding-left: 10%;
    padding-right: 10%;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .trust-badges {
        padding-left: 5%;
        padding-right: 5%;
    }
}

@media (max-width: 480px) {
    .trust-badges {
        padding-left: 2%;
        padding-right: 2%;
    }
}

/* If there's an h2 or h3 inside, reduce its margin */
.trust-badges h2,
.trust-badges h3 {
    margin-top: 0;
}


/* Testimonials Section */
.testimonials {
    padding: var(--section-padding);
    background-color: var(--gray-light);
    text-align: center;
}

.testimonials h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: var(--primary-color);
    margin-bottom: 3rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.testimonial-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-light);
    text-align: left;
}

.testimonial-content p {
    font-style: italic;
    color: var(--gray-medium);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 1rem;
}

.testimonial-author h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.testimonial-author span {
    color: var(--gray-medium);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.5rem;
}

.stars {
    color: #fbbf24;
    font-size: 0.9rem;
}

/* Take Control Section */
.take-control {
    padding: var(--section-padding);
    background-color: var(--white);
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.control-content {
    flex: 1;
}

.control-content h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.control-content p {
    font-size: 1.1rem;
    color: var(--gray-medium);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.control-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.control-image img {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    object-fit: cover;
    display: block;
}

/* FAQ Section */
.faq {
    padding: var(--section-padding);
    background-color: var(--gray-light);
    text-align: center;
}

.faq h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: var(--primary-color);
    margin-bottom: 3rem;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.faq-question {
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h3 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin: 0;
    font-weight: 600;
}

.faq-question i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    text-align: left;
}

.faq-item.active .faq-answer {
    padding: 0 2rem 2rem 2rem;
    max-height: 200px;
}

.faq-answer p {
    color: var(--gray-medium);
    line-height: 1.7;
    margin: 0;
}

/* Final CTA Section */
.final-cta {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    text-align: center;
    padding-top: 160px;
    /* More space at the top */
    padding-bottom: 160px;
}

.final-cta h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
    color: var(--white);
}

.final-cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    background: rgba(0, 86, 198, 0.658);
}

.special-btn {
    background-color: #007bff;
    color: white;
}

.special-btn:hover {
    background-color: #fffbe6;
    /* Darker background */
    color: #007bff;
    /* Example: light cream text */
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.cta-button.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(4, 214, 244, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(72, 187, 120, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(72, 187, 120, 0);
    }
}

.eligibility-form {
    max-width: 500px;
    margin: 0 auto;
    display: grid;
    gap: 1rem;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    background: var(--white);
    color: var(--text-color);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

/* CTA Button */
.cta-button {
    background: linear-gradient(135deg, var(--accent-color), #007bff);
    color: var(--white);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--shadow-light);
}

/* Footer */
footer {
    background-color: #ffffff;
    color: var(--white);
    text-align: center;
    padding: 20px 1rem;
}

.footer-content p {
    opacity: 0.8;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {

    .benefits,
    .take-control {
        gap: 3rem;
        padding: 50px 20px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: var(--section-padding-mobile);
    }

    .navbar {
        padding: 15px 20px;
        margin-top: 45px;
    }

    .hero {
        min-height: 70vh;
        padding: 0 20px 60px 20px;
    }

    .reduce-top {
        margin-top: -30px; /* Added negative margin to move section further up */
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .semi-circle-bg {
        padding: 60px 20px 100px 20px;
        min-height: 50vh;
    }

    .benefits {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        margin-top: -40px;
        padding: 40px 20px;
        margin-left: 15px;
        margin-right: 15px;
    }

    .benefit-content h2,
    .control-content h2,
    .trust-badges h2,
    .testimonials h2,
    .faq h2,
    .final-cta h2 {
        font-size: 2rem;
    }

    .take-control {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .badges-grid {
        gap: 20px;
    }

    .badge-item img {
        width: 100px;
        height: 50px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hero-features {
        text-align: left;
    }

    .faq-question {
        padding: 1.25rem 1.5rem;
    }

    .faq-answer {
        padding: 0 1.5rem;
    }

    .faq-item.active .faq-answer {
        padding: 0 1.5rem 1.5rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 6px 15px;
    }

    .logo img {
        height: 40px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .semi-circle-bg {
        padding: 40px 15px 80px 15px;
    }

    .semi-circle-bg h2 {
        font-size: 1.8rem;
    }

    .benefits {
        margin-top: -30px;
        padding: 30px 15px;
    }

    .benefit-content h2,
    .control-content h2 {
        font-size: 1.8rem;
    }

    .cta-button {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }

    .badge-item img {
        width: 80px;
        height: 40px;
    }

    .testimonial-card {
        padding: 1.5rem;
    }

    .faq-question {
        padding: 1rem 1.25rem;
    }

    .faq-question h3 {
        font-size: 1rem;
    }
}

/* Additional improvements */
.info-section {
    margin: 0;
    padding: 0;
}

.trust-badges {
    margin-top: 0;
}

/* Fix for iframe spacing */
iframe {
    display: block;
    border: none;
    margin: 0;
    padding: 0;
}

/* Ensure proper spacing between sections */
section {
    margin: 0;
    padding: 0;
}

/* Improve text readability */
p {
    color: var(--gray-medium);
}

/* Better focus states for accessibility */
button:focus,
input:focus,
select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Image handling improvements */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Text Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes typewriter {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes blink {

    0%,
    50% {
        border-color: transparent;
    }

    51%,
    100% {
        border-color: var(--primary-color);
    }
}

.animate-typewriter {
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid var(--primary-color);
    animation: typewriter 3s steps(40, end), blink 0.75s step-end infinite;
}

/* Hover text effects */
.text-hover-glow:hover {
    text-shadow: 0 0 10px var(--accent-color);
    transition: text-shadow 0.3s ease;
}

.text-hover-scale:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* Ensure iframe content is properly sized */
iframe {
    display: block;
    border: none;
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 200px;
}

/* Fix for trust badges iframe */
.trust-badges iframe {
    min-height: 150px;
}

/* Fix for nav iframe */
.navbar iframe {
    min-height: 80px;
}

.footer-link {
    color: inherit;         /* Inherits the text color from parent (e.g., black or gray) */
    text-decoration: none;  /* Removes underline */
    font-weight: normal;    /* Optional: keep it normal weight */
}

.footer-link:hover {
    text-decoration: underline; /* Optional: underline on hover for accessibility */
}

.disclaimer {
    text-align: left;
    padding-left: 70px;
    padding-right: 70px;
    /* Optional styling */
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

.plain-link {
    color: inherit;          /* Uses the surrounding text color */
    text-decoration: none;   /* Removes underline */
    font-weight: inherit;    /* Keeps same weight as surrounding text */
}

.plain-link:hover {
    text-decoration: underline; /* Optional: subtle effect on hover */
}
