/* ============================================================
   Oriental Melaka Straits Medical Centre — Patient Concierge Kiosk
   Theme: light, modern & professional — clean white surfaces,
          cool slate text, OMSMC medical-red accents
   Type:  Sora (display) + Poppins (body)
   Canvas: fixed 1080 x 1920 portrait, scaled to fit screen
   ============================================================ */

/* ---------- fonts (vendored, offline) ---------- */
@font-face { font-family: "Poppins"; src: url("../assets/fonts/poppins-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: block; }
@font-face { font-family: "Poppins"; src: url("../assets/fonts/poppins-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: block; }
@font-face { font-family: "Poppins"; src: url("../assets/fonts/poppins-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: block; }
@font-face { font-family: "Poppins"; src: url("../assets/fonts/poppins-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: block; }
@font-face { font-family: "Sora"; src: url("../assets/fonts/sora-700.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: block; }

/* ---------- tokens ---------- */
:root {
  --ink:       #16202e;   /* headings */
  --ink-soft:  #46566b;   /* body copy */
  --gray:      #8a93a3;   /* muted */
  --line:      #e4e9f0;   /* hairline borders */
  --line-soft: #eef2f7;
  --paper:     #ffffff;
  --panel:     #f6f8fc;   /* subtle card / chip fill */

  --bg-top:    #f4f7fb;
  --bg-mid:    #eaf0f8;
  --bg-bottom: #e4ebf4;

  --slate-900: #1a2535;   /* deep panels / CTA */
  --slate-800: #243246;

  --red:        #e1242a;
  --red-bright: #f5454b;
  --red-deep:   #b3161e;
  --red-tint:   rgba(225, 36, 42, 0.08);
  --red-tint2:  rgba(225, 36, 42, 0.14);

  --font-body: "Poppins", "Segoe UI", sans-serif;
  --font-display: "Sora", "Poppins", sans-serif;

  --shadow-sm: 0 4px 14px rgba(22, 32, 46, 0.06);
  --shadow-md: 0 12px 34px rgba(22, 32, 46, 0.10);
  --shadow-lg: 0 26px 70px rgba(22, 32, 46, 0.16);

  --sheet-radius: 44px;
}

/* ---------- base / kiosk shell ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { width: 100%; height: 100%; overflow: hidden; background: var(--bg-mid); }

body {
  font-family: var(--font-body);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -webkit-user-select: none; user-select: none;
  -webkit-tap-highlight-color: transparent;
}

button { font-family: inherit; border: none; background: none; color: inherit; cursor: pointer; touch-action: manipulation; }
img { -webkit-user-drag: none; -webkit-user-select: none; user-select: none; }

#kiosk {
  position: absolute;
  top: 0; left: 0;
  width: 1080px; height: 1920px;
  transform-origin: top left;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(1100px 760px at 50% 1120px, rgba(225, 36, 42, 0.07), transparent 60%),
    radial-gradient(1200px 760px at 50% -160px, #ffffff 0%, transparent 64%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 52%, var(--bg-bottom) 100%);
}

#kiosk::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(22, 40, 70, 0.030) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 40, 70, 0.030) 1px, transparent 1px);
  background-size: 76px 76px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 58%, transparent 76%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 58%, transparent 76%);
  pointer-events: none;
}

/* ======================= TOP BAR ======================= */
.topbar {
  flex: 0 0 104px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 56px; position: relative; z-index: 22;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-brand { display: flex; align-items: center; gap: 22px; }
.topbar-mark { height: 58px; width: auto; display: block; filter: drop-shadow(0 4px 10px rgba(225,32,42,0.22)); }
.topbar-divider { width: 1px; height: 50px; background: linear-gradient(180deg, transparent, var(--line), transparent); }
.topbar-hospital {
  font-size: 19px; line-height: 1.25; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink);
}
.topbar-tagline { font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: 0.01em; color: var(--red); }
.topbar-right { display: flex; align-items: center; gap: 24px; }

/* ---------- language selector ---------- */
.lang-select { position: relative; }
.lang-trigger {
  display: flex; align-items: center; justify-content: center;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--panel); border: 1px solid var(--line);
  color: var(--ink); transition: background 0.2s ease, border-color 0.2s ease;
}
.lang-trigger:active { transform: scale(0.95); }
.lang-select.is-open .lang-trigger { background: var(--red-tint); border-color: rgba(225,36,42,0.5); }
.lang-globe { width: 27px; height: 27px; color: var(--red); }

.lang-menu {
  position: absolute; top: calc(100% + 12px); right: 0; min-width: 262px;
  background: var(--paper);
  border: 1px solid var(--line); border-radius: 18px; padding: 8px;
  box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(-10px) scale(0.98); transform-origin: top right;
  pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease; z-index: 30;
}
.lang-select.is-open .lang-menu { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.lang-option {
  display: flex; align-items: center; gap: 13px; width: 100%; text-align: left;
  padding: 15px 18px; border-radius: 12px; font-size: 20px; font-weight: 500;
  color: var(--ink-soft); transition: background 0.18s ease, color 0.18s ease;
}
.lang-option::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: var(--line); flex: 0 0 auto; transition: background 0.18s ease, box-shadow 0.18s ease;
}
.lang-option:active { background: var(--panel); }
.lang-option.is-active { background: var(--red-tint); color: var(--red-deep); font-weight: 600; }
.lang-option.is-active::before { background: var(--red); box-shadow: 0 0 8px 1px rgba(225,36,42,0.45); }

/* ======================= HERO ======================= */
.hero { flex: 0 0 162px; text-align: center; position: relative; z-index: 5; padding-top: 18px; }
.hero-eyebrow {
  display: inline-block; font-size: 16px; font-weight: 600; letter-spacing: 0.42em;
  text-transform: uppercase; color: var(--red); padding-bottom: 2px;
}
.hero-eyebrow::before, .hero-eyebrow::after {
  content: ""; display: inline-block; width: 54px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--red)); vertical-align: middle; margin: 0 20px 4px;
}
.hero-eyebrow::after { background: linear-gradient(90deg, var(--red), transparent); }
.hero-title { font-family: var(--font-display); font-size: 66px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.05; margin-top: 6px; color: var(--ink); }
.hero-title em {
  font-style: normal;
  background: linear-gradient(100deg, var(--red-deep) 6%, var(--red) 48%, var(--red-bright) 92%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-tagline { margin-top: 12px; font-size: 22px; font-weight: 400; letter-spacing: 0.01em; color: var(--ink-soft); }

/* ======================= 3D STAGE ======================= */
.stage { flex: 1 1 auto; position: relative; z-index: 4; min-height: 0; }
.stage::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(620px 760px at 50% 44%, rgba(255,255,255,0.9) 0%, rgba(226,235,247,0.55) 42%, transparent 72%);
}
.stage-canvas, .stage-canvas canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage-canvas { touch-action: none; }
.stage-hotspots { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

/* --- hotspot --- */
.hotspot {
  position: absolute; top: 0; left: 0; pointer-events: auto;
  display: flex; align-items: center; gap: 14px;
  transition: opacity 0.35s ease; will-change: transform, opacity;
}
.hotspot.is-hidden { opacity: 0; pointer-events: none; }

.hotspot-dot { position: relative; width: 58px; height: 58px; flex: 0 0 58px; border-radius: 50%; display: grid; place-items: center; }
.hotspot-dot::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(225, 36, 42, 0.7); animation: hotspot-pulse 2.4s ease-out infinite;
}
.hotspot-dot::after {
  content: ""; width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffd2d4, var(--red-bright) 52%, var(--red-deep));
  box-shadow: 0 0 18px 5px rgba(225, 36, 42, 0.45);
}
@keyframes hotspot-pulse {
  0%   { transform: scale(0.55); opacity: 0.9; }
  70%  { transform: scale(1.18); opacity: 0; }
  100% { transform: scale(1.18); opacity: 0; }
}
.hotspot-label {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border-radius: 999px; padding: 12px 26px;
  font-size: 21px; font-weight: 600; letter-spacing: 0.01em; white-space: nowrap;
  color: var(--ink); box-shadow: var(--shadow-md);
}
.hotspot[data-flip="1"] { flex-direction: row-reverse; }
.hotspot:active .hotspot-dot::after { transform: scale(1.25); }
.hotspot.is-active .hotspot-label {
  background: linear-gradient(120deg, var(--red), var(--red-bright));
  border-color: transparent; color: #fff;
  box-shadow: 0 10px 26px rgba(225,36,42,0.34);
}

/* --- view toggle --- */
.stage-view-toggle {
  position: absolute; top: 18px; right: 56px; display: flex;
  background: rgba(255,255,255,0.82); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px; gap: 6px; z-index: 3; box-shadow: var(--shadow-sm);
}
.view-btn {
  position: relative; padding: 13px 36px; border-radius: 999px;
  font-size: 20px; font-weight: 500; letter-spacing: 0.04em; color: var(--ink-soft);
  transition: all 0.25s ease;
}
.view-btn.is-active {
  background: linear-gradient(120deg, var(--red), var(--red-bright)); color: #fff; font-weight: 600;
  box-shadow: 0 6px 16px rgba(225,36,42,0.34);
}
.view-btn-dot {
  position: absolute; top: 8px; right: 10px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--red); box-shadow: 0 0 8px 2px rgba(225,36,42,0.5); animation: soft-blink 2s ease-in-out infinite;
}
.view-btn.is-active .view-btn-dot { background: #fff; box-shadow: none; animation: none; }
@keyframes soft-blink { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }

/* --- figure (male / female) toggle --- */
.stage-figure-toggle {
  position: absolute; top: 18px; left: 56px; display: flex;
  background: rgba(255,255,255,0.82); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px; gap: 6px; z-index: 3; box-shadow: var(--shadow-sm);
}
.figure-btn {
  display: flex; align-items: center; gap: 9px;
  padding: 11px 22px 11px 18px; border-radius: 999px;
  font-size: 19px; font-weight: 500; letter-spacing: 0.02em; color: var(--ink-soft);
  transition: all 0.25s ease;
}
.figure-btn svg { width: 22px; height: 22px; flex: 0 0 auto; }
.figure-btn.is-active {
  background: linear-gradient(120deg, var(--red), var(--red-bright)); color: #fff; font-weight: 600;
  box-shadow: 0 6px 16px rgba(225,36,42,0.34);
}

/* --- spin hint --- */
.stage-spin-hint {
  position: absolute; left: 56px; bottom: 20px; display: flex; align-items: center; gap: 12px;
  color: var(--gray); font-size: 18px; letter-spacing: 0.22em; z-index: 3;
}
.stage-spin-hint svg { width: 60px; height: 30px; }

.model-credit {
  position: absolute; right: 22px; bottom: 12px; z-index: 3;
  margin: 0; font-size: 12px; letter-spacing: 0.04em;
  color: var(--gray); opacity: 0.55; pointer-events: none;
}

/* ======================= REGION CHIPS ======================= */
.regions-strip {
  flex: 0 0 auto; position: relative; z-index: 5;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 6px 48px 30px;
}
.regions-label {
  font-size: 14px; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gray);
}
.region-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; max-width: 1000px; }
.region-chip {
  display: flex; align-items: center; gap: 11px; padding: 15px 30px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper);
  font-size: 20px; font-weight: 500; color: var(--ink); box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}
.region-chip .chip-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); box-shadow: 0 0 8px rgba(225,36,42,0.5); }
.region-chip:active, .region-chip.is-active {
  background: linear-gradient(120deg, var(--red), var(--red-bright)); border-color: transparent; color: #fff; font-weight: 600;
  box-shadow: 0 8px 22px rgba(225,36,42,0.3);
}
.region-chip:active .chip-dot, .region-chip.is-active .chip-dot { background: #fff; box-shadow: none; }
.region-chip.is-hidden { display: none; }

.actions-row { display: flex; align-items: center; gap: 18px; margin-top: 4px; }
.all-doctors-btn {
  display: flex; align-items: center; gap: 18px; padding: 20px 46px; border-radius: 999px;
  background: linear-gradient(115deg, var(--red-deep) 0%, var(--red) 45%, var(--red-bright) 82%, var(--red) 100%);
  background-size: 200% 100%;
  color: #fff; font-family: var(--font-display); font-size: 24px; font-weight: 600; letter-spacing: 0.01em;
  box-shadow: 0 14px 34px rgba(225,36,42,0.34), inset 0 1px 0 rgba(255,255,255,0.3);
  animation: btn-sheen 5s ease-in-out infinite;
}
@keyframes btn-sheen { 0%,100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }
.all-doctors-btn:active { transform: scale(0.97); }
.all-doctors-icon svg { width: 30px; height: 30px; display: block; }
.all-doctors-arrow { font-size: 27px; line-height: 1; }

.faq-trigger {
  display: flex; align-items: center; gap: 11px; padding: 16px 28px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper);
  color: var(--ink-soft); font-size: 19px; font-weight: 500; letter-spacing: 0.01em; box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}
.faq-trigger-icon { width: 22px; height: 22px; color: var(--red); }
.faq-trigger:active { transform: scale(0.97); background: var(--panel); }

/* ======================= FOOTER ======================= */
.footer {
  flex: 0 0 184px; background: var(--slate-900);
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  padding: 24px 56px; position: relative; z-index: 5;
}
.footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--red-deep), var(--red), var(--red-bright)); }
.footer-left { display: flex; flex-direction: column; gap: 11px; min-width: 0; flex: 1 1 auto; }
.footer-brand { display: flex; align-items: center; gap: 13px; }
.footer-mark { height: 32px; width: auto; flex: 0 0 auto; filter: brightness(0) invert(1); opacity: 0.96; }
.footer-name { font-family: var(--font-display); font-size: 19px; font-weight: 600; line-height: 1.2; color: rgba(255,255,255,0.94); }
.footer-address { font-size: 15px; line-height: 1.3; color: rgba(255,255,255,0.55); letter-spacing: 0.01em; }
.footer-contacts { display: flex; flex-wrap: wrap; gap: 7px 24px; font-size: 15px; line-height: 1.25; color: rgba(255,255,255,0.85); }
.footer-contacts span { white-space: nowrap; }
.footer-contacts b { color: var(--red-bright); font-weight: 600; }
.footer-right { display: flex; flex-direction: row-reverse; align-items: center; gap: 16px; flex: 0 0 auto; }
#footer-qr { background: #fff; border-radius: 14px; padding: 9px; width: 108px; height: 108px; flex: 0 0 auto; box-sizing: content-box; }
.footer-qr-label {
  font-size: 14px; font-weight: 500; letter-spacing: 0.08em; line-height: 1.35;
  text-transform: uppercase; color: rgba(255,255,255,0.62);
  max-width: 132px; text-align: right;
}

