/* style.css - iCarePoint Main Styles (with sticky form fix) */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f8f8fa;
    color: #1c1c1e;
    line-height: 1.5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    overflow: visible;
}

/* Header */
header {
    background: #ffffff;
    border-bottom: 2px solid #e9e9ef;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    display: block;
    height: 55px;
    width: auto;
}

.logo h1 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1c1c1e 0%, #0071e3 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
    font-weight: 600;
    flex-wrap: wrap;
}

.nav-links a {
    text-decoration: none;
    color: #1c1c1e;
    transition: 0.2s;
}

.nav-links a:hover {
    color: #0071e3;
}

.btn-outline-light {
    background: transparent;
    border: 2px solid #1c1c1e;
    padding: 8px 20px;
    border-radius: 40px;
    font-weight: 600;
    transition: 0.2s;
}

.btn-outline-light:hover {
    background: #1c1c1e;
    color: white;
    border-color: #1c1c1e;
}

/* Buttons */
.btn-primary {
    background: #0071e3;
    color: white;
    padding: 14px 32px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    transition: 0.2s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary i {
    margin-right: 8px;
}

.btn-primary:hover {
    background: #005bbf;
    transform: scale(1.02);
}

.btn-secondary {
    background: #e8e8ed;
    color: #1c1c1e;
    padding: 14px 32px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    transition: 0.2s;
    border: 2px solid transparent;
}

.btn-secondary:hover {
    background: #d4d4dc;
    border-color: #0071e3;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1c1c1e 0%, #2a2a2e 100%);
    color: white;
    padding: 60px 0;
    margin-bottom: 50px;
    border-radius: 0 0 48px 48px;
}

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

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.hero-text p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

.trust-badge {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.trust-badge span {
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 12px;
    border-radius: 40px;
    font-size: 0.9rem;
}

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

.hero-image img {
    max-width: 100%;
    border-radius: 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Two Column Layout */
.two-column {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin: 50px 0;
    align-items: flex-start;
    overflow: visible;
}

.service-details {
    flex: 1.5;
}

/* Fix for sticky form – removed sticky positioning to prevent overlap */
.booking-card {
    flex: 1;
    background: white;
    border-radius: 32px;
    padding: 32px;
    border: 2px solid #e9e9ef;
    position: static;
    height: auto;
    margin-bottom: 30px;
}

/* What's Included */
.included-list {
    margin: 30px 0;
}

.included-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #e9e9ef;
}

.included-item i {
    color: #2e7d32;
    font-size: 1.2rem;
}

/* Grids for icon+heading sections */
.problems-grid,
.why-local-grid,
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.problem-card,
.why-local-card,
.step-card {
    background: #f9f9fb;
    padding: 12px 16px;
    border-radius: 20px;
    border: 1px solid #e9e9ef;
    transition: 0.2s;
    line-height: 1.4;
}

.problem-card i,
.why-local-card i,
.step-card i {
    font-size: 1.4rem;
    color: #0071e3;
    margin-right: 10px;
    vertical-align: middle;
    display: inline-block;
}

.problem-card strong,
.why-local-card strong,
.step-card strong {
    font-weight: 700;
    vertical-align: middle;
    display: inline;
}

.models-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    background: white;
    padding: 20px;
    border-radius: 24px;
    border: 1px solid #e9e9ef;
    list-style: none;
    margin: 20px 0;
}

.models-list li {
    padding: 6px 0;
    font-weight: 500;
}

/* Content Section */
.content-section {
    background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
    border-radius: 32px;
    padding: 40px;
    margin: 40px 0;
    border: 2px solid #0071e3;
}

.content-section h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #1c1c1e;
}

.content-section h2 i {
    color: #0071e3;
    margin-right: 10px;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.content-card {
    background: white;
    padding: 20px;
    border-radius: 24px;
    border: 1px solid #e9e9ef;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.content-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    gap: 12px;
}

.content-card-header i {
    font-size: 1.8rem;
    color: #0071e3;
    margin: 0;
}

.content-card-header h3 {
    font-size: 1.3rem;
    margin: 0;
    line-height: 1.3;
}

.content-card p {
    color: #4a4a50;
    line-height: 1.6;
    margin: 0;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #0071e3;
}

.warning-box {
    background: #fff8e1;
    border-left: 4px solid #ffc107;
    padding: 20px;
    border-radius: 16px;
    margin-top: 25px;
}

.warning-box i {
    color: #ffc107;
    margin-right: 10px;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.feature-box {
    text-align: center;
    padding: 20px;
    background: #f9f9fb;
    border-radius: 20px;
    border: 1px solid #e9e9ef;
}

.feature-box i {
    font-size: 2rem;
    color: #0071e3;
    margin-bottom: 10px;
}

/* Before/After */
.before-after {
    display: flex;
    gap: 20px;
    margin: 30px 0;
}

.before-after img {
    width: 50%;
    border-radius: 20px;
    border: 2px solid #e9e9ef;
}

/* Simple Form */
.simple-form {
    margin-top: 20px;
}

.form-field {
    margin-bottom: 20px;
}

.form-field label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
}

.form-field input,
.form-field select {
    width: 100%;
    padding: 14px;
    border-radius: 16px;
    border: 2px solid #e9e9ef;
    font-family: inherit;
    transition: 0.2s;
}

.form-field input:focus,
.form-field select:focus {
    border-color: #0071e3;
    outline: none;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
}

/* Full-width sections */
.full-width-section {
    margin: 50px 0;
}

.areas-full {
    background: #f9f9fb;
    border-radius: 32px;
    padding: 40px;
    border: 1px solid #e9e9ef;
}

.educational-full {
    background: white;
    border-radius: 32px;
    padding: 40px;
    border: 2px solid #e9e9ef;
}

.educational-full h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    border-left: 5px solid #0071e3;
    padding-left: 20px;
}

