/* ========================================================
   Medical Journey - Main Stylesheet
   Design: calm healthcare teal + warm coral action color,
   large touch targets, icon-led, bilingual-friendly type.
   ======================================================== */

:root {
  --teal: #0F6E6E;
  --teal-dark: #0A4F4F;
  --teal-bg: #EAF6F6;
  --coral: #FF7A45;
  --coral-dark: #E8632E;
  --ink: #1F2D3D;
  --muted: #5B6B6B;
  --white: #FFFFFF;
  --gold: #F5A623;
  --radius: 16px;
  --shadow: 0 4px 20px rgba(15, 110, 110, 0.10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Hind', 'Segoe UI', Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  font-size: 17px;
  line-height: 1.6;
}

h1, h2, h3, .display {
  font-family: 'Baloo 2', 'Hind', sans-serif;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--teal-dark);
}

p { margin: 0 0 14px; }

img { max-width: 100%; display: block; }

a { color: var(--teal); text-decoration: none; }

button, .btn {
  font-family: inherit;
  cursor: pointer;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 18px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  min-height: 48px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:active { transform: scale(0.97); }

.btn-primary { background: var(--coral); color: #fff; box-shadow: 0 6px 16px rgba(255,122,69,0.35); }
.btn-primary:hover { background: var(--coral-dark); }

.btn-outline { background: #fff; color: var(--teal); border: 2px solid var(--teal); }
.btn-outline:hover { background: var(--teal-bg); }

.btn-whatsapp { background: #25D366; color: #fff; }
.btn-call { background: var(--teal); color: #fff; }

.btn-block { width: 100%; }
.btn-lg { padding: 16px 26px; font-size: 18px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px; gap: 12px; max-width: 1140px; margin: 0 auto;
}
.logo { display: flex; align-items: center; gap: 10px; font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 20px; color: var(--teal-dark); }
.logo .logo-icon { font-size: 28px; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.lang-toggle {
  background: var(--teal-bg); border-radius: 999px; padding: 6px; display: flex; gap: 2px;
}
.lang-toggle button {
  background: transparent; padding: 8px 14px; border-radius: 999px; font-size: 14px; color: var(--teal-dark);
}
.lang-toggle button.active { background: var(--teal); color: #fff; }
.header-call {
  display: none;
}
@media (min-width: 740px) {
  .header-call { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--teal-bg) 0%, #ffffff 100%);
  padding: 36px 0 30px;
}
.hero-inner { text-align: center; }
.hero h1 { font-size: 28px; line-height: 1.3; }
.hero .sub { color: var(--muted); font-size: 17px; max-width: 560px; margin: 0 auto 20px; }
.hero-actions { display: flex; flex-direction: column; gap: 12px; max-width: 360px; margin: 0 auto; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; }
.hero-tag { background: #fff; border: 1px solid #d8e6e6; border-radius: 999px; padding: 6px 14px; font-size: 13px; color: var(--teal-dark); }

@media (min-width: 740px) {
  .hero h1 { font-size: 38px; }
  .hero-actions { flex-direction: row; justify-content: center; max-width: none; }
}

/* ---------- Steps ("3 easy steps") ---------- */
.steps-section { padding: 40px 0; background: #fff; }
.section-title { text-align: center; margin-bottom: 28px; }
.section-title h2 { font-size: 26px; }
.section-title p { color: var(--muted); }
.steps-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 740px) { .steps-grid { grid-template-columns: repeat(3, 1fr); } }
.step-card {
  background: var(--teal-bg); border-radius: var(--radius); padding: 24px; text-align: center; position: relative;
}
.step-number {
  width: 36px; height: 36px; border-radius: 50%; background: var(--coral); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; margin: 0 auto 10px;
}
.step-icon { font-size: 36px; margin-bottom: 10px; }

/* ---------- Services grid ---------- */
.services-section { padding: 40px 0; background: var(--teal-bg); }
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 740px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }
.service-card {
  background: #fff; border-radius: var(--radius); padding: 20px 14px; text-align: center;
  box-shadow: var(--shadow); cursor: pointer; border: 2px solid transparent;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.service-card:hover { border-color: var(--coral); transform: translateY(-3px); }
.service-card .icon { font-size: 34px; margin-bottom: 8px; }
.service-card h3 { font-size: 15px; margin-bottom: 4px; }
.service-card p { font-size: 13px; color: var(--muted); margin: 0; }

/* ---------- Partner banner ---------- */
.partner-banner {
  background: var(--teal-dark); color: #fff; border-radius: var(--radius);
  padding: 28px 22px; text-align: center; margin: 40px auto; max-width: 1140px;
}
.partner-banner h2 { color: #fff; }
.partner-banner p { color: #d9eeee; max-width: 520px; margin: 0 auto 18px; }

/* ---------- Testimonials ---------- */
.testimonials-section { padding: 40px 0; }
.testimonial-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 740px) { .testimonial-grid { grid-template-columns: repeat(3, 1fr); } }
.testimonial-card { background: #fff; border: 1px solid #e7efef; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.stars { color: var(--gold); margin-bottom: 8px; }
.testimonial-card .name { font-weight: 700; color: var(--teal-dark); margin-top: 10px; }

/* ---------- Contact / footer ---------- */
.contact-section { padding: 40px 0; background: var(--teal-bg); }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-info-card { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.contact-info-card .row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.contact-info-card .row .icon { font-size: 22px; }

.site-footer { background: var(--teal-dark); color: #cfe9e9; padding: 28px 0; text-align: center; font-size: 14px; }
.site-footer a { color: #fff; }

/* ---------- Forms (used inside modals) ---------- */
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; color: var(--ink); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 13px 14px; border: 1px solid #cfdcdc; border-radius: 10px; font-size: 16px; font-family: inherit;
  background: #fcfdfd;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: 2px solid var(--coral); border-color: var(--coral); }
.form-row { display: grid; grid-template-columns: 1fr; gap: 0; }
@media (min-width: 600px) { .form-row.two { grid-template-columns: 1fr 1fr; gap: 14px; } }
.hidden-field { display: none !important; }
.provider-tag {
  background: var(--teal-bg); color: var(--teal-dark); padding: 10px 12px;
  border-radius: 10px; margin-bottom: 14px; font-size: 14px;
}
.form-msg { padding: 12px 14px; border-radius: 10px; margin-bottom: 14px; font-size: 14px; display: none; }
.form-msg.show { display: block; }
.form-msg.success { background: #E7F7EE; color: #0B7A3E; }
.form-msg.error { background: #FDECEA; color: #B42318; }

/* ---------- Modals ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(15,45,45,0.55); display: none;
  align-items: flex-end; justify-content: center; z-index: 1000; padding: 0;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: #fff; width: 100%; max-width: 520px; border-radius: 20px 20px 0 0;
  max-height: 90vh; overflow-y: auto; padding: 22px; position: relative;
}
@media (min-width: 740px) {
  .modal-overlay { align-items: center; }
  .modal-box { border-radius: var(--radius); max-height: 85vh; }
}
.modal-close {
  position: absolute; top: 14px; right: 14px; background: #f1f5f5; border-radius: 50%;
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--ink);
}
.modal-box h2 { margin-bottom: 4px; font-size: 22px; }
.modal-box .modal-sub { color: var(--muted); margin-bottom: 18px; font-size: 14px; }

/* ---------- Sticky bottom action bar (mobile) ---------- */
.sticky-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  display: flex; gap: 0; box-shadow: 0 -4px 16px rgba(0,0,0,0.12);
}
.sticky-bar a {
  flex: 1; text-align: center; padding: 14px 8px; color: #fff; font-weight: 700; font-size: 15px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.sticky-bar .call { background: var(--teal); }
.sticky-bar .wa { background: #25D366; }
@media (min-width: 900px) { .sticky-bar { display: none; } }
body { padding-bottom: 64px; }
@media (min-width: 900px) { body { padding-bottom: 0; } }

/* ---------- Chat widget ---------- */
.chat-fab {
  position: fixed; bottom: 78px; right: 16px; z-index: 95;
  width: 58px; height: 58px; border-radius: 50%; background: var(--coral); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 26px; box-shadow: 0 6px 18px rgba(255,122,69,0.45);
  border: none; cursor: pointer;
}
@media (min-width: 900px) { .chat-fab { bottom: 24px; } }
.chat-panel {
  position: fixed; bottom: 145px; right: 16px; z-index: 96; width: 90%; max-width: 340px;
  background: #fff; border-radius: var(--radius); box-shadow: 0 10px 40px rgba(0,0,0,0.2); display: none; overflow: hidden;
}
@media (min-width: 900px) { .chat-panel { bottom: 92px; } }
.chat-panel.open { display: block; }
.chat-head { background: var(--teal); color: #fff; padding: 14px 16px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.chat-body { padding: 14px 16px; max-height: 320px; overflow-y: auto; font-size: 14px; }
.chat-msg { margin-bottom: 10px; }
.chat-msg.bot { background: var(--teal-bg); padding: 10px 12px; border-radius: 10px; display: inline-block; }
.chat-msg.user { text-align: right; }
.chat-msg.user span { background: var(--coral); color: #fff; padding: 10px 12px; border-radius: 10px; display: inline-block; }
.chat-quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 14px; }
.chat-quick button { background: var(--teal-bg); color: var(--teal-dark); border-radius: 999px; padding: 8px 12px; font-size: 13px; font-weight: 600; }
.chat-foot { padding: 12px; border-top: 1px solid #eee; display: flex; gap: 8px; }
.chat-foot input { flex: 1; border: 1px solid #ccc; border-radius: 999px; padding: 10px 14px; font-size: 14px; }
.chat-foot button { background: var(--coral); color: #fff; border-radius: 50%; width: 40px; height: 40px; }

/* ---------- Bilingual text toggle ----------
   Every translatable piece of text is written twice in the HTML,
   once wrapped in .t-hi and once in .t-en. Only one is shown at a time.
   Default language is Hindi. */
.t-en { display: none; }
.t-hi { display: inline; }
body.lang-en .t-en { display: inline; }
body.lang-en .t-hi { display: none; }

/* Utility */
.center { text-align: center; }
.mt-0 { margin-top: 0; }

/* ============================================================
   NEW FEATURES — added in latest update
   ============================================================ */

/* ---------- SOS Floating Action Button ---------- */
.sos-fab {
  position: fixed;
  left: 0;                        /* Left side par chipkaya */
  top: 50%;
  transform: translateY(-50%);    /* Vertically center */
  z-index: 200;
  background: #e53e3e;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 12px 10px 12px 8px;
  border-radius: 0 999px 999px 0; /* Left side se chipka hua tab shape */
  box-shadow: 3px 0 18px rgba(229,62,62,0.5);
  text-decoration: none;
  display: flex;
  flex-direction: column;         /* Vertical text/icon */
  align-items: center;
  gap: 4px;
  animation: sos-pulse 1.8s ease-in-out infinite;
  border: none;
  writing-mode: vertical-rl;     /* Text upar-neeche */
  text-orientation: mixed;
  min-width: 36px;
}
@keyframes sos-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(229,62,62,0.55), 3px 0 18px rgba(229,62,62,0.4); }
  50%  { box-shadow: 0 0 0 10px rgba(229,62,62,0), 3px 0 18px rgba(229,62,62,0.4); }
  100% { box-shadow: 0 0 0 0 rgba(229,62,62,0), 3px 0 18px rgba(229,62,62,0.4); }
}
/* Desktop par thoda bada aur normal orientation */
@media (min-width: 900px) {
  .sos-fab {
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    writing-mode: horizontal-tb;
    flex-direction: row;
    padding: 11px 18px;
    border-radius: 999px;
    font-size: 13px;
    box-shadow: 0 4px 18px rgba(229,62,62,0.5);
  }
}

/* Service card SOS badge */
.sos-badge {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 22px;
  animation: sos-pulse 1.8s ease-in-out infinite;
}

/* ---------- Payment mode radio selector ---------- */
.payment-mode-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.pay-mode-opt { display: block; }
.pay-mode-opt input[type="radio"] { display: none; }
.pay-mode-box {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 2px solid #d5e8e8;
  border-radius: 12px;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  background: var(--teal-bg);
  transition: border-color 0.18s, background 0.18s;
  min-width: 150px;
}
.pay-mode-opt input[type="radio"]:checked + .pay-mode-box {
  border-color: var(--teal);
  background: #dff2f2;
  color: var(--teal-dark);
}
.online-pay-note {
  margin-top: 8px;
  background: #fff8e1;
  border-left: 4px solid #f6c343;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: #7b5800;
}

/* ---------- Star rating input ---------- */
.star-rating-group {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 4px;
}
.star-opt { display: block; }
.star-opt input[type="radio"] { display: none; }
.star-opt span {
  font-size: 28px;
  cursor: pointer;
  color: #d5e8e8;
  transition: color 0.12s;
  line-height: 1;
}
.star-opt input[type="radio"]:checked ~ .star-opt span,
.star-opt input[type="radio"]:checked + span { color: #f6c343; }
/* simpler approach: highlight all checked and siblings before it */
.star-rating-group:hover .star-opt span { color: #f6c343; }
.star-opt:hover ~ .star-opt span { color: #d5e8e8; }
.star-opt input[type="radio"]:checked + span { color: #f6c343; }

/* ---------- Footer social icons ---------- */
.footer-social {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 14px;
}
.soc-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 18px;
  color: #fff;
  text-decoration: none;
  transition: transform 0.18s, opacity 0.18s;
}
.soc-icon:hover { transform: scale(1.12); opacity: 0.88; }
.soc-yt  { background: #FF0000; }
.soc-fb  { background: #1877F2; }
.soc-ig  { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.soc-wa  { background: #25D366; }

/* ---------- Footer links ---------- */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 20px;
  margin: 14px 0 10px;
  font-size: 13.5px;
}
.footer-links a {
  color: #88d8d8;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
}
.footer-links a:hover { color: #fff; text-decoration: underline; }

/* ---------- Footer legal row ---------- */
.footer-legal {
  margin-top: 12px;
  font-size: 12px;
  opacity: 0.7;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  align-items: center;
}
.footer-legal a { color: #b2e8e8; text-decoration: none; }
.footer-legal a:hover { text-decoration: underline; }
.footer-legal .sep { opacity: 0.5; }

/* ---------- Admin Reviews tab panel ---------- */
.pc-status-approved { background: #E7F7EE; color: #0B7A3E; }
.pc-status-rejected { background: #FDECEA; color: #B42318; }
.pc-status-pending  { background: #FFF3E0; color: #B7791F; }

/* ---------- Gold star color utility ---------- */
:root { --gold: #f6c343; }
.stars { color: var(--gold); font-size: 16px; letter-spacing: 1px; margin-bottom: 6px; }