/* ======================= SHEET ======================= */
.sheet-backdrop {
  position: absolute; inset: 0; background: rgba(22, 32, 46, 0.42);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none; transition: opacity 0.4s ease; z-index: 18;
}
.sheet-backdrop.is-open { opacity: 1; pointer-events: auto; }

.sheet {
  position: absolute; left: 0; right: 0; top: 13%; bottom: 0;
  background: var(--bg-top); border-radius: var(--sheet-radius) var(--sheet-radius) 0 0;
  transform: translateY(104%); transition: transform 0.55s cubic-bezier(0.32,0.72,0.05,1);
  z-index: 20; color: var(--ink); overflow: hidden; box-shadow: var(--shadow-lg);
}
.sheet.is-open { transform: translateY(0); }
.sheet::before {
  content: ""; position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  width: 84px; height: 6px; border-radius: 99px; background: var(--line);
}
.sheet-close {
  position: absolute; top: 34px; right: 44px; width: 76px; height: 76px; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--line); display: grid; place-items: center;
  z-index: 5; box-shadow: var(--shadow-sm);
}
.sheet-close svg { width: 30px; height: 30px; color: var(--ink); }
.sheet-close:active { transform: scale(0.92); }

.sheet-view { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 60px 56px 0; opacity: 1; transition: opacity 0.3s ease, transform 0.3s ease; }
.sheet-view.is-hidden { opacity: 0; pointer-events: none; transform: translateX(40px); }

