:root {
    --primary: #0dbfb0;
    --primary-dark: #0a9d90;
    --secondary: #2c3e50;
    --text: #333;
    --text-light: #666;
    --bg-light: #f8fbfb;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg-light);
    scroll-behavior: smooth;
    overflow-x: hidden; /* Fix horizontal overflow */
}

h1, h2, h3, h4, .btn {
    font-family: 'Montserrat', sans-serif;
}

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

.text-center { text-align: center; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 191, 176, 0.3);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #1a252f;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

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

.btn-block {
    display: block;
    width: 100%;
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.1rem;
}

/* Header */
header {
    background: var(--white);
    padding: 20px 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
}

/* Hero Section */
.hero {
    padding: 100px 0;
    background: linear-gradient(135deg, #fff 0%, #e0f2f1 100%);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(13, 191, 176, 0.05);
    border-radius: 50%;
    z-index: 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.badge {
    background: rgba(13, 191, 176, 0.1);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.8rem;
    display: inline-block;
    margin-bottom: 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 25px;
    color: var(--secondary);
}

.hero-content h1 span {
    color: var(--primary);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.doc-name {
    display: inline-block;
    color: var(--secondary);
    font-weight: 700;
    margin-top: 5px;
    font-size: 1.4rem;
}

.hero-features {
    list-style: none;
}

.hero-features li {
    margin-bottom: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.hero-features i {
    color: var(--primary);
    margin-right: 12px;
    font-size: 1.2rem;
}

/* Form Card */
.hero-form-container {
    perspective: 1000px;
}

/* WhatsApp Fallback Button */
.whatsapp-fallback {
    text-align: center;
    margin-top: 20px;
}

.whatsapp-fallback p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 12px;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background-color: var(--white);
    color: #25d366;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    border: 2px solid #25d366;
    transition: all 0.3s ease;
}

.btn-whatsapp:hover {
    background-color: #25d366;
    color: var(--white);
    transform: translateY(-2px);
}

.form-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(0,0,0,0.05);
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
}

.form-card h3 {
    margin-bottom: 10px;
    color: var(--secondary);
}

.form-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 25px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    transition: border 0.3s;
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* Benefits Section */
.benefits {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--secondary);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.benefit-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: transform 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    background: rgba(13, 191, 176, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
}

.benefit-card h4 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* Doctor Section */
.doctor {
    padding: 100px 0;
    background-color: #f0f7f7;
}

.doctor-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.doctor-image {
    position: relative;
}

.doctor-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.doctor-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--primary);
    color: var(--white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.doctor-info h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.doctor-info .subtitle {
    font-weight: 600;
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.credentials {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
}

.creds-list {
    list-style: none;
    margin-top: 20px;
}

.creds-list li {
    margin-bottom: 12px;
}

.creds-list i {
    color: var(--primary);
    margin-right: 10px;
}

/* Gallery Section */
.gallery {
    padding: 100px 0;
}

.section-subtitle {
    color: var(--text-light);
    margin-top: -40px;
    margin-bottom: 50px;
}

.gallery-container {
    max-width: 900px;
    margin: 0 auto;
}

.case-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    background: var(--white);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.case-comparison div {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.case-comparison img {
    width: 100%;
    display: block;
    height: 300px;
    object-fit: cover;
}

.case-comparison span {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* CTA Banner */
.cta-banner {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.cta-banner h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-banner p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Footer */
footer {
    background: var(--secondary);
    color: #cbd5e0;
    padding: 80px 0 20px;
}

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

.footer-logo img {
    height: 70px;
}

.footer-info h4, .footer-links h4 {
    color: var(--white);
    margin-bottom: 25px;
}

.footer-info p {
    margin-bottom: 15px;
}

.footer-info i {
    color: var(--primary);
    margin-right: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    font-size: 0.85rem;
}

/* ========================
   MOBILE FIRST - Tablets
   ======================== */
@media (max-width: 992px) {
    .hero-grid, .doctor-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero {
        padding: 50px 0 40px;
    }

    .hero-content {
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.4rem;
    }

    .hero-features {
        display: inline-block;
        text-align: left;
    }

    .doctor-image {
        max-width: 400px;
        margin: 0 auto;
    }

    .doctor-badge {
        right: 10px;
        bottom: -10px;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* ========================
   MOBILE - Phones
   ======================== */
@media (max-width: 600px) {
    /* Header */
    header {
        padding: 10px 0;
    }

    .logo img {
        height: 35px; /* Smaller logo */
    }

    .btn-outline {
        padding: 8px 12px;
        font-size: 0.65rem;
        letter-spacing: 0;
        white-space: nowrap;
    }

    /* Hero */
    .hero {
        padding: 40px 0 20px;
    }

    .hero-content h1 {
        font-size: 1.2rem; /* Reduced further to guarantee 2 lines */
        line-height: 1.25;
        margin-bottom: 20px;
    }

    .hero-content p {
        font-size: 0.85rem; /* Reduced to fit in 2 lines */
        line-height: 1.5;
    }

    .doc-name {
        font-size: 1.1rem;
        display: block;
        margin-top: 5px;
    }

    .badge {
        font-size: 0.7rem;
        padding: 5px 12px;
        margin-bottom: 15px;
    }

    .hero-features li {
        font-size: 0.85rem;
        margin-bottom: 8px;
    }

    /* Form container */
    .form-card {
        padding: 10px;
        box-shadow: none;
        border: none;
        background: transparent;
        max-width: 100%;
    }

    .form-card.ghl-form-container iframe {
        height: 700px; /* Adjusted for the new 611px form */
    }

    /* WhatsApp button */
    .btn-whatsapp {
        width: 100%;
        font-size: 0.85rem;
        padding: 14px 15px;
    }

    /* Benefits */
    .benefits {
        padding: 40px 0;
    }

    .section-title {
        font-size: 1.5rem; /* Smaller section title */
        margin-bottom: 25px;
    }

    /* Doctor section */
    .doctor {
        padding: 40px 0;
    }

    .doctor-info h2 {
        font-size: 1.15rem; /* Reduced further to keep it in one line */
        letter-spacing: -0.5px;
    }

    .doctor-info .subtitle {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .credentials {
        padding: 15px;
    }

    .credentials p {
        font-size: 0.9rem;
    }

    .creds-list li {
        font-size: 0.85rem;
    }

    .btn-secondary {
        width: 100%;
        text-align: center;
        padding: 15px 20px;
        font-size: 0.85rem;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
        text-align: center;
    }

    .footer-logo img {
        height: 45px;
        margin: 0 auto;
    }

    /* General */
    .container {
        padding: 0 15px;
    }
}

/* GHL Form Style Mimic */
#leadForm_ghl, .ghl-form-container {
    background: var(--white);
}

.ghl-form-container input, 
.ghl-form-container textarea, 
.ghl-form-container select {
    width: 100%;
    padding: 12px 15px !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    font-family: inherit !important;
    font-size: 14px !important;
    margin-bottom: 15px !important;
    box-sizing: border-box;
}

.ghl-form-container button {
    background-color: var(--primary) !important;
    color: var(--white) !important;
    padding: 14px 28px !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    width: 100% !important;
    border: none !important;
    cursor: pointer !important;
    display: block;
    margin-top: 10px;
}

/* Thanks Page Styles */
.thanks-section {
    padding: 120px 0 80px;
    text-align: center;
    background: linear-gradient(135deg, #fff 0%, #e0f2f1 100%);
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.thanks-container {
    max-width: 700px;
    margin: 0 auto;
}

.success-icon {
    font-size: 5rem;
    color: var(--primary);
    margin-bottom: 30px;
}

.thanks-section h1 {
    font-size: 2.8rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

.thanks-section p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 40px;
}

.thanks-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

@media (max-width: 600px) {
    .thanks-section {
        padding: 80px 0 60px;
    }
    
    .thanks-section h1 {
        font-size: 1.8rem;
    }
    
    .thanks-section p {
        font-size: 1rem;
    }
    
    .thanks-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .success-icon {
        font-size: 4rem;
    }
}
