/* ===== MODERN THEME VARIABLES ===== */
:root {
    --primary: #5e9800;
    --dark: #5f8620;
    --light-green: #e8f5e9;
    --text-dark: #5f8620;
    --text-light: #666;
    --white: #ffffff;
    --bg-soft: #f8faf8;
    --shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
    --radius: 20px;
}

/* ===== GLOBAL RESET & SCROLL FIX ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
    /* Fixes horizontal scroll bug */
    position: relative;
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-soft);
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding:25px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

/* ===== HERO SECTION ===== */
.cnt-hero {
    height: 500px;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
        url('../images/ContactPage_herosection.webp') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.cnt-hero h1 {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.cnt-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ===== CONTACT CARDS ===== */
.cnt-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: -70px;
    margin-bottom: 80px;
    align-items: start; 
}

.cnt-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.02);
    color: #2c3e50;
}

.cnt-card:hover {
    transform: translateY(-10px);
}

.icon-box {
    width: 65px;
    height: 65px;
    background: var(--light-green);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
}

/* ===== LOCATION DROPDOWN (STABLE HOVER) ===== */
.location-dropdown {
    position: relative;
    display: inline-block;
    margin-top: 15px;
    width: 100%;
}

.dropdown-trigger {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 12px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}

/* ===== LOCATION DROPDOWN FIXED ===== */

.location-dropdown {
    position: relative;
    display: inline-block;
    width: 100%;
    margin-top: 15px;
}

/* BUTTON */
.dropdown-trigger {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
}

/* DROPDOWN */
.dropdown-content {
    display: none;
    position: absolute;
    top: 50%;
    left: 100%;
    /* FIXED (no big gap) */
    transform: translateY(-50%);
    margin-left: 6px;

    width: 240px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    z-index: 1000;
}

/* ✅ KEEP OPEN */
.location-dropdown:hover .dropdown-content,
.dropdown-content:hover {
    display: block;
}

/* ✅ CORRECT BRIDGE (RIGHT SIDE, NOT DOWN) */
.location-dropdown::after {
    content: "";
    position: absolute;
    top: 0;
    left: 100%;
    width: 20px;
    /* small bridge */
    height: 100%;
}

/* ITEMS */
.dropdown-content a {
    display: block;
    padding: 14px 20px;
    color: var(--text-dark);
    border-bottom: 1px solid #f1f1f1;
    white-space: nowrap;
    /* ✅ FORCE SINGLE LINE */
    overflow: hidden;
    /* hide overflow */
    text-overflow: ellipsis;
}

.dropdown-content a:hover {
    background: var(--light-green);
    color: var(--primary);
    padding-left: 25px;
}

/* ===== FORM SECTION ===== */
.cnt-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 70px;
    align-items: start;
}

.form-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.input-group {
    margin-bottom: 15px;
    position: relative;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 1px solid #eee;
    border-radius: 12px;
    font-family: inherit;
    outline: none;
}

.input-group textarea {
    padding-left: 15px;
    height: 120px;
    resize: none;
    overflow-y: auto;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 18px;
    color: var(--primary);
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 14px;
}

.submit-btn:hover {
    background: var(--dark);
    transform: scale(1.02);
}

/* ===== MAP TABS ===== */
.map-container {
    padding: 40px 0 100px;
}

.map-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.map-tab-btn {
    padding: 10px 20px;
    border-radius: 25px;
    border: 1px solid var(--primary);
    background: var(--light-green);
    color: var(--primary);
    cursor: pointer;
    font-weight: 500;
    transition: 0.3s;
}

.map-tab-btn.active {
    background: var(--primary);
    color: white;
}

.map-box {
    width: 90%;
    max-width: 1100px;
    height: 450px;
    margin: 0 auto;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 2px solid var(--primary);
}

