/* ============================================================
   whatsapp-booking.css
   Upload karein: public/frontend/css/whatsapp-booking.css
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #0CBD93;
  --primary-dark: #0aa77f;
  --primary-light: #E6FBF5;
  --heading: #0f172a;
  --body: #475569;
  --border: #e2e8f0;
  --surface: #f8fafc;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.10), 0 4px 16px rgba(0,0,0,0.06);
  --radius: 12px;
  --radius-lg: 20px;
  --font-head: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  --max-w: 1160px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--body);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ── LAYOUT ── */
.wb-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.wb-section { padding: 60px 0; }
.wb-section:nth-child(even) { background: var(--surface); }

.section-label {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 18px;
}

.wb-section h1,
.wb-section h2,
.wb-section h3 {
  font-family: var(--font-head);
  color: var(--heading);
  line-height: 1.2;
}
.wb-section h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; }
.wb-section h3 { font-size: 1.1rem; font-weight: 700; }

.wb-lead {
  font-size: 1.125rem;
  color: #64748b;
  max-width: 620px;
  margin-top: 14px;
}

/* ── BUTTONS ── */
.wb-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 13px 26px;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.wb-btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(12,189,147,0.30);
}
.wb-btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(12,189,147,0.38);
}
.wb-btn-outline {
  background: transparent;
  color: var(--heading);
  border: 1.5px solid var(--border);
}
.wb-btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.wb-btn-white { background: var(--white); color: var(--heading); }
.wb-btn-white:hover { background: #f1f5f9; }
.wb-btn-ghost {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
  border: 1.5px solid rgba(255,255,255,0.2);
}
.wb-btn-ghost:hover { background: rgba(255,255,255,0.14); }

/* ── HERO ── */
#wb-hero {
  padding: 32px 0 48px;
  background: var(--white);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  min-height: 520px;
}
.hero-grid > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-light);
  border: 1px solid rgba(12,189,147,0.2);
  border-radius: 100px;
  padding: 6px 14px 6px 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 14px;
}
.hero-badge-dot {
  width: 8px; height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: wb-pulse 2s infinite;
}
@keyframes wb-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero-h1 {
  margin-bottom: 12px;
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--heading);
  line-height: 1.15;
  letter-spacing: -0.5px;
}
.hero-h1 em {
  font-style: normal;
  color: var(--primary);
  display: block;
  margin-top: 6px;
}
.hero-sub {
  font-size: 1.1rem;
  color: #64748b;
  max-width: 500px;
  margin-bottom: 24px;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: #94a3b8;
  font-weight: 500;
}
.hero-trust-dots { display: flex; gap: 4px; }
.hero-trust-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid var(--white);
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--primary-dark);
}

/* ── WHATSAPP CHAT UI ── */
.chat-phone {
  position: relative;
  max-width: 270px;
  margin: 0 auto;
}
.phone-shell {
  background: #fff;
  border-radius: 28px;
  border: 2px solid #e2e8f0;
  box-shadow: var(--shadow-lg), 0 0 0 8px rgba(12,189,147,0.06);
  overflow: hidden;
}
.phone-header {
  background: #075E54;
  padding: 14px 16px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.phone-back { color: rgba(255,255,255,0.7); font-size: 1.1rem; cursor: pointer; }
.phone-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--primary-dark);
  flex-shrink: 0;
}
.phone-info { flex: 1; }
/*.phone-name { font-size: 0.9rem; font-weight: 700; color: #fff; line-height: 1; }*/
.phone-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  padding-top: 0.4rem;
  white-space: nowrap;        
  overflow: hidden;
}

.phone-status { font-size: 0.7rem; color: rgba(255,255,255,0.65); margin-top: 2px; }
.phone-icons { display: flex; gap: 14px; }
/*.phone-icon { color: rgba(255,255,255,0.75); font-size: 1rem; cursor: pointer; }*/

.phone-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff; /* WhatsApp icon color */
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.phone-icon:hover {
  background: rgba(255,255,255,0.08);
}

.chat-body {
  background: #ECE5DD;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d3ccc4' fill-opacity='0.35'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  padding: 10px;
  height: 300px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.chat-body::-webkit-scrollbar { width: 4px; }
.chat-body::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 10px; }