.sheet-head { flex: 0 0 auto; padding-right: 120px; }
.sheet-eyebrow { font-size: 15px; font-weight: 600; letter-spacing: 0.34em; text-transform: uppercase; color: var(--red); margin-bottom: 8px; }
.sheet-title { font-family: var(--font-display); font-size: 44px; font-weight: 700; line-height: 1.1; color: var(--ink); }
.sheet-blurb { margin-top: 12px; font-size: 20px; line-height: 1.5; color: var(--ink-soft); max-width: 850px; }

.sheet-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.filter-chip {
  padding: 11px 22px; border-radius: 999px; font-size: 17px; font-weight: 500;
  background: var(--panel); border: 1px solid var(--line); color: var(--ink-soft); transition: all 0.18s ease;
}
.filter-chip:active { transform: scale(0.97); }
.filter-chip.is-active {
  background: linear-gradient(120deg, var(--red), var(--red-bright)); border-color: transparent; color: #fff; font-weight: 600;
  box-shadow: 0 6px 16px rgba(225,36,42,0.3);
}

.sheet-body {
  flex: 1 1 auto; overflow-y: auto; min-height: 0; margin-top: 26px;
  padding-right: 14px; padding-bottom: 24px; overscroll-behavior: contain; touch-action: pan-y;
}
.sheet-body::-webkit-scrollbar { width: 9px; }
.sheet-body::-webkit-scrollbar-track { background: var(--line-soft); border-radius: 9px; }
.sheet-body::-webkit-scrollbar-thumb { background: var(--red); border-radius: 9px; }

