/* =========================================================
   site.css — APP-LIKE (Klinik Anindita)
   Replace full file with this version
   ========================================================= */

:root{
  --pink-50:#FFF1F2;
  --pink-100:#FFE4E6;
  --pink-200:#FCE7F3;
  --pink-300:#FBCFE8;
  --pink-600:#DB2777;
  --rose-700:#BE185D;

  --slate-900:#0f172a;
  --slate-700:#334155;
  --slate-500:#64748B;

  --card:#FFFFFF;
  --radius:18px;
  --shadow: 0 12px 30px rgba(190,24,93,.10);

  --line: rgba(219,39,119,.14);
  --soft: rgba(255,255,255,.82);

  /* bottom nav sizing */
  --nav-h: 78px;
  --nav-gap: 12px;
}

*{box-sizing:border-box}
html, body{height:100%}

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--slate-700);

  background:
    radial-gradient(900px 500px at 20% 0%, rgba(251,207,232,.75), transparent 60%),
    radial-gradient(900px 500px at 80% 10%, rgba(255,228,230,.85), transparent 55%),
    linear-gradient(180deg, var(--pink-50), #fff);

  min-height:100vh;
  background-repeat:no-repeat;
  background-size:100% 100%;
}

a{color:inherit;text-decoration:none}

/* =========================================================
   Layout containers
   ========================================================= */
.wrap{
  max-width:980px;
  margin:0 auto;
  padding:18px 16px 28px;
}
.pageNarrow{
  max-width:560px;
  margin:0 auto;
}

/* =========================================================
   Topbar / Brand
   ========================================================= */