.educational-full h3 {
    font-size: 1.4rem;
    margin: 25px 0 15px 0;
    color: #1c1c1e;
}

.educational-full p {
    margin-bottom: 16px;
    line-height: 1.7;
    color: #4a4a50;
}

.educational-full ul {
    margin-left: 25px;
    margin-bottom: 20px;
}

/* Areas grid */
.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.area-card {
    background: white;
    padding: 12px;
    border-radius: 20px;
    border: 1px solid #e9e9ef;
    text-align: center;
    font-weight: 500;
}

/* Testimonials */
.testimonials {
    margin: 50px 0;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.testimonial-card {
    background: white;
    padding: 24px;
    border-radius: 24px;
    border: 2px solid #e9e9ef;
}

.stars {
    color: #f5b042;
    margin-bottom: 12px;
}

/* FAQ */
.faq-item {
    background: white;
    border-radius: 20px;
    margin-bottom: 12px;
    padding: 20px;
    cursor: pointer;
    border: 2px solid #e9e9ef;
}

.faq-question {
    font-weight: 800;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    display: none;
    margin-top: 12px;
    color: #4a4a50;
    padding-top: 12px;
    border-top: 1px solid #e9e9ef;
}

.faq-item.active .faq-answer {
    display: block;
}

/* CTA Banner */
.cta-banner {
    background: linear-gradient(135deg, #0071e3, #005bbf);
    color: white;
    border-radius: 32px;
    padding: 40px;
    text-align: center;
    margin: 50px 0;
}

/* Footer */
footer {
    background: #0f0f12;
    color: #e8e8ed;
    margin-top: 60px;
    padding: 60px 0 30px;
    border-top: 3px solid #0071e3;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 20px;
    border-left: 3px solid #0071e3;
    padding-left: 10px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #aaa;
    text-decoration: none;
    transition: 0.2s;
    font-size: 0.9rem;
}

.footer-col ul li a:hover {
    color: #0071e3;
    padding-left: 3px;
}

.contact-info p {
    margin: 8px 0;
    font-size: 0.9rem;
}

.contact-info a {
    color: #aaa;
    text-decoration: none;
}

.contact-info a:hover {
    color: #0071e3;
}

.social-links {
    display: flex;
    gap: 12px;
    margin: 20px 0;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: 0.2s;
}

.social-links a:hover {
    background: #0071e3;
    transform: translateY(-3px);
}

.payment-methods {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.payment-methods i {
    font-size: 1.8rem;
    color: #aaa;
    transition: 0.2s;
}

.payment-methods i:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid #222;
    font-size: 0.8rem;
    color: #777;
}

/* Responsive */
@media (max-width: 780px) {
    .navbar {
        flex-direction: column;
        gap: 16px;
    }

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

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .two-column {
        flex-direction: column;
    }

    .booking-card {
        position: static;
        margin-bottom: 30px;
    }

    .before-after {
        flex-direction: column;
    }

    .before-after img {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links,
    .payment-methods {
        justify-content: center;
    }

    .problems-grid,
    .why-local-grid,
    .process-steps {
        grid-template-columns: 1fr;
    }

    .footer-col h4 {
        border-left: none;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .logo img {
        height: 40px;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.6rem;
    }
}

/* Make the form sticky again, but prevent overlap */
.booking-card {
    flex: 1;
    background: white;
    border-radius: 32px;
    padding: 32px;
    border: 2px solid #e9e9ef;
    position: sticky;
    top: 100px;
    height: fit-content;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    margin-bottom: 30px;
}

/* Ensure the two-column layout respects the sticky and doesn't cause overflow */
.two-column {
    align-items: flex-start;
    overflow: visible;
}

/* Add extra space after the two-column to prevent footer from being hidden */
.two-column {
    margin-bottom: 60px;
}