.map-box iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ===== RESPONSIVE FIXES ===== */
@media (max-width: 992px) {
    .cnt-grid {
        grid-template-columns: 1fr;
    }

    .cnt-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        margin-top: -40px;
    }

    /* Force Dropdown to open downward on mobile/tablet */
    .dropdown-content {
        position: relative;
        left: 0 !important;
        top: 10px !important;
        transform: none !important;
        width: 100%;
        display: none;
        box-shadow: none;
    }

    .location-dropdown:hover .dropdown-content {
        display: block;
    }

    .location-dropdown::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .cnt-hero h1 {
        font-size: 2.4rem;
    }

    .cnt-cards-grid {
        grid-template-columns: 1fr;
    }

    .map-box {
        height: 300px;
        width: 95%;
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translate(10px, -50%);
    }

    to {
        opacity: 1;
        transform: translate(0, -50%);
    }
}













/* new css for contact form */
/* ===== FORM SECTION ADDITIONS ===== */
.section-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary);
    margin: 20px 0 10px;
}

.section-label.first {
    margin-top: 0;
}

.form-divider {
    border: none;
    border-top: 1px solid #eef2ee;
    margin: 22px 0 16px;
}

.appt-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.optional-badge {
    font-size: 0.72rem;
    font-weight: 500;
    background: var(--light-green);
    color: var(--primary);
    padding: 3px 10px;
    border-radius: 30px;
}

.appt-hint {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 12px;
}

/* Clinic grid */
.clinic-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin-bottom: 4px;
}

.clinic-btn {
    background: #fafdfa;
    border: 1.5px solid #d6e8d6;
    border-radius: 12px;
    padding: 10px 12px;
    cursor: pointer;
    text-align: left;
    transition: all 0.18s ease;
    font-family: 'Poppins', sans-serif;
}

.clinic-btn--full {
    grid-column: 1 / -1;
}

.clinic-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.clinic-name {
    display: block;
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
}

.clinic-sub {
    display: block;
    font-size: 0.72rem;
    color: #999;
    margin-top: 2px;
}

.clinic-btn:hover {
    border-color: var(--primary);
    background: var(--light-green);
}

.clinic-btn:hover .clinic-name {
    color: var(--primary);
}

.clinic-btn.selected {
    border-color: var(--primary);
    background: var(--light-green);
    box-shadow: 0 0 0 2px rgba(46, 125, 50, 0.15);
}

.clinic-btn.selected .clinic-name {
    color: var(--primary);
}

.clinic-btn.selected .clinic-sub {
    color: #4a7f4e;
}

.check-icon {
    display: none;
    width: 18px;
    height: 18px;
    background: var(--primary);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.check-icon svg {
    width: 10px;
    height: 10px;
}

.clinic-btn.selected .check-icon {
    display: flex;
}






#waToast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #F59E0B;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    opacity: 0;
    transform: translateY(-20px);
    transition: 0.3s;
    z-index: 9999;
}

#waToast.show {
    opacity: 1;
    transform: translateY(0);
}

/* MOBILE */
@media (max-width: 768px) {
    #waToast {
        left: 50%;
        right: auto;
        transform: translate(-50%, -20px);
        min-width: 70%;
    }

    #waToast.show {
        transform: translate(-50%, 0);
    }
}












/* ===== INLINE MAP (inside left column) ===== */
.inline-map-section {
  margin-top: 20px;
}

.inline-map-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}

.imap-tab {
  padding: 7px 14px;
  border-radius: 25px;
  border: 1.5px solid var(--primary);
  background: var(--light-green);
  color: var(--primary);
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.imap-tab:hover,
.imap-tab.active {
  background: var(--primary);
  color: #fff;
}

.inline-map-box {
  width: 100%;
  height: 350px;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid var(--primary);
  box-shadow: var(--shadow);
}

.inline-map-box iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ===== UPDATED GRID — equal columns ===== */
.cnt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .cnt-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .inline-map-box {
    height: 240px;
  }
}

@media (max-width: 480px) {
  .inline-map-tabs {
    gap: 5px;
  }

  .imap-tab {
    font-size: 0.7rem;
    padding: 6px 11px;
  }

  .inline-map-box {
    height: 200px;
  }

  .clinic-grid { grid-template-columns: 1fr; }
  .clinic-btn--full { grid-column: auto; }
}