.doctor-group-title {
  font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--red-deep);
  margin: 26px 2px 16px; display: flex; align-items: center; gap: 14px;
}
.doctor-group-title:first-child { margin-top: 2px; }
.doctor-group-title .group-count {
  font-family: var(--font-body); font-size: 14px; font-weight: 600; color: var(--red);
  background: var(--red-tint); border-radius: 999px; padding: 3px 11px;
}
.doctor-group-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(225,36,42,0.32), transparent); }

.doctor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---- doctor card ---- */
.doctor-card {
  display: flex; align-items: center; gap: 22px; text-align: left;
  background: var(--paper); border: 1px solid var(--line); border-radius: 24px;
  padding: 20px 24px; transition: transform 0.15s ease, box-shadow 0.2s ease; position: relative; overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.doctor-card::after {
  content: ""; position: absolute; left: 0; top: 16%; bottom: 16%; width: 4px; border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, var(--red-bright), var(--red)); opacity: 0; transition: opacity 0.2s ease;
}
.doctor-card:active { transform: scale(0.98); box-shadow: 0 12px 30px rgba(225,36,42,0.16); }
.doctor-card:active::after { opacity: 1; }

.doctor-avatar {
  flex: 0 0 96px; width: 96px; height: 96px; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 30% 22%, #ffffff, #e9eef6);
  border: 2px solid var(--red-tint2); display: grid; place-items: center; position: relative;
}
.avatar-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.avatar-initials { font-family: var(--font-display); font-size: 30px; font-weight: 700; color: var(--red); }
.has-photo .avatar-initials { display: none; }

