/* ===================== GLOBAL ===================== */
:root {
  --navy: #0f2942;
  --teal: #2db5a3;
  --cream: #faf8f3;
  --gold: #d4a574;
  --slate: #64748b;
  --grad: linear-gradient(135deg, #00f5ff 0%, #0066ff 100%);
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  overflow-x: hidden;
  font-family: 'DM Sans', "Segoe UI", system-ui, sans-serif;
  background: var(--cream);
  color: var(--navy);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; }


/* ===================== HERO ===================== */
.contact-hero {
  position: relative;
  width: 100vw;
  height: 50vh;
  min-height: 260px;
  padding: 98px 20px 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("image/contactpage.jpg") center / cover no-repeat;
  z-index: 0;
}

.contact-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 1;
}

.contact-hero-overlay { display: none; }

.contact-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.contact-hero-content h1 {
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 900;
  letter-spacing: 2px;
  color: #fff;
  margin: 0 0 20px;
  text-transform: uppercase;
  line-height: 1.2;
}

.contact-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  flex-wrap: wrap;
  justify-content: center;
}

.contact-breadcrumb .divider { opacity: 0.6; }
.contact-breadcrumb .active { color: #39ff88; }

/* Desktop 1200px+ */
@media (min-width: 1200px) {
  .contact-hero { margin-top: 176px; }
  .contact-breadcrumb { margin-bottom: 100px; }
}

/* Laptop 1024px–1199px */
@media (min-width: 1024px) and (max-width: 1199px) {
  .contact-hero { margin-top: 176px; padding-top: 80px; }
  .contact-breadcrumb { margin-bottom: 90px; font-size: 14px; padding: 9px 20px; }
  .contact-hero-content h1 { font-size: clamp(26px, 5vw, 48px); letter-spacing: 1.5px; margin-bottom: 15px; }
}

/* Tablet 768px–1023px */
@media (min-width: 768px) and (max-width: 1023px) {
  .contact-hero { margin-top: 66px; padding-top: 67px; padding-left: 15px; padding-right: 15px; }
  .contact-hero-content h1 { font-size: clamp(26px, 5vw, 42px); letter-spacing: 1.5px; }
  .contact-breadcrumb { font-size: 14px; padding: 8px 18px; gap: 8px; }
}

/* Mobile max-767px */
@media (max-width: 767px) {
  .contact-hero { margin-top: 66px; padding-top: 66px; height: 40vh; padding-left: 10px; padding-right: 10px; }
  .contact-hero-content { padding: 0 10px; }
  .contact-hero-content h1 { font-size: clamp(24px, 6vw, 32px); letter-spacing: 1px; margin-bottom: 12px; }
  .contact-breadcrumb { font-size: 13px; padding: 7px 16px; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .contact-hero::before { animation: none !important; }
}


/* ===================== SECTION 1: CONTACT FORM ===================== */
.contact-section-1 {
  padding: 50px 20px;
  background: #fff;
  color: #000;
  max-width: 1400px;
  margin: 0 auto;
}

.contact-section-1-row {
  display: flex;
  gap: 20px;
}

.contact-section-1-col { width: 50%; }

.contact-section-1-info-card,
.contact-section-1-form-card {
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  height: 100%;
}

.contact-section-1-info-card h3,
.contact-section-1-form-card h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: #0066ff;
}

.contact-section-1-info-card p {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 12px;
}

.contact-section-1-info-card a {
  color: #0066ff;
}
.contact-section-1-info-card a:hover { text-decoration: underline; }

.contact-section-1-form-row {
  display: flex;
  gap: 12px;
  margin-bottom: 15px;
}

.contact-section-1-form-group { flex: 1; }

.contact-section-1-form-group label {
  display: block;
  font-size: 15px;
  margin-bottom: 6px;
  font-weight: 500;
}

.contact-section-1-form-group input,
.contact-section-1-form-group select,
.contact-section-1-form-group textarea {
  width: 100%;
  padding: 10px;
  font-size: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.contact-section-1-form-group textarea {
  min-height: 90px;
  resize: vertical;
}

.contact-section-1-form-card button {
  background: var(--grad);
  color: #fff;
  font-size: 17px;
  padding: 12px 30px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: filter 0.3s ease;
  width: 100%;
  margin-top: 8px;
}
.contact-section-1-form-card button:hover { filter: brightness(0.95); }

/* Laptop 769px–1024px */
@media (min-width: 769px) and (max-width: 1024px) {
  .contact-section-1 { padding: 35px 30px; }
  .contact-section-1-row { gap: 25px; }
  .contact-section-1-col { width: calc(50% - 12.5px); }
  .contact-section-1-info-card,
  .contact-section-1-form-card { padding: 22px; }
  .contact-section-1-info-card h3,
  .contact-section-1-form-card h3 { font-size: 21px; margin-bottom: 12px; }
  .contact-section-1-info-card p { font-size: 15px; margin-bottom: 10px; }
  .contact-section-1-form-row { gap: 10px; margin-bottom: 12px; }
  .contact-section-1-form-group label { font-size: 14px; margin-bottom: 5px; }
  .contact-section-1-form-group input,
  .contact-section-1-form-group select,
  .contact-section-1-form-group textarea { padding: 9px; font-size: 14px; }
  .contact-section-1-form-group textarea { min-height: 70px; }
  .contact-section-1-form-card button { padding: 11px; font-size: 16px; margin-top: 6px; }
}

/* Tablet max-768px */
@media (max-width: 768px) {
  .contact-section-1 { padding: 30px 20px; }
  .contact-section-1-row { flex-direction: column; gap: 20px; }
  .contact-section-1-col { width: 100%; }
  .contact-section-1-info-card,
  .contact-section-1-form-card { padding: 20px; }
  .contact-section-1-info-card h3,
  .contact-section-1-form-card h3 { font-size: 20px; }
  .contact-section-1-form-group input,
  .contact-section-1-form-group select,
  .contact-section-1-form-group textarea { padding: 12px; font-size: 16px; }
  .contact-section-1-form-card button { padding: 15px; font-size: 18px; }
}

/* Mobile max-520px */
@media (max-width: 520px) {
  .contact-section-1 { padding: 20px 15px; }
  .contact-section-1-row { gap: 15px; }
  .contact-section-1-info-card h3,
  .contact-section-1-form-card h3 { font-size: 18px; margin-bottom: 15px; }
  .contact-section-1-info-card p { font-size: 14px; }
  .contact-section-1-form-row { flex-direction: column; gap: 10px; }
  .contact-section-1-form-group input,
  .contact-section-1-form-group select,
  .contact-section-1-form-group textarea { padding: 10px; font-size: 14px; }
  .contact-section-1-form-card button { padding: 14px; font-size: 16px; }
}


/* ===================== LOCATION / MAP ===================== */
.location-section {
  min-height: 100vh;
  padding: 80px 20px;
  background:
    linear-gradient(135deg, rgba(15, 41, 66, 0.02) 0%, rgba(45, 181, 163, 0.02) 100%),
    var(--cream);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
  animation: fadeInUp 0.8s ease-out;
}

.badge {
  display: inline-block;
  padding: 8px 20px;
  background: var(--grad);
  color: #fff;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  color: var(--navy);
  margin-bottom: 15px;
  font-weight: 700;
}

.section-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--slate);
  max-width: 600px;
  margin: 0 auto;
}