/* ===== CLICK-TOGGLE DROPDOWN (replaces hover) ===== */
.dropdown-content {
    display: none;
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    margin-left: 6px;
    width: 240px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    z-index: 1000;
}

/* Remove all hover-based open rules */
.location-dropdown:hover .dropdown-content,
.dropdown-content:hover {
    display: none; /* disable hover */
}

/* Only JS-toggled class opens it */
.location-dropdown.open .dropdown-content {
    display: block;
}

/* Remove hover bridge pseudo-element */
.location-dropdown::after {
    display: none;
}

/* ===== MOBILE: dropdown opens downward ===== */
@media (max-width: 992px) {
    .dropdown-content {
        position: relative;
        left: 0 !important;
        top: auto !important;
        transform: none !important;
        width: 100%;
        margin-left: 0;
        margin-top: 10px;
        box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    }
}

/* ===== MOBILE: center contact info column ===== */
@media (max-width: 768px) {
    .cnt-info-column {
        text-align: center;
        padding: 0 18px;
    }

    .cnt-info-column .cnt-tag,
    .cnt-info-column h2,
    .cnt-info-column .cnt-subtitle {
        text-align: center;
    }

    .info-list {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .info-row {
        justify-content: center;
        text-align: left;           /* keep text left inside the centered block */
        width: 100%;
        max-width: 320px;
    }

    .info-text {
        text-align: left;
    }

    /* branches heading row */
    .cnt-info-column > .info-icon,
    .cnt-info-column > .info-text {
        display: block;
        margin: 0 auto;
        text-align: center;
    }

    .cnt-info-column > .info-text p,
    .cnt-info-column > .info-text strong {
        text-align: center;
        display: block;
    }

    /* map tabs centered */
    .inline-map-tabs {
        justify-content: center;
    }
}




@media (max-width: 768px) {

    .cnt-cards-grid {
        margin-top: 20px;   /* remove overlap */
        margin-bottom: 40px;
    }

}
/* external padding */
@media (max-width: 768px) {

    .container {
        padding: 0 16px;  /* perfect mobile spacing */
    }

}
/* internal padding */
@media (max-width: 768px) {

    .form-card {
        padding: 18px 12px;
        border-radius: 14px; /* slightly smaller for mobile */
    }

}



@media (max-width: 768px) {

    .info-list {
        display: flex;
        flex-direction: row;         /* side by side on desktop stays */
        flex-wrap: wrap;
        justify-content: center;
        gap: 0;
    }

    .info-row {
        display: flex;
        flex-direction: column;      /* icon on top, then heading, then text */
        align-items: center;
        text-align: center;
        width: 100%;
        margin-top: 24px;
    }

    .info-row .info-icon {
        margin-bottom: 8px;
    }

    .info-row .info-text {
        text-align: center;
    }

    .info-row .info-text strong {
        display: block;
        margin-bottom: 4px;
    }

    .info-row .info-text p {
        margin: 0;
    }

    /* Make clickable row behave same as div rows */
    a.info-row {
        text-decoration: none;
        color: inherit;
    }


    .cnt-form-column{
        margin-bottom: 20px;
    }
    
}








/* Card must be relative so dropdown can escape it absolutely */
.location-card {
    position: relative;
    overflow: visible;        /* allow dropdown to escape card bounds */
}

/* Dropdown always absolute — never pushes card height */
.location-dropdown {
    position: relative;       /* anchor for the dropdown-content */
}

.dropdown-content {
    position: absolute;
    top: calc(100% + 8px);    /* just below the button */
    left: 50%;
    transform: translateX(-50%);
    width: 240px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    z-index: 9999;
    display: none;
}

/* Only open via JS toggle class */
.location-dropdown.open .dropdown-content {
    display: block;
}

/* Cards grid must not clip the dropdown */
.cnt-cards-grid {
    overflow: visible;
}



/* !------------------- */
