/* BABY Bar website — reserve a table. Phone first (390 px wide).
   A vermilion band with the title and a hand drawing (like the menu page), then one card on the
   pink: the form, or — after sending, and at reserve#<private link> — the request and its answer.
   Every box and button is at least 48 px tall, and form text is 17 px so an iPhone does not zoom
   in when a box is tapped. Text is always ink (brand rule). */

/* ---- the band ---- */
.rhero { position: relative; overflow: hidden; background: var(--ver); color: var(--ink); }
.rhero .dots { -webkit-mask: linear-gradient(200deg, #000 0%, transparent 55%); mask: linear-gradient(200deg, #000 0%, transparent 55%); }
.rhead { position: relative; max-width: 760px; margin: 0 auto; min-height: 190px; padding: 26px var(--gutter) 30px; }
.rhead h1 { position: relative; z-index: 1; font-family: var(--serif); font-size: clamp(44px, 12vw, 80px); line-height: .98; letter-spacing: -.015em; max-width: 70%; }
.rhead h1 .th { display: block; font: 600 18px/1.3 'Noto Sans Thai', var(--sans); letter-spacing: 0; margin-top: 8px; }
.rlead { position: relative; z-index: 1; margin-top: 14px; font-size: 16px; font-weight: 500; max-width: min(44ch, calc(100% - 96px)); }
.rhead .hand { position: absolute; right: var(--gutter); bottom: -70px; width: 92px; aspect-ratio: 520 / 1058; color: var(--pink);
  transform: rotate(-6deg); transform-origin: 50% 100%; pointer-events: none; }
@media (min-width: 700px) { .rhead .hand { width: 120px; bottom: -80px; } .rlead { max-width: 44ch; } }

/* ---- the page ---- */
.rwrap { max-width: 760px; margin: 0 auto; padding: 22px var(--gutter) 56px; }
.card { background: var(--paper); border: 2px solid var(--ink); border-radius: 18px; padding: 20px 18px 22px; box-shadow: 6px 6px 0 var(--ink); }
@media (min-width: 700px) { .card { padding: 28px 30px 30px; } }

/* ---- the form ---- */
.field { margin-top: 18px; min-width: 0; }
.rform > .row2:first-child > .field:first-child { margin-top: 0; }
.row2 { display: grid; gap: 0 16px; }
@media (min-width: 620px) { .row2 { grid-template-columns: 1fr 1fr; } .rform > .row2:first-child > .field { margin-top: 0; } }
.field label { display: block; font-weight: 700; font-size: 16px; margin-bottom: 6px; }
.field label [lang="th"], .field label small { font-weight: 500; }
.field label small { font-size: 14px; color: var(--muted); margin-left: 4px; }
.field input, .field select, .field textarea {
  display: block; width: 100%; min-height: 52px; padding: 12px 14px; border-radius: 12px; border: 2px solid var(--ink);
  background: #fff; color: var(--ink); font: 500 17px/1.3 var(--sans); -webkit-appearance: none; appearance: none; }
.field textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
.field select { padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23231F20' stroke-width='2.6'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 20px; }
.field select:disabled { opacity: .6; }
.field input[type="date"] { text-align: left; }                       /* iPhone centres it otherwise */
.field input[type="date"]::-webkit-date-and-time-value { text-align: left; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.field [aria-invalid="true"] { border-color: #B3261E; box-shadow: 0 0 0 2px #B3261E; }
.field ::placeholder { color: #8a7d7e; }
.hint { margin-top: 6px; font-size: 14px; color: var(--muted); min-height: 1em; }
.hint:empty { display: none; }

.stepper { display: grid; grid-template-columns: 52px 1fr 52px; gap: 8px; }
.step { min-height: 52px; border-radius: 12px; border: 2px solid var(--ink); background: #fff; font-size: 26px; font-weight: 700; line-height: 1; }
.step:disabled { opacity: .35; cursor: default; }
.step:not(:disabled):active { background: var(--ink); color: var(--pink); }
.group { margin-top: 12px; padding: 14px 16px; border-radius: 12px; background: var(--ink); color: var(--pink); font-size: 15px; }
.group p + p { margin-top: 8px; }
.group a { color: var(--pink); font-weight: 700; text-underline-offset: 3px; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.msg { margin-top: 18px; padding: 12px 14px; border-radius: 12px; font-size: 15px; font-weight: 600; }
.msg.bad { background: #fff; color: #8C1D18; border: 2px solid #B3261E; }
.btn.send { width: 100%; min-height: 56px; margin-top: 22px; font-size: 18px; }
.btn.send [lang="th"] { font-weight: 500; }
.btn:disabled { opacity: .5; cursor: default; transform: none; box-shadow: none; }
.btn.danger { background: #8C1D18; color: #fff; }
.small { margin-top: 14px; font-size: 14px; color: var(--muted); }
.contact { margin-top: 22px; font-size: 15px; text-align: center; }
.contact a { font-weight: 700; text-underline-offset: 3px; white-space: nowrap; }

/* ---- earlier requests from this browser ---- */
.mine { margin-bottom: 20px; }
.mine h2 { font-family: var(--serif); font-size: 28px; line-height: 1.1; }
.mine h2 span { font: 600 16px/1.3 'Noto Sans Thai', var(--sans); }
.mine ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.mine a { display: flex; flex-direction: column; gap: 2px; min-height: 56px; padding: 10px 14px; border-radius: 12px; border: 2px solid var(--ink);
  background: var(--paper); text-decoration: none; }
.mine a:hover { box-shadow: 4px 4px 0 var(--ink); }
.mine .when { font-weight: 700; }
.mine .what { font-size: 14px; color: var(--muted); }

/* ---- one request ---- */
.one .kicker { display: inline-block; margin-bottom: 12px; padding: 4px 12px; border-radius: 999px; background: var(--ink); color: var(--pink); font-weight: 700; font-size: 14px; }
.refline { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.refline > span { font-weight: 700; }
.ref { font-family: var(--serif); font-weight: 400; font-size: 46px; line-height: 1; letter-spacing: .08em; }
.state { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; padding: 8px 16px 8px 12px; border-radius: 999px;
  border: 2px solid var(--ink); font-weight: 700; font-size: 17px; }
.state .dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--ink); flex: none; }
.state.requested .dot, .state.accepted .dot { background: var(--pink); }
.state.confirmed { background: var(--ink); color: var(--pink); }
.state.confirmed .dot { background: var(--ver); border-color: var(--ver); }
.state.declined, .state.cancelled { background: #fff; }
.state.declined .dot, .state.cancelled .dot { background: var(--ink); }
.say { margin-top: 12px; font-size: 16px; }
.reply { margin-top: 14px; padding: 12px 14px; border-left: 4px solid var(--ink); background: #fff; border-radius: 0 12px 12px 0; font-size: 16px; }
.reply .who { display: block; font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 18px 0 0; padding: 14px 0 0; border-top: 1.5px solid var(--line); }
.facts dt { font-weight: 700; font-size: 15px; }
.facts dt [lang="th"] { font-weight: 500; }
.facts dd { margin: 0; font-size: 16px; }
.keep { margin-top: 20px; padding: 14px; border-radius: 12px; background: #fff; border: 1.5px dashed var(--ink); font-size: 15px; }
.linkrow { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.linkrow input { flex: 1 1 180px; min-width: 0; min-height: 48px; padding: 10px 12px; border-radius: 10px; border: 2px solid var(--ink);
  background: var(--paper); color: var(--ink); font: 500 16px var(--sans); }
.btn.small-btn { min-height: 48px; padding: 0 16px; font-size: 15px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; }
.actions .ask { width: 100%; font-weight: 700; }
.actions .btn { flex: 1 1 auto; }
.rwrap .btn > span { text-align: center; }

/* "not booked until we call" + the poolside deposit (owner 2026-11-17) */
.notice { margin: 0 0 20px; padding: 14px 16px; border: 2px solid var(--ink); border-radius: 14px; background: var(--pink); color: var(--ink); font-size: 15px; }
.notice p + p { margin-top: 10px; }