.doctor-card-info { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.doctor-card-name { font-size: 22px; font-weight: 600; color: var(--ink); line-height: 1.22; }
.doctor-card-sub {
  align-self: flex-start; font-size: 15px; font-weight: 600; letter-spacing: 0.01em; color: var(--red-deep);
  background: var(--red-tint); padding: 4px 13px; border-radius: 999px;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.doctor-card-meta { font-size: 15px; color: var(--gray); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doctor-card-cta { flex: 0 0 auto; align-self: center; font-size: 26px; color: var(--red); }

.sheet-more {
  display: block; width: 100%; margin-top: 22px; padding: 24px; border-radius: 22px;
  border: 1.5px dashed rgba(225,36,42,0.4); background: var(--red-tint);
  font-size: 20px; color: var(--ink-soft); text-align: center;
}
.sheet-more b { color: var(--red-deep); font-weight: 600; }
.sheet-more:active { background: var(--red-tint2); }

.sheet-note { flex: 0 0 auto; padding: 18px 0 26px; font-size: 16px; color: var(--gray); text-align: center; border-top: 1px solid var(--line); }

/* ---- profile ---- */
.sheet-profile-view { padding-top: 48px; }
.profile-back {
  flex: 0 0 auto; align-self: flex-start; display: flex; align-items: center; gap: 12px;
  font-size: 20px; font-weight: 600; color: var(--red-deep);
  background: var(--red-tint); border: 1px solid rgba(225,36,42,0.26);
  padding: 14px 30px 14px 22px; border-radius: 999px; margin-bottom: 28px;
}
.profile-back svg { width: 24px; height: 24px; }
.profile-back:active { transform: scale(0.96); }

.profile-content { flex: 1 1 auto; overflow-y: auto; min-height: 0; padding-right: 14px; padding-bottom: 36px; overscroll-behavior: contain; touch-action: pan-y; }
.profile-content::-webkit-scrollbar { width: 9px; }
.profile-content::-webkit-scrollbar-track { background: var(--line-soft); border-radius: 9px; }
.profile-content::-webkit-scrollbar-thumb { background: var(--red); border-radius: 9px; }

.profile-top { display: flex; gap: 36px; align-items: flex-start; }
.profile-photo {
  flex: 0 0 240px; width: 240px; height: 280px; border-radius: 28px; overflow: hidden;
  background: linear-gradient(170deg, #ffffff, #e9eef6); border: 1px solid var(--line);
  box-shadow: var(--shadow-md); display: grid; place-items: center; position: relative;
}
.profile-photo .avatar-img { object-position: top center; }
.profile-photo .avatar-initials { font-size: 84px; }
.profile-main { flex: 1; min-width: 0; }
.profile-spec-chip {
  display: inline-block; font-size: 15px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--red-deep); background: var(--red-tint); border: 1px solid rgba(225,36,42,0.26);
  padding: 8px 20px; border-radius: 999px; margin-bottom: 16px;
}
.profile-name { font-family: var(--font-display); font-size: 42px; font-weight: 700; line-height: 1.12; color: var(--ink); }
.profile-specialty { margin-top: 10px; font-size: 22px; color: var(--ink-soft); font-weight: 500; }
.profile-quals {
  margin-top: 22px; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--red);
  border-radius: 16px; padding: 22px 26px; font-size: 19px; line-height: 1.6; color: var(--ink-soft);
}
.profile-quals-label { font-size: 14px; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; color: var(--red); margin-bottom: 8px; }

.profile-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 26px; }
.meta-card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 18px 22px; display: flex; gap: 16px; align-items: flex-start; box-shadow: var(--shadow-sm); }
.meta-card-wide { grid-column: 1 / -1; }
.meta-icon { flex: 0 0 46px; width: 46px; height: 46px; border-radius: 14px; background: var(--red-tint); display: grid; place-items: center; color: var(--red-deep); }
.meta-icon svg { width: 24px; height: 24px; }
.meta-label { font-size: 14px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gray); }
.meta-value { margin-top: 4px; font-size: 19px; font-weight: 500; color: var(--ink); line-height: 1.4; }

.profile-book {
  margin-top: 26px; background: linear-gradient(115deg, var(--slate-900), var(--slate-800));
  border-radius: 22px; padding: 26px 30px; display: flex; align-items: center; gap: 28px; color: #fff;
}
.profile-book-qr {
  flex: 0 0 auto; width: 150px; height: 150px; border-radius: 16px;
  background: #fff; padding: 10px; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,0.28);
}
.profile-book-qr canvas { width: 130px; height: 130px; display: block; }
.profile-book-main { min-width: 0; }
.book-eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--red-bright); margin-bottom: 8px;
}
.book-title { font-family: var(--font-display); font-size: 26px; font-weight: 700; line-height: 1.15; }
.book-sub { margin-top: 8px; font-size: 17px; line-height: 1.45; color: rgba(255,255,255,0.72); }
.book-call {
  margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.14);
  display: flex; align-items: center; gap: 12px;
}
.book-call-icon {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(225,36,42,0.16); color: var(--red-bright);
}
.book-call-icon svg { width: 20px; height: 20px; }
.book-call-text { display: flex; flex-direction: column; line-height: 1.25; }
.book-call-label { font-size: 14px; color: rgba(255,255,255,0.6); }
.book-call-num { font-family: var(--font-display); font-size: 23px; font-weight: 700; color: #fff; }

/* if the QR couldn't render (no booking config), drop the empty white box */
.profile-book:not(.has-qr) .profile-book-qr { display: none; }

/* ======================= FAQ POPUP ======================= */
.faq-modal {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -46%) scale(0.96);
  width: min(880px, 90%); max-height: 76%; display: flex; flex-direction: column; min-height: 0;
  background: var(--bg-top); border-radius: 36px; box-shadow: var(--shadow-lg);
  z-index: 20; opacity: 0; pointer-events: none; overflow: hidden;
  transition: opacity 0.32s ease, transform 0.42s cubic-bezier(0.32,0.72,0.05,1);
}
.faq-modal.is-open { opacity: 1; transform: translate(-50%, -50%) scale(1); pointer-events: auto; }
.faq-modal::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 120px; height: 4px; border-radius: 0 0 6px 6px; background: linear-gradient(90deg, var(--red), var(--red-bright)); }
.faq-modal-inner { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; padding: 50px 52px 6px; }
.faq-head { display: flex; flex-direction: column; gap: 9px; margin-bottom: 24px; padding-right: 70px; }
.faq-eyebrow { font-size: 15px; font-weight: 600; letter-spacing: 0.34em; text-transform: uppercase; color: var(--red); }
.faq-title { font-family: var(--font-display); font-size: 40px; font-weight: 700; color: var(--ink); }
.faq-list { flex: 1 1 auto; overflow-y: auto; min-height: 0; padding-right: 12px; padding-bottom: 8px; overscroll-behavior: contain; touch-action: pan-y; }
.faq-list::-webkit-scrollbar { width: 8px; }
.faq-list::-webkit-scrollbar-track { background: var(--line-soft); border-radius: 8px; }
.faq-list::-webkit-scrollbar-thumb { background: var(--red); border-radius: 8px; }
.faq-item { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; margin-bottom: 11px; overflow: hidden; transition: box-shadow 0.25s ease, border-color 0.25s ease; }
.faq-item.is-open { border-color: rgba(225,36,42,0.5); box-shadow: 0 10px 28px rgba(225,36,42,0.12); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; text-align: left; padding: 22px 28px; font-size: 21px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.faq-q-icon { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; background: var(--panel); border: 1px solid var(--line); display: grid; place-items: center; position: relative; transition: all 0.3s ease; }
.faq-q-icon::before, .faq-q-icon::after { content: ""; position: absolute; background: var(--red); border-radius: 2px; transition: transform 0.3s ease; }
.faq-q-icon::before { width: 16px; height: 2.5px; }
.faq-q-icon::after { width: 2.5px; height: 16px; }
.faq-item.is-open .faq-q-icon { background: var(--red); border-color: var(--red); }
.faq-item.is-open .faq-q-icon::before { background: #fff; }
.faq-item.is-open .faq-q-icon::after { background: #fff; transform: rotate(90deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.45s cubic-bezier(0.4,0,0.2,1); }
.faq-a-inner { padding: 0 80px 26px 28px; font-size: 19px; line-height: 1.65; color: var(--ink-soft); }

/* ======================= ATTRACT OVERLAY ======================= */
.attract {
  position: absolute; inset: 0; z-index: 40;
  background: radial-gradient(820px 640px at 50% 42%, rgba(255,255,255,0.55), rgba(228,235,244,0.86));
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 40px; opacity: 0; pointer-events: none; transition: opacity 0.8s ease;
}
.attract.is-on { opacity: 1; pointer-events: auto; }
.attract-ring { width: 130px; height: 130px; border-radius: 50%; border: 3px solid var(--red); position: relative; animation: attract-pop 2.2s ease-out infinite; }
.attract-ring::after { content: ""; position: absolute; inset: 28px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffd2d4, var(--red-bright) 58%, var(--red-deep)); box-shadow: 0 0 36px 8px rgba(225,36,42,0.4); }
@keyframes attract-pop { 0% { transform: scale(0.7); opacity: 1; } 70% { transform: scale(1.25); opacity: 0; } 100% { transform: scale(1.25); opacity: 0; } }
.attract-text { font-family: var(--font-display); font-size: 44px; font-weight: 700; letter-spacing: 0.06em; color: var(--ink); text-shadow: 0 4px 20px rgba(255,255,255,0.8); animation: attract-fade 2.2s ease-in-out infinite; }
@keyframes attract-fade { 0%,100% { opacity: 0.62; } 50% { opacity: 1; } }