.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 4px;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}
.logo{
  width:42px;
  height:42px;
  border-radius:14px;
  background: linear-gradient(135deg, #FBCFE8, #FFE4E6);
  display:grid;
  place-items:center;
  box-shadow: var(--shadow);
  flex:0 0 auto;
  overflow:hidden;
}
.brand h1{
  font-size:14px;
  margin:0;
  line-height:1.2;
  font-weight:900;
  letter-spacing:.2px;
  color: var(--slate-900);
}
.brand p{
  margin:2px 0 0;
  font-size:12px;
  color: var(--slate-500);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.pill{
  padding:10px 12px;
  border-radius:999px;
  background: rgba(255,255,255,.70);
  border:1px solid var(--line);
  backdrop-filter: blur(10px);
  font-size:12px;
  font-weight:900;
  color: var(--rose-700);
  display:flex;
  align-items:center;
  gap:8px;
  box-shadow: 0 8px 18px rgba(219,39,119,.08);
}

/* =========================================================
   Hero / Landing
   ========================================================= */
.hero{
  margin-top:8px;
  display:grid;
  gap:14px;
}
.heroCard{
  background: rgba(255,255,255,.78);
  border:1px solid rgba(219,39,119,.10);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.heroInner{padding:18px 16px}

.badge{
  display:inline-flex;
  gap:8px;
  align-items:center;
  padding:8px 10px;
  border-radius:999px;
  background: rgba(252,231,243,.90);
  border:1px solid rgba(219,39,119,.12);
  color: var(--rose-700);
  font-size:12px;
  font-weight:900;
}

.title{
  margin:12px 0 0;
  font-size:24px;
  line-height:1.12;
  letter-spacing:-.3px;
  font-weight:950;
  color: var(--slate-900);
}
.subtitle{
  margin:10px 0 0;
  font-size:13px;
  line-height:1.55;
  color: var(--slate-500);
}

.ctaRow{
  margin-top:14px;
  display:grid;
  gap:10px;
}

/* =========================================================
   Buttons
   - Primary is strongest (main action)
   - Soft is secondary (tabs and minor actions)
   ========================================================= */
.btn{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;

  padding:14px 14px;
  border-radius:14px;

  font-weight:950;
  border:0;
  cursor:pointer;

  transition: transform .08s ease, box-shadow .08s ease;
  user-select:none;
}
.btn:active{transform: translateY(1px)}
.btn svg{width:18px;height:18px}

.btnPrimary{
  color:#fff;
  background: linear-gradient(135deg, var(--pink-600), #F43F5E);
  box-shadow: 0 14px 26px rgba(219,39,119,.22);
}
.btnGhost{
  background: rgba(255,255,255,.92);
  border:1px solid var(--line);
  color: var(--rose-700);
  box-shadow: 0 10px 18px rgba(219,39,119,.08);
}
.btnSoft{
  background: rgba(255,255,255,.70);
  border:1px solid rgba(219,39,119,.12);
  color: var(--rose-700);
  box-shadow: 0 10px 18px rgba(219,39,119,.06);
}
.btnFull{width:100%}

/* =========================================================
   Cards / sections
   ========================================================= */
.card{
  background: rgba(255,255,255,.92);
  border:1px solid rgba(219,39,119,.10);
  border-radius: var(--radius);
  padding:14px;
  box-shadow: var(--shadow);
}
.strip{
  padding:12px 16px;
  border-top:1px dashed rgba(219,39,119,.18);
  display:grid;
  gap:10px;
  background: rgba(255,255,255,.55);
}

.quick{
  display:grid;
  gap:10px;
  grid-template-columns: 1fr 1fr;
}
.qcard{
  background: rgba(255,255,255,.90);
  border:1px solid rgba(219,39,119,.10);
  border-radius:16px;
  padding:12px;
  box-shadow: 0 10px 18px rgba(15,23,42,.04);
  min-height:82px;
}
.qcard h3{margin:0;font-size:12px;font-weight:950;color:var(--slate-900)}
.qcard p{margin:6px 0 0;font-size:12px;color:var(--slate-500);line-height:1.35}
.qcardWithLink{
  position:relative;
  padding-bottom:38px;
}
.qcardLink{
  position:absolute;
  right:12px;
  bottom:10px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:5px 10px;
  border-radius:999px;
  font-size:11px;
  font-weight:800;
  color:var(--rose-700);
  background:rgba(252,231,243,.95);
  border:1px solid rgba(219,39,119,.18);
}
.qicon{
  width:34px;height:34px;border-radius:14px;
  display:grid;place-items:center;
  background: rgba(252,231,243,.90);
  border:1px solid rgba(219,39,119,.12);
  margin-bottom:8px;
}

/* =========================================================
   Service list (landing)
   ========================================================= */
.section{margin-top:14px;display:grid;gap:12px}
.sectionTitle{
  font-size:14px;
  font-weight:950;
  color: var(--slate-900);
  margin:0 4px;
}
.serviceGrid{display:grid;gap:10px;grid-template-columns: 1fr}
.service{
  background: rgba(255,255,255,.85);
  border:1px solid rgba(219,39,119,.10);
  border-radius: var(--radius);
  padding:14px;
  box-shadow: 0 10px 18px rgba(219,39,119,.07);
  display:flex;
  gap:12px;
}
.service .ic{
  width:42px;height:42px;border-radius:16px;
  display:grid;place-items:center;
  background: linear-gradient(135deg, rgba(251,207,232,.95), rgba(255,228,230,.95));
  border:1px solid rgba(219,39,119,.10);
  flex:0 0 auto;
}
.service h4{margin:0;font-size:13px;font-weight:950;color:var(--slate-900)}
.service p{margin:6px 0 0;font-size:12px;color:var(--slate-500);line-height:1.45}

/* =========================================================
   Footer
   ========================================================= */
.footer{
  margin-top:16px;
  padding:14px 4px 0;
  color: var(--slate-500);
  font-size:12px;
  display:grid;
  gap:8px;
}
.footCard{
  background: rgba(255,255,255,.75);
  border:1px solid rgba(219,39,119,.10);
  border-radius: var(--radius);
  padding:14px;
  box-shadow: 0 10px 18px rgba(219,39,119,.06);
  display:grid;
  gap:10px;
}
.row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.link{
  display:inline-flex;gap:8px;align-items:center;
  padding:10px 12px;border-radius:999px;
  background: rgba(252,231,243,.90);
  border:1px solid rgba(219,39,119,.12);
  color: var(--rose-700);
  font-weight:950;
  font-size:12px;
}
.link svg{width:16px;height:16px}
.muted{color:var(--slate-500)}
.spacer{height:6px}

/* =========================================================
   Forms (Step pages)
   ========================================================= */
label{
  display:block;
  margin:10px 0 6px;
  color: var(--slate-900);
  font-weight:950;
  font-size:13px;
}
input, select{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(15,23,42,.10);
  outline:none;
  font-weight:800;
  background:#fff;
}
input:focus, select:focus{
  border-color: rgba(219,39,119,.45);
  box-shadow: 0 0 0 4px rgba(219,39,119,.12);
}
.row2{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
}
@media(min-width:520px){
  .row2{grid-template-columns: 1fr 1fr;}
}
.dateSelect{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:8px;
}
.dateSelect .dateYear{
  grid-column: 1 / -1;
}
@media(min-width:520px){
  .dateSelect{
    grid-template-columns: 1fr 1fr 1fr;
  }
  .dateSelect .dateYear{
    grid-column: auto;
  }
}
.hint{
  margin-top:10px;
  margin-bottom:12px;
  padding:10px 12px;
  border-radius:12px;
  background: rgba(251,207,232,.22);
  border:1px dashed rgba(219,39,119,.18);
  color: var(--slate-500);
  font-size:12px;
  font-weight:800;
  line-height:1.5;
}
.err{
  margin:0 0 12px;
  padding:10px 12px;
  border-radius:14px;
  background:rgba(239,68,68,.10);
  border:1px solid rgba(239,68,68,.20);
  color:#7f1d1d;
  font-weight:950;
}
.hidden{display:none}

/* =========================================================
   APP Wizard (chips)
   Use: .wizardApp .wChip [active|done]
   ========================================================= */
.wizardApp{
  margin-top:12px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.wChip{
  flex:1;
  min-width: 170px;
  display:flex;
  align-items:center;
  gap:10px;

  padding: 12px 12px;
  border-radius: 16px;

  background: rgba(255,255,255,.70);
  border: 1px solid rgba(219,39,119,.12);
  box-shadow: 0 10px 18px rgba(219,39,119,.06);

  color: var(--slate-500);
}
.wChip .wIcon{
  width: 34px;
  height: 34px;
  border-radius: 14px;
  display:grid;
  place-items:center;

  background: rgba(252,231,243,.85);
  border:1px solid rgba(219,39,119,.12);

  font-weight: 950;
  color: var(--rose-700);
}
.wChip .wText{ line-height:1.2; }
.wChip .wTitle{ font-weight: 950; color: var(--slate-900); font-size:12.5px; }
.wChip .wDesc{ margin-top:4px; font-weight: 800; font-size:11.5px; color: var(--slate-500); }

.wChip.active{
  border-color: rgba(219,39,119,.22);
  background: rgba(255,255,255,.88);
}
.wChip.active .wIcon{
  background: linear-gradient(135deg, var(--pink-600), #F43F5E);
  color:#fff;
  border-color: transparent;
}
.wChip.done{
  opacity: .92;
}
.wChip.done .wIcon{
  background: rgba(16,185,129,.12);
  border-color: rgba(16,185,129,.22);
  color:#065F46;
}

/* =========================================================
   Soft Segmented Tabs (Pasien Lama / Baru)
   Use: .tabsSoft .tabSoft (active)
   ========================================================= */
.tabsSoft{
  display:flex;
  gap:8px;
  padding:6px;
  border-radius:16px;

  background: rgba(255,255,255,.70);
  border: 1px solid rgba(219,39,119,.12);
  box-shadow: 0 10px 18px rgba(219,39,119,.06);

  margin-bottom: 12px;
}
.tabSoft{
  flex:1;
  border:0;
  cursor:pointer;
  border-radius:14px;
  padding:12px 12px;

  font-weight:950;
  font-size:12.5px;

  color: var(--rose-700);
  background: transparent;
}
.tabSoft.active{
  background: rgba(252,231,243,.78);
  border: 1px solid rgba(219,39,119,.14);
  box-shadow: 0 10px 18px rgba(15,23,42,.04);
}

/* =========================================================
   Page: Cek Status Booking (result card)
   ========================================================= */
.cardSection{
  margin-top:10px;
  background: rgba(255,255,255,.82);
  border:1px solid rgba(219,39,119,.10);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.cardInner{padding:18px 16px}
.pageTitle{margin:0;font-size:18px;font-weight:950;color:var(--slate-900)}
.pageSub{margin:8px 0 0;font-size:12.5px;line-height:1.6;color:var(--slate-500)}
.form{margin-top:14px;display:grid;gap:10px}
.input{
  width:100%;
  padding:14px;
  border-radius:14px;
  border:1px solid rgba(219,39,119,.18);
  background: rgba(255,255,255,.95);
  font-size:14px;
  outline:none;
}
.input:focus{
  border-color: rgba(219,39,119,.45);
  box-shadow: 0 0 0 4px rgba(219,39,119,.12);
}
.dateField{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:14px;
  background: rgba(255,255,255,.92);
  border:1px solid rgba(219,39,119,.16);
  box-shadow: 0 10px 18px rgba(219,39,119,.06);
}
.dateIcon{
  width:36px;
  height:36px;
  border-radius:12px;
  display:grid;
  place-items:center;
  background: rgba(252,231,243,.90);
  border:1px solid rgba(219,39,119,.12);
  color: var(--rose-700);
  font-weight:950;
  font-size:11px;
  letter-spacing:.3px;
  flex:0 0 auto;
}
.dateInput{
  width:100%;
  border:0;
  padding:6px 0;
  background: transparent;
  font-size:14px;
  font-weight:900;
  color: var(--slate-900);
}
.dateInput:focus{
  border:0;
  box-shadow:none;
}
.results{
  padding:12px 16px 16px;
  border-top:1px dashed rgba(219,39,119,.18);
  background: rgba(255,255,255,.55);
}
.alert{
  padding:12px;
  border-radius:14px;
  background: rgba(252,231,243,.95);
  border:1px solid rgba(219,39,119,.14);
  color: var(--rose-700);
  font-weight:900;
  font-size:12.5px;
}
.alert.danger{
  background: rgba(239,68,68,.08);
  border-color: rgba(239,68,68,.18);
  color:#7f1d1d;
}
.modalOverlay{
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(15,23,42,.45);
  z-index: 999;
  padding: 18px;
}
.modalOverlay.hidden{
  display: none;
}
.modalCard{
  width: min(360px, 92vw);
  background: #fff;
  border-radius: 18px;
  padding: 16px;
  border: 1px solid rgba(239,68,68,.18);
  box-shadow: 0 20px 40px rgba(15,23,42,.18);
  text-align: center;
}
.modalCard h3{
  margin: 10px 0 6px;
  font-size: 16px;
  font-weight: 950;
  color: #7f1d1d;
}
.modalCard p{
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 800;
  color: var(--slate-600);
}
.modalIcon{
  width: 44px;
  height: 44px;
  margin: 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(239,68,68,.12);
  color: #7f1d1d;
  font-weight: 950;
  font-size: 18px;
}
.list{margin-top:12px;display:grid;gap:10px}

.cardItem{
  background: rgba(255,255,255,.94);
  border:1px solid rgba(219,39,119,.10);
  border-radius:18px;
  padding:14px;
  box-shadow: 0 12px 24px rgba(15,23,42,.06);
}
.cardTop{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.titleRow .tLabel{font-size:12px;color:var(--slate-500);font-weight:900}
.titleRow .code{
  margin-top:4px;
  font-size:16px;
  font-weight:950;
  color:var(--slate-900);
  letter-spacing:.3px;
}
.badgePill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border-radius:999px;
  font-weight:950;
  font-size:12px;
  border:1px solid rgba(219,39,119,.18);
  background: rgba(252,231,243,.85);
  color: var(--rose-700);
  white-space:nowrap;
}
.badgePill.ok{background: rgba(219,39,119,.10); border-color: rgba(219,39,119,.20);}
.badgePill.done{background: rgba(16,185,129,.12); border-color: rgba(16,185,129,.22); color:#065F46;}
.badgePill.cancel{background: rgba(239,68,68,.12); border-color: rgba(239,68,68,.22); color:#7f1d1d;}
.bIcon{font-size:14px;line-height:1;}

.gridInfo{
  margin-top:14px;
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
}
@media(min-width:560px){ .gridInfo{grid-template-columns:1fr 1fr;} }

.info{
  padding:10px 12px;
  border-radius:14px;
  background: rgba(255,255,255,.78);
  border:1px solid rgba(219,39,119,.10);
}
.label{font-size:11.5px;color:var(--slate-500);font-weight:900}
.value{
  margin-top:4px;
  font-size:13px;
  color:var(--slate-900);
  font-weight:950;
  line-height:1.35;
}
.note{
  margin-top:12px;
  padding:12px;
  border-radius:14px;
  background: rgba(251,207,232,.25);
  border:1px dashed rgba(219,39,119,.22);
}
.noteLabel{font-size:11.5px;font-weight:950;color:var(--rose-700)}
.noteText{margin-top:6px;font-size:12.5px;color:var(--slate-900);line-height:1.55}
.cardBottom{
  margin-top:12px;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.created{font-size:11.5px;color:var(--slate-500);font-weight:900}

/* =========================================================
   BottomNav (Sticky like app)
   Use: <div class="bottomNav"> ... </div>
   ========================================================= */
.bottomNav{
  display:flex;
  gap:10px;

  margin: 12px 16px 16px;
  padding: 12px;
  min-height: var(--nav-h);

  border-radius: 18px;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(219,39,119,.14);
  backdrop-filter: blur(10px);

  box-shadow: 0 18px 34px rgba(15,23,42,.14);
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
}

.linkBtn{
  flex:1;
  min-width:0;

  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;

  padding:12px 14px;
  border-radius:14px;

  background: rgba(255,255,255,.92);
  border:1px solid rgba(219,39,119,.14);
  color: var(--rose-700);

  font-weight:950;
  font-size:12.5px;

  box-shadow: 0 10px 18px rgba(219,39,119,.08);
}
.linkBtn:active{transform: translateY(1px)}
.linkBtn.primary{
  background: linear-gradient(135deg, var(--pink-600), #F43F5E);
  color:#fff;
  border-color: transparent;
  box-shadow: 0 12px 22px rgba(219,39,119,.20);
}

/* =========================================================
   Responsive fixes
   ========================================================= */
@media (min-width: 860px){
  .hero{grid-template-columns: 1.15fr .85fr; align-items:stretch;}
  .serviceGrid{grid-template-columns: 1fr 1fr;}
  .quick{grid-template-columns: 1fr;}
}

/* On small screens: topbar stacked */
@media (max-width: 520px){
  .topbar{flex-direction:column; align-items:flex-start;}
  .brand{width:100%;}
  .brand p{white-space:normal;}
  .pill{align-self:stretch; justify-content:center;}
}


.dateField{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 14px;
  border-radius:14px;
  background:#fff;
  border:1px solid rgba(219,39,119,.18);
}

.dateIcon{
  width:36px;
  height:36px;
  border-radius:12px;
  display:grid;
  place-items:center;
  background:rgba(252,231,243,.9);
  border:1px solid rgba(219,39,119,.18);
  color:var(--rose-700);
  flex:0 0 auto;
}

.dateIcon svg{
  width:20px;
  height:20px;
}

.dateInput{
  flex:1;
  border:0;
  outline:none;
  font-weight:900;
  font-size:14px;
  background:transparent;
  color:#0f172a;
}

/* Fokus (tap di HP terasa native) */
.dateField:focus-within{
  border-color:rgba(219,39,119,.45);
  box-shadow:0 0 0 4px rgba(219,39,119,.12);
}
