﻿/* ==========================================================================
   Contact Us Page - Professional Medical Network Theme
   Dr. Darshan Bafna Orthopaedics
   ========================================================================== */


:root {
  --theme-navy: #001F62;
  --theme-navy-dark: #001238;
  --theme-blue-accent: #0d6efd;
  --theme-bg-light: #f8fafc;
  --theme-border: #e2e8f0;
}

body.contact-page {
  font-family: 'Poppins', sans-serif;
  color: #1e293b;
  background-color: var(--theme-bg-light);
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

/* ── 1. HERO BANNER WITH BACKGROUND IMAGE & BREADCRUMB (FULL STANDARD HEIGHT) ── */
.contact-hero-banner {
  position: relative;
  width: 100%;
  min-height: 380px;
  background: linear-gradient(rgba(0, 31, 98, 0.48), rgba(0, 18, 56, 0.64)),
              url('../img/contact-banner.jpg') center 40% / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 130px;
  padding-bottom: 50px;
  text-align: center;
  box-sizing: border-box;
}

.contact-hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.contact-hero-title {
  font-family: 'Audiowide', cursive, sans-serif;
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
  line-height: 1.25;
  margin: 0 0 8px 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.banner-breadcrumb {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.banner-breadcrumb a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.banner-breadcrumb a:hover {
  color: #93c5fd;
  text-decoration: underline;
}

.banner-breadcrumb span {
  margin: 0 8px;
  color: rgba(255, 255, 255, 0.6);
}

.banner-breadcrumb .active-crumb {
  color: #93c5fd;
  font-weight: 600;
}

/* ── 2. TWO-COLUMN LAYOUT: LEFT DETAILS & RIGHT FORM ── */
.contact-content-section {
  padding: 45px 0 35px;
}

/* Badges - Minor Radius */
.details-badge,
.form-badge,
.map-badge {
  display: inline-flex;
  align-items: center;
  background: #eff6ff;
  color: #001F62;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid #dbeafe;
  margin-bottom: 10px;
}

/* Left Side: Clean, High-End Card (Minor Radius 8px) */
.contact-details-box {
  background: #ffffff;
  border-radius: 8px;
  padding: 36px 32px;
  color: #1e293b;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 31, 98, 0.05);
  border: 1px solid var(--theme-border);
  box-sizing: border-box;
}

.details-header h2 {
  font-family: 'Audiowide', cursive, sans-serif;
  font-size: 1.85rem;
  color: var(--theme-navy);
  margin: 0 0 8px 0;
}

.contact-details-sub {
  font-family: 'Outfit', sans-serif;
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0 0 24px 0;
}

.detail-item-group {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
}

.detail-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.detail-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: #f0f7ff;
  color: var(--theme-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  border: 1px solid #dbeafe;
}

.detail-text h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 4px 0;
}

.detail-text p {
  font-family: 'Outfit', sans-serif;
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.5;
  margin: 0;
}

.detail-text .phone-link {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--theme-navy);
  text-decoration: none;
  display: inline-block;
  transition: color 0.2s ease;
}

.detail-text .phone-link:hover {
  color: #0d6efd;
  text-decoration: underline;
}

.emergency-badge {
  display: inline-flex;
  align-items: center;
  background: #fef2f2;
  color: #dc2626;
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid #fee2e2;
  margin-top: 4px;
}

.detail-cta-row {
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.detail-btn-whatsapp {
  background: #25d366;
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 9px 16px;
  border-radius: 6px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.detail-btn-whatsapp:hover {
  background: #1eb954;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}

.detail-btn-appt {
  background: var(--theme-navy);
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 9px 16px;
  border-radius: 6px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.detail-btn-appt:hover {
  background: #001238;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 31, 98, 0.25);
}

/* Right Side: Clean Form Card (Minor Radius 8px, Compact & Neat) */
.contact-form-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 28px 24px;
  box-shadow: 0 4px 20px rgba(0, 31, 98, 0.05);
  border: 1px solid var(--theme-border);
  height: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.form-header-box h2 {
  font-family: 'Audiowide', cursive, sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--theme-navy);
  margin: 0 0 4px 0;
}

.form-header-box p {
  font-family: 'Outfit', sans-serif;
  color: #64748b;
  font-size: 0.88rem;
  margin: 0 0 16px 0;
}

.cf-input-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.cf-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
}

.cf-input-grid .cf-field {
  margin-bottom: 0;
}

.cf-field label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 4px;
}

.cf-input {
  width: 100%;
  padding: 9px 13px;
  border-radius: 6px;
  border: 1.5px solid #cbd5e1;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  color: #1e293b;
  background: #f8fafc;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.cf-input:focus {
  outline: none;
  border-color: var(--theme-navy);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 31, 98, 0.10);
}

.cf-textarea {
  resize: vertical;
  min-height: 95px;
}

.cf-submit-btn {
  background: linear-gradient(135deg, var(--theme-navy), #0a3d91);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 11px 20px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.96rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
  width: 100%;
  margin-top: 2px;
}

.cf-submit-btn:hover {
  background: linear-gradient(135deg, #001238, var(--theme-navy));
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 31, 98, 0.22);
}

.contact-alert {
  padding: 12px 16px;
  border-radius: 6px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  margin-top: 14px;
  display: none;
}

.contact-alert.success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.contact-alert.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* ── 3. MAP WITH CONTAINER LEFT/RIGHT PADDING & MINOR RADIUS CARD ── */
.contact-map-section {
  padding: 15px 0 60px;
}

.map-card-wrapper {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--theme-border);
  box-shadow: 0 4px 20px rgba(0, 31, 98, 0.05);
}

.map-card-header {
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
  border-bottom: 1px solid #f1f5f9;
}

.map-header-info h3 {
  font-family: 'Audiowide', cursive, sans-serif;
  font-size: 1.35rem;
  color: var(--theme-navy);
  margin: 0 0 4px 0;
}

.map-header-info p {
  font-family: 'Outfit', sans-serif;
  color: #64748b;
  font-size: 0.92rem;
  margin: 0;
}

.map-directions-btn {
  background: var(--theme-navy);
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 6px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.map-directions-btn:hover {
  background: #001238;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 31, 98, 0.25);
}

.map-frame-box {
  width: 100%;
  height: 420px;
  position: relative;
}

.map-frame-box iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ── RESPONSIVE STYLES ── */
@media (max-width: 991px) {
  .cf-input-grid {
    grid-template-columns: 1fr;
  }
  .contact-details-box {
    padding: 28px 22px;
  }
  .contact-form-card {
    padding: 28px 22px;
  }
  .map-card-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .map-frame-box {
    height: 340px;
  }
}

@media (max-width: 768px) {
  .contact-hero-banner {
    min-height: 280px;
    padding-top: 110px;
    padding-bottom: 35px;
  }
  .contact-hero-title {
    font-size: 2rem;
  }
  .contact-content-section {
    padding: 30px 0 20px;
  }
  .contact-map-section {
    padding: 10px 0 40px;
  }
  .map-card-header {
    padding: 18px 18px;
  }
  .map-header-info h3 {
    font-size: 1.2rem;
  }
}
