/* =========================================================
   UniCookies — Hello Neighbor
   Full branded stylesheet (centered, larger, premium)
   + Bakso Sapi titles via /assets/BaksoSapi.woff2
   + Button selection overlay: #00AEEF on selected
   ========================================================= */

/* ---------- Font: Bakso Sapi (local asset) ---------- */
@font-face{
  font-family: "Bakso Sapi";
  src: url("./assets/BaksoSapi.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root{
  --bg: #f6fbff;
  --card: rgba(255,255,255,.92);
  --ink: #0d1b2a;
  --muted: rgba(13,27,42,.70);

  --line: rgba(13,27,42,.12);
  --shadow: 0 18px 40px rgba(13,27,42,.14);

  --brand: #2aace2;          /* UniCookies blue */
  --brand-deep: #1f8fc0;

  --select: #00AEEF;         /* selected toggle color */
  --radius: 18px;
  --radius-sm: 12px;

  --max: 760px;              /* card width feels premium */
  --pad: 24px;

  --title-font: "Bakso Sapi", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  --body-font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}

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

body{
  margin:0;
  font-family: var(--body-font);
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 18% 8%, rgba(42,172,226,.22), transparent 55%),
    radial-gradient(900px 600px at 86% 18%, rgba(255,213,74,.18), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 60%, #ffffff 100%);
}

/* Layout wrapper */
.wrap{
  min-height: 100svh;
  display:grid;
  place-items:center;
  padding: 28px 16px 44px;
}

/* Main card */
.card{
  width: min(var(--max), 92vw);
  margin: 0 auto;
  background: var(--card);
  border: 1px solid rgba(255,255,255,.55);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
  backdrop-filter: blur(10px);
  padding: 18px var(--pad) 20px;
}

/* Brand header */
.brand{
  display:flex;
  justify-content:center;
  align-items:center;
  margin: 10px 0 6px;
}
.brand img{
  height: 64px;
  width:auto;
  display:block;
}

/* Screens */
.screen{ display:none; }
.screen.active{ display:block; }

.fade{
  animation: fadeUp .5s ease-out both;
}
@keyframes fadeUp{
  from{ opacity:0; transform: translateY(10px); }
  to{ opacity:1; transform:none; }
}

/* Typography */
.kicker{
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 10px 0 6px;
  text-align:center;
}

/* ✅ All titles use Bakso Sapi */
.title{
  margin: 0 0 8px;
  line-height: 1.15;
  text-align:center;
  font-family: var(--title-font);
  font-weight: 400;
}

/* Welcome headline */
#s1 .title{ font-size: 36px; }
#s2 .title, #s3 .title, #s4 .title, #s5 .title{ font-size: 22px; }

.sub{
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 14px;
  text-align:center;
  max-width: 54ch;
  margin-left:auto;
  margin-right:auto;
}

/* Fields */
.field{ margin: 12px 0; }
.label{
  font-size: 13px;
  color: rgba(13,27,42,.86);
  margin-bottom: 6px;
}
.small{
  font-size: 13px;
  color: rgba(13,27,42,.62);
  margin-top: 8px;
  text-align:center;
}

/* Input controls */
input, select, textarea{
  width:100%;
  font-size: 16px;
  padding: 12px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.95);
  outline:none;
  color: var(--ink);
  transition: box-shadow .15s ease, border-color .15s ease, transform .12s ease;
}
textarea{ min-height: 96px; resize: vertical; }

input:focus, select:focus, textarea:focus{
  border-color: rgba(42,172,226,.55);
  box-shadow: 0 0 0 4px rgba(42,172,226,.14);
}

input::placeholder, textarea::placeholder{
  color: rgba(13,27,42,.45);
}

/* Rows */
.row{
  display:flex;
  gap: 14px;
  flex-wrap:wrap;
}
.row.two > *{
  flex: 1 1 260px;
}

/* Buttons area */
.actions{
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
  margin-top: 14px;
  justify-content:center;
}

/* Buttons */
button{
  appearance:none;
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 15px;
  cursor:pointer;
  transition: transform .12s ease, box-shadow .15s ease, opacity .15s ease, background .15s ease, border-color .15s ease;
}
button:active{ transform: translateY(1px); }

.primary{
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color:#fff;
  box-shadow: 0 14px 26px rgba(42,172,226,.22);
}
.primary:hover{ opacity:.96; }

.ghost{
  background: rgba(255,255,255,.78);
  border: 1px solid var(--line);
  color: rgba(13,27,42,.88);
}
.ghost:hover{
  box-shadow: 0 0 0 4px rgba(42,172,226,.10);
}

/* ✅ Selection styling for manualHome/manualApt */
.ghost.is-selected{
  background: var(--select);
  border-color: rgba(0,0,0,0);
  color: #ffffff;
  box-shadow: 0 14px 26px rgba(0,174,239,.22);
}
.ghost.is-selected:hover{
  box-shadow: 0 0 0 4px rgba(0,174,239,.18);
}

/* Divider lines / tips */
.divider{
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(13,27,42,.10);
  font-size: 13px;
  color: rgba(13,27,42,.62);
  text-align:center;
}

/* Autocomplete box */
.suggest{ position:relative; }
.suggestbox{
  position:absolute;
  top: calc(100% + 6px);
  left:0;
  right:0;
  background: rgba(255,255,255,.98);
  border: 1px solid rgba(13,27,42,.14);
  border-radius: var(--radius-sm);
  box-shadow: 0 16px 34px rgba(13,27,42,.14);
  overflow:hidden;
  z-index: 10;
}
.suggestbox .item{
  padding: 10px 12px;
  font-size: 15px;
  cursor:pointer;
  display:flex;
  justify-content:space-between;
  gap: 10px;
}
.suggestbox .item:hover{
  background: rgba(42,172,226,.08);
}
.suggestbox .meta{
  font-size: 12px;
  color: rgba(13,27,42,.55);
}

/* Hidden helper */
.hidden{ display:none !important; }

/* Toast */
.toast{
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  background: rgba(13,27,42,.92);
  color:#fff;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  box-shadow: 0 14px 28px rgba(13,27,42,.22);
  opacity:0;
  pointer-events:none;
  transition: opacity .18s ease, transform .18s ease;
}
.toast.show{
  opacity:1;
  transform: translateX(-50%) translateY(-2px);
}

/* Mobile */
@media (max-width: 540px){
  .card{ padding: 16px 18px 18px; }
  #s1 .title{ font-size: 32px; }
  .brand img{ height: 56px; }
}