.chat-date {
  text-align: center;
  font-size: 0.68rem;
  color: #6b7280;
  background: rgba(255,255,255,0.6);
  border-radius: 100px;
  padding: 3px 12px;
  margin: 4px auto;
  width: fit-content;
}
.bubble {
  max-width: 82%;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.74rem;
  line-height: 1.45;
  position: relative;
}
.bubble-in {
  background: #fff;
  border-top-left-radius: 2px;
  align-self: flex-start;
  color: #1a1a1a;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}
.bubble-out {
  background: #DCF8C6;
  border-top-right-radius: 2px;
  align-self: flex-end;
  color: #1a1a1a;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}
.bubble-time {
  font-size: 0.62rem;
  color: #9ca3af;
  float: right;
  margin-left: 8px;
  margin-top: 2px;
}
.bubble-name {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 3px;
}
.chat-options { display: flex; flex-direction: column; gap: 5px; margin-top: 4px; }
.chat-option-btn {
  background: var(--primary-light);
  border: 1px solid rgba(12,189,147,0.3);
  border-radius: 6px;
  padding: 7px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary-dark);
  cursor: pointer;
  text-align: center;
  transition: background 0.15s;
}
.chat-option-btn:hover { background: rgba(12,189,147,0.18); }
.confirm-bubble {
  background: #fff;
  border-radius: 8px;
  border-left: 3px solid var(--primary);
  padding: 8px 12px;
  font-size: 0.75rem;
  align-self: flex-start;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
  max-width: 85%;
}
.confirm-title {
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 0.78rem;
  margin-bottom: 4px;
}
.confirm-row { display: flex; gap: 6px; color: #374151; margin-top: 2px; }
.confirm-label { font-weight: 600; color: #6b7280; min-width: 52px; }
.phone-input-bar {
  background: #f0f0f0;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.phone-input {
  flex: 1;
  background: #fff;
  border-radius: 20px;
  padding: 7px 14px;
  font-size: 0.78rem;
  color: #9ca3af;
  border: none;
}
.phone-send {
  width: 34px; height: 34px;
  background: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.phone-send svg { fill: #fff; }

/* ── WHAT IS SECTION ── */
.what-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.what-grid p { max-width: 520px; line-height: 1.7; }
#wb-what .reveal:first-child { padding-top: 40px; max-width: 540px; }

.stat-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 8px;
}
.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stat-num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.stat-label { font-size: 0.82rem; color: var(--body); margin-top: 6px; font-weight: 500; }

/* ── HOW IT WORKS ── */
.how-head { text-align: center; max-width: 520px; margin: 0 auto 40px; }
.how-head h2 { font-size: clamp(2rem, 3vw, 2.4rem); line-height: 1.2; letter-spacing: -0.3px; }
.how-head p { margin-top: 12px; line-height: 1.6; color: #475569; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 36px;
  position: relative;
}
.steps-connector {
  position: absolute;
  top: 30px;
  left: calc(12.5% + 16px);
  right: calc(12.5% + 16px);
  height: 2px;
  background: linear-gradient(to right, var(--primary), var(--primary-light));
  z-index: 0;
}
.step-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 1;
  transition: all 0.25s;
}
.step-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: rgba(12,189,147,0.3); }
.step-num {
  width: 44px; height: 44px;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.9rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 4px 10px rgba(12,189,147,0.3);
}
.step-card h3 { margin-bottom: 8px; font-size: 1.05rem; }
.step-benefit {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--primary-dark);
  font-weight: 600;
  background: var(--primary-light);
  border-radius: 6px;
  padding: 6px 10px;
}

/* ── FEATURE CARDS ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 36px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s;
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: rgba(12,189,147,0.25); }
.feature-icon {
  width: 48px; height: 48px;
  background: var(--primary-light);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.feature-card h3 { margin-bottom: 10px; }
.feature-card p { font-size: 0.9rem; line-height: 1.6; }
.feature-tag {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-dark);
  background: var(--primary-light);
  border-radius: 6px;
  padding: 4px 10px;
}

/* ── DOCTOR SECTION ── */
.doctor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.doctor-items { display: flex; flex-direction: column; gap: 20px; margin-top: 8px; }
.doctor-item {
  display: flex;
  gap: 16px;
  padding: 18px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}
.doctor-item:hover { border-color: rgba(12,189,147,0.3); box-shadow: var(--shadow-md); }
.doctor-item-icon {
  width: 40px; height: 40px;
  background: var(--primary-light);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.doctor-item h3 { font-size: 0.95rem; margin-bottom: 4px; }
.doctor-item p { font-size: 0.85rem; line-height: 1.6; }

/* ── FREE MODEL ── */
.free-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.free-steps { display: flex; flex-direction: column; gap: 20px; margin-top: 28px; }
.free-step { display: flex; gap: 14px; align-items: flex-start; }
.free-step-num {
  width: 30px; height: 30px;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.75rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.free-step h3 { font-size: 0.95rem; margin-bottom: 3px; }
.free-step p { font-size: 0.85rem; }

.qr-mock { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.qr-box {
  width: 160px; height: 160px;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
}
.qr-inner { width: 140px; height: 140px; }
.qr-label { text-align: center; font-size: 0.82rem; color: var(--body); font-weight: 500; }
.qr-label strong { display: block; font-family: var(--font-head); font-size: 0.9rem; color: var(--heading); margin-bottom: 4px; }

/* ── WHITE LABEL ── */
.white-label-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.wl-cards { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.wl-card {
  display: flex;
  gap: 14px;
  padding: 18px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}
.wl-card:hover { border-color: rgba(12,189,147,0.3); }
.wl-card-icon {
  width: 38px; height: 38px;
  background: var(--primary-light);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.wl-card h3 { font-size: 0.9rem; margin-bottom: 4px; }
.wl-card p { font-size: 0.82rem; }
.wl-highlight-box {
  background: linear-gradient(135deg, var(--primary-light) 0%, #f0fdf9 100%);
  border: 1.5px solid rgba(12,189,147,0.25);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
}
.wl-highlight-box h3 { font-size: 1.3rem; margin-bottom: 12px; }
.wl-highlight-box p { font-size: 0.9rem; margin-bottom: 24px; }
.wl-voice-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 2px;
  transition: opacity 0.2s;
}
.wl-voice-link:hover { opacity: 0.75; }

/* ── TABLE ── */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  margin-top: 36px;
}
.wb-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.wb-table thead { background: var(--heading); }
.wb-table thead th {
  padding: 16px 24px;
  text-align: left;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.wb-table thead th:first-child { color: #fff; }
.wb-table thead th.col-highlight { color: var(--primary); }
.wb-table tbody tr:nth-child(even) { background: var(--surface); }
.wb-table tbody tr { border-bottom: 1px solid var(--border); transition: background 0.15s; }
.wb-table tbody tr:hover { background: var(--primary-light); }
.wb-table tbody td { padding: 12px 20px; color: var(--body); vertical-align: middle; }
.wb-table tbody td:first-child { font-weight: 600; color: var(--heading); font-size: 0.9rem; }
.td-highlight { font-weight: 700; color: var(--primary-dark); }
.td-good { color: #16a34a; font-weight: 600; }
.td-bad { color: #dc2626; font-weight: 500; }
.td-mid { color: #d97706; font-weight: 500; }

/* ── FAQ ── */
.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 36px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}
.wb-faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s;
}
.wb-faq-item:hover { box-shadow: var(--shadow-md); }
.faq-q {
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--heading);
  gap: 14px;
  list-style: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-chevron {
  width: 18px; height: 18px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s;
}
details[open] .faq-chevron { transform: rotate(180deg); background: var(--primary); }
details[open] .faq-chevron svg { stroke: #fff; }
.faq-a {
  padding: 16px 22px 20px;
  font-size: 0.88rem;
  color: var(--body);
  line-height: 1.65;
  border-top: 1px solid var(--border);
}

/* ── CTA SECTION ── */
#wb-cta { background: var(--heading); padding: 56px 0; }
.cta-inner { text-align: center; max-width: 620px; margin: 0 auto; }
#wb-cta h2 { color: var(--white); font-family: var(--font-head); font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; }
#wb-cta .wb-lead { color: rgba(255,255,255,0.6); margin: 0 auto; }
.cta-btns { display: flex; gap: 14px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.cta-note { margin-top: 24px; font-size: 0.8rem; color: rgba(255,255,255,0.35); }

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-grid, .what-grid, .doctor-grid, .white-label-grid, .free-card { grid-template-columns: 1fr; gap: 40px; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-connector { display: none; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
  .chat-phone { max-width: 270px; }
}
@media (max-width: 600px) {
  .wb-section { padding: 44px 0; }
  .steps-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .free-card { padding: 32px 24px; }
}