.content-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  animation: fadeInUp 1s ease-out 0.2s backwards;
}

@media (min-width: 968px) {
  .content-wrapper { grid-template-columns: 400px 1fr; }
}

.info-card {
  background: #fff;
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(15, 41, 66, 0.08);
  border: 1px solid rgba(45, 181, 163, 0.1);
  position: relative;
  overflow: hidden;
}

.info-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
}

.clinic-name {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: var(--navy);
  margin-bottom: 10px;
  font-weight: 700;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 25px;
  padding: 20px;
  background: var(--cream);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.info-item:hover {
  transform: translateX(5px);
  background: linear-gradient(135deg, rgba(45, 181, 163, 0.05), rgba(212, 165, 116, 0.05));
}

.info-icon {
  width: 48px;
  height: 48px;
  background: var(--grad);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(45, 181, 163, 0.25);
}

.info-content h3 {
  font-size: 0.85rem;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
  font-weight: 500;
}

.info-content p {
  font-size: 13px;
  color: var(--navy);
  font-weight: 500;
  line-height: 1.5;
}

.map-container {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  height: 550px;
  box-shadow: 0 10px 40px rgba(15, 41, 66, 0.08);
  border: 1px solid rgba(45, 181, 163, 0.1);
  position: relative;
}

#map { width: 100%; height: 100%; }

.directions-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: var(--grad);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  margin-top: 10px;
  box-shadow: 0 4px 15px rgba(15, 41, 66, 0.3);
}

.directions-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(15, 41, 66, 0.4);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Leaflet Popup */
.leaflet-popup-content-wrapper {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(15, 41, 66, 0.15);
  border: 1px solid rgba(45, 181, 163, 0.2);
}

.leaflet-popup-content {
  margin: 20px;
  font-family: 'DM Sans', sans-serif;
  min-width: 200px;
}

.popup-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.popup-address {
  color: var(--slate);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 12px;
}

.popup-btn {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(135deg, #2db5a3, #25a290);
  color: #fff !important;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(45, 181, 163, 0.3);
}

.popup-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(45, 181, 163, 0.4);
}

/* Map Responsive */
@media (max-width: 768px) {
  .location-section { padding: 60px 20px; }
  .section-header { margin-bottom: 40px; }
  .info-card { padding: 30px; }
  .map-container { height: 400px; }
}

@media (max-width: 480px) {
  .info-card { padding: 25px; }
  .info-item { padding: 15px; }
  .map-container { height: 350px; }
}