/* ============================================================
   KULKARNI DERMATOLOGY CENTRE — contact.css
   Extends index.css — do NOT edit index.css for contact styles
   ============================================================ */

/* ============================================================
   CONTACT HERO
   ============================================================ */
.contact-hero {
  min-height: 52vh;
  padding-top: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 80% at 50% 50%, rgba(0,229,160,.07) 0%, transparent 65%),
    radial-gradient(ellipse 50% 60% at 20% 80%, rgba(0,184,217,.09) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 80% 10%, rgba(26,46,122,.06) 0%, transparent 50%);
}
.contact-hero-content {
  position: relative;
  z-index: 2;
  padding: 60px 5% 50px;
  animation: fadeSlideUp .8s ease both;
}
.contact-hero-content .hero-badge   { margin-bottom: 20px; }
.contact-hero-content .hero-title   { font-family: var(--font-display); font-size: clamp(2.4rem,5vw,3.8rem); font-weight: 700; line-height: 1.1; color: var(--navy); margin-bottom: 18px; }
.contact-hero-content .hero-subtitle { font-size: 1.05rem; line-height: 1.75; color: var(--text-mid); max-width: 560px; margin: 0 auto 32px; }

/* Quick pills row */
.contact-quick-pills {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeSlideUp .8s .3s ease both;
}
.quick-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid rgba(0,184,217,.2);
  border-radius: 50px;
  padding: 9px 18px;
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-mid);
  box-shadow: 0 4px 16px rgba(26,46,122,.07);
  transition: all var(--transition);
}
.quick-pill:hover { color: var(--navy); border-color: var(--cyan); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,184,217,.18); }
.quick-pill.no-link { cursor: default; }
.quick-pill.no-link:hover { transform: none; }
.pill-icon { font-size: 1rem; }

/* ============================================================
   TABS SECTION
   ============================================================ */
.contact-tabs-section {
  background: var(--soft-bg);
  border-bottom: 1px solid rgba(0,184,217,.12);
  padding: 0 8%;
  position: sticky;
  top: var(--nav-h);
  z-index: 90;
  box-shadow: 0 2px 16px rgba(26,46,122,.06);
}
.tabs-wrapper {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.tabs-wrapper::-webkit-scrollbar { display: none; }
.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 18px 28px;
  font-family: var(--font-body);
  font-size: .92rem;
  font-weight: 600;
  color: var(--text-mid);
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
  outline: none;
}
.tab-btn:hover { color: var(--navy); background: rgba(0,184,217,.05); }
.tab-btn.active { color: var(--navy); border-bottom-color: var(--cyan); background: rgba(0,184,217,.06); }
.tab-icon { font-size: 1.05rem; }

/* ============================================================
   MAIN CONTACT GRID
   ============================================================ */
.contact-main {
  background: var(--soft-bg);
  padding: 52px 8% 80px;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
  align-items: flex-start;
}

/* Tab panels */
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeSlideUp .5s ease both; }

/* ============================================================
   FORM CARD
   ============================================================ */
.form-card {
  background: var(--white);
  border: 1px solid rgba(0,184,217,.12);
  border-radius: 28px;
  padding: 40px 36px;
  box-shadow: 0 8px 40px rgba(26,46,122,.08);
  position: relative;
  overflow: hidden;
}
.form-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--mint), var(--cyan), var(--navy));
}
.form-card-header {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(0,184,217,.1);
}
.form-card-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(0,229,160,.15), rgba(0,184,217,.15));
  border: 1px solid rgba(0,184,217,.2);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}
.form-card-header h2 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--navy); line-height: 1.2; margin-bottom: 4px; }
.form-card-header p  { font-size: .85rem; color: var(--text-light); line-height: 1.5; }

/* Success / Error banners */
.form-banner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 14px;
  font-size: .88rem;
  line-height: 1.6;
  margin-bottom: 24px;
  animation: fadeSlideUp .4s ease both;
}
.form-banner.success { background: rgba(0,229,160,.1); border: 1px solid rgba(0,229,160,.3); color: #027a52; }
.form-banner.error   { background: rgba(229,57,53,.08); border: 1px solid rgba(229,57,53,.25); color: #c62828; }
.form-banner span:first-child { font-size: 1.2rem; flex-shrink: 0; margin-top: 1px; }
.form-banner strong { display: block; margin-bottom: 2px; }

/* ============================================================
   FORM ELEMENTS
   ============================================================ */
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: flex; gap: 16px; }
.form-row.two-col > * { flex: 1 1 0; min-width: 0; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: .82rem; font-weight: 600; color: var(--text-dark); letter-spacing: .02em; }
.req { color: #e05555; }

.input-wrap { position: relative; display: flex; align-items: center; }
.input-icon { position: absolute; left: 14px; font-size: 1rem; pointer-events: none; z-index: 1; line-height: 1; }
.input-wrap input,
.input-wrap select,
.input-wrap textarea {
  width: 100%;
  padding: 12px 14px 12px 40px;
  font-family: var(--font-body);
  font-size: .9rem;
  color: var(--text-dark);
  background: var(--soft-bg);
  border: 1.5px solid rgba(0,184,217,.2);
  border-radius: 12px;
  transition: all var(--transition);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.input-wrap input::placeholder,
.input-wrap textarea::placeholder { color: var(--text-light); }
.input-wrap input:focus,
.input-wrap select:focus,
.input-wrap textarea:focus {
  border-color: var(--cyan);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(0,184,217,.12);
}
.input-wrap select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237a8ab0' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.textarea-wrap { align-items: flex-start; }
.textarea-wrap .input-icon { top: 14px; }
.input-wrap textarea { resize: vertical; min-height: 100px; }
.field-error { font-size: .76rem; color: #e05555; display: none; animation: fadeSlideUp .3s ease; }

/* Radio group */
.radio-group { display: flex; gap: 20px; flex-wrap: wrap; padding: 10px 0 4px; }
.radio-label { display: inline-flex; align-items: center; gap: 7px; font-size: .87rem; color: var(--text-mid); cursor: pointer; transition: color var(--transition); }
.radio-label input[type="radio"] { accent-color: var(--cyan); width: 16px; height: 16px; cursor: pointer; }
.radio-label:hover { color: var(--navy); }

/* Checkbox */
.checkbox-group { margin-top: 4px; }
.checkbox-label { display: inline-flex; align-items: flex-start; gap: 10px; font-size: .84rem; color: var(--text-mid); cursor: pointer; line-height: 1.5; }
.checkbox-label input[type="checkbox"] { accent-color: var(--cyan); width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; cursor: pointer; }

/* Submit button */
.form-submit { width: 100%; justify-content: center; font-size: 1rem; padding: 15px 28px; margin-top: 8px; border: none; }
.form-submit:disabled { opacity: .7; cursor: not-allowed; transform: none !important; }
.btn-loader { display: inline-flex; align-items: center; gap: 8px; }
.spin { animation: spinAnim .8s linear infinite; }
@keyframes spinAnim { to { transform: rotate(360deg); } }

/* ============================================================
   INFO CARDS — right column (1 per row, full width)
   ============================================================ */
.info-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

.info-card {
  background: var(--white);
  border: 1px solid rgba(0,184,217,.12);
  border-radius: var(--radius);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  transition: all var(--transition);
  box-shadow: 0 3px 16px rgba(26,46,122,.05);
}
.info-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(26,46,122,.10);
  border-color: rgba(0,184,217,.28);
}

.info-card-icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

/* Body: side-by-side layout — label left, content right */
.info-card-body {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  min-width: 0;
}

.info-card-label-col {
  flex-shrink: 0;
  width: 110px;
}

.info-card-label-col h4 {
  font-size: .7rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: .09em;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.3;
}

.info-card-content-col {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap;
}

/* Divider between label and content */
.info-card-divider {
  width: 1px;
  height: 36px;
  background: rgba(0,184,217,.18);
  flex-shrink: 0;
  margin-right: 18px;
}

.info-card-main {
  flex: 1;
  min-width: 0;
}

.info-card-main p {
  font-size: .85rem;
  color: var(--text-mid);
  line-height: 1.55;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.info-card-main p a { color: var(--teal); font-weight: 500; transition: color var(--transition); }
.info-card-main p a:hover { color: var(--navy); }

/* Phone — larger, bold */
.info-phone {
  font-size: 1rem !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
}
.info-phone a {
  color: var(--navy) !important;
  font-weight: 700 !important;
  transition: color var(--transition);
  white-space: nowrap;
}
.info-phone a:hover { color: var(--cyan) !important; }

/* Sub text (availability line) */
.info-sub {
  font-size: .74rem !important;
  color: var(--text-light) !important;
  white-space: nowrap;
  margin-top: 2px;
}

/* Address — allow wrap, remove ellipsis */
.info-card-main.allow-wrap p {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  font-size: .83rem;
  line-height: 1.6;
}

/* CTA link */
.info-link {
  display: inline-flex;
  align-items: center;
  font-size: .78rem;
  font-weight: 600;
  color: var(--cyan);
  white-space: nowrap;
  flex-shrink: 0;
  transition: color var(--transition);
}
.info-link:hover { color: var(--navy); }

/* ── Working Hours — inline row layout ── */
.hours-inline {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.hours-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .84rem;
  white-space: nowrap;
}
.hours-day {
  font-weight: 700;
  color: var(--text-dark);
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 72px;
}
.hours-time {
  color: var(--text-mid);
  white-space: nowrap;
}
.hours-closed {
  color: #e05555 !important;
  font-weight: 600;
  white-space: nowrap;
}

/* ============================================================
   MAP
   ============================================================ */
.map-container {
  background: var(--white);
  border: 1px solid rgba(0,184,217,.14);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(26,46,122,.08);
}
.map-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(0,184,217,.1);
}
.map-header h3 { font-size: .95rem; font-weight: 700; color: var(--navy); }
.map-external-link { font-size: .78rem; font-weight: 600; color: var(--cyan); transition: color var(--transition); }
.map-external-link:hover { color: var(--navy); }
.map-embed-wrap { position: relative; width: 100%; }
.map-embed-wrap iframe { display: block; width: 100%; height: 300px; border: 0; }
.map-address-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  font-size: .82rem;
  color: var(--text-mid);
  border-top: 1px solid rgba(0,184,217,.1);
  background: var(--soft-bg);
}
.map-address-pill span:first-child { font-size: 1rem; flex-shrink: 0; }

/* ============================================================
   WHATSAPP BUTTON
   ============================================================ */
.btn-whatsapp {
  border-color: rgba(37,211,102,.5) !important;
  color: #128c3e !important;
}
.btn-whatsapp:hover {
  background: rgba(37,211,102,.1) !important;
  border-color: #25d366 !important;
}
.btn-whatsapp svg { color: #25d366; }

/* ============================================================
   RESPONSIVE — 1200px
   ============================================================ */
@media (max-width: 1200px) {
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ============================================================
   RESPONSIVE — 1024px
   ============================================================ */
@media (max-width: 1024px) {
  .contact-main { padding: 40px 5% 64px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-info-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
  .info-cards { margin-bottom: 0; }
}

/* ============================================================
   RESPONSIVE — 768px
   ============================================================ */
@media (max-width: 768px) {
  .contact-hero { min-height: auto; padding-top: calc(var(--nav-h) + 10px); }
  .contact-hero-content { padding: 40px 5% 36px; }
  .contact-hero-content .hero-title { font-size: clamp(2rem, 7vw, 2.8rem); }
  .contact-quick-pills { flex-direction: column; align-items: center; gap: 8px; }
  .quick-pill { width: 100%; max-width: 320px; justify-content: center; }

  .contact-tabs-section { padding: 0 5%; }
  .tab-btn { padding: 14px 18px; font-size: .85rem; }

  .contact-main { padding: 28px 5% 52px; }
  .form-card { padding: 28px 20px; border-radius: 20px; }
  .form-card-header { gap: 14px; margin-bottom: 24px; padding-bottom: 20px; }
  .form-card-header h2 { font-size: 1.3rem; }
  .form-card-icon { width: 48px; height: 48px; font-size: 1.4rem; border-radius: 13px; }
  .form-row.two-col { flex-direction: column; gap: 20px; }
  .radio-group { gap: 12px; }

  .contact-info-col { grid-template-columns: 1fr; }
  .info-cards { gap: 12px; margin-bottom: 16px; }

  /* Tighten label column on mobile */
  .info-card-label-col { width: 80px; }
  .info-card-label-col h4 { font-size: .65rem; letter-spacing: .05em; }
  .info-card-divider { height: 28px; margin-right: 12px; }

  /* Allow address/email text to wrap */
  .info-card-main p { white-space: normal; overflow: visible; text-overflow: unset; }
  .info-sub { white-space: normal !important; }
  /* Hours: keep all on ONE line, smaller font */
  .hours-row { font-size: .78rem; gap: 8px; white-space: nowrap; }
  .hours-day { min-width: 60px; }
  .info-phone { font-size: .9rem !important; }

  .map-embed-wrap iframe { height: 260px; }
}

/* ============================================================
   RESPONSIVE — 480px
   ============================================================ */
@media (max-width: 480px) {
  .contact-hero-content { padding: 32px 5% 28px; }
  .contact-hero-content .hero-subtitle { font-size: .92rem; }

  .form-card { padding: 22px 16px; }
  .form-card-header { flex-direction: column; align-items: flex-start; }
  .form-card-header p { font-size: .82rem; }

  .input-wrap input,
  .input-wrap select,
  .input-wrap textarea { font-size: .88rem; padding: 11px 12px 11px 38px; }
  .input-icon { left: 12px; font-size: .9rem; }

  .info-card { padding: 14px 16px; gap: 12px; }
  .info-card-icon { width: 40px; height: 40px; font-size: 1.1rem; border-radius: 10px; }
  .info-card-label-col { width: 86px; }
  .info-card-label-col h4 { font-size: .64rem; }
  .info-card-main p { font-size: .8rem; }
  .info-phone { font-size: .88rem !important; }
  /* Hours: keep on single line, shrink font slightly */
  .hours-row { font-size: .76rem; gap: 6px; }

  .map-embed-wrap iframe { height: 220px; }
  .map-header { padding: 14px 16px; }
  .map-address-pill { padding: 12px 16px; font-size: .79rem; }

  .contact-tabs-section { padding: 0 4%; }
  .tab-btn { padding: 12px 14px; font-size: .82rem; gap: 6px; }
  .tab-icon { font-size: .95rem; }
  .form-submit { font-size: .93rem; padding: 13px 20px; }
}

/* ============================================================
   RESPONSIVE — 360px
   ============================================================ */
@media (max-width: 360px) {
  .contact-quick-pills { gap: 6px; }
  .quick-pill { font-size: .8rem; padding: 8px 14px; }
  .form-card { padding: 18px 12px; }
  .radio-group { gap: 8px; }
  .radio-label { font-size: .8rem; }
  .checkbox-label { font-size: .78rem; }
  .form-banner { padding: 12px 14px; font-size: .82rem; }
  .info-card-label-col { width: 76px; }
}