/* The public booking page. Same palette and type as arompakse.com, so a guest
   arriving from the Google profile lands somewhere that looks like the
   restaurant and not like an admin tool. Single file, no framework: this page
   opens on a mid-range Android phone over a Lao mobile network. */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --maroon-950: #1a0305;
  --maroon-900: #2a0709;
  --maroon-850: #3d0b0f;
  --maroon-800: #581419;
  --gold-500: #f5b642;
  --gold-600: #d99223;
  --gold-soft: #ffe2a3;
  --cream: #fff4dc;
  --cream-2: #f7e7c4;
  --muted: #c9ab93;
  --danger: #ff9a8a;
  --danger-bg: rgba(160, 34, 24, 0.28);
  --line: rgba(245, 182, 66, 0.22);
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  min-height: 100vh;
  color: var(--cream);
  background:
    radial-gradient(1100px 520px at 50% -10%, rgba(88, 20, 25, 0.75), transparent 70%),
    var(--maroon-950);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Noto Sans Lao", "Noto Sans Thai", Arial, sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

.wrap {
  width: calc(100% - 32px);
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 0 56px;
}

/* --- header ------------------------------------------------------------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--gold-500), var(--gold-600));
  color: var(--maroon-950);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-text strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.78rem;
}

.lang-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(26, 3, 5, 0.6);
}

.lang-switch a {
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.85rem;
  text-decoration: none;
}

.lang-switch a.active {
  background: var(--gold-500);
  color: var(--maroon-950);
  font-weight: 600;
}

/* --- hero --------------------------------------------------------------- */

.page-head {
  margin-bottom: 24px;
}

.page-head h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 6vw, 2.9rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.page-head p {
  max-width: 56ch;
  margin-top: 10px;
  color: var(--cream-2);
}

/* --- layout ------------------------------------------------------------- */

.columns {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  align-items: start;
}

@media (max-width: 760px) {
  .columns {
    grid-template-columns: minmax(0, 1fr);
  }
}

.card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(61, 11, 15, 0.86), rgba(42, 7, 9, 0.9));
  box-shadow: var(--shadow);
}

.card + .card {
  margin-top: 16px;
}

.card h2 {
  margin-bottom: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
}

/* --- form --------------------------------------------------------------- */

.field-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field.wide {
  grid-column: 1 / -1;
}

@media (max-width: 560px) {
  .field-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

label > span.label-text {
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(26, 3, 5, 0.65);
  color: var(--cream);
  /* 16px keeps iOS Safari from zooming the whole page on focus. */
  font-size: 16px;
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.field textarea {
  min-height: 96px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(245, 182, 66, 0.18);
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(201, 171, 147, 0.7);
}

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold-500) 50%),
    linear-gradient(135deg, var(--gold-500) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 38px;
}

.field .hint {
  color: var(--muted);
  font-size: 0.78rem;
}

/* The pre-order notice for big groups: it appears while the guest is still
   choosing, so it has to read as information, not as an error. */
.field .hint.large-group-hint {
  padding: 8px 10px;
  border: 1px solid rgba(245, 182, 66, 0.35);
  border-radius: 10px;
  background: rgba(245, 182, 66, 0.08);
  color: var(--gold-soft);
}

.field.has-error input,
.field.has-error select {
  border-color: var(--danger);
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.submit-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
}

button.primary {
  padding: 14px 26px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(140deg, var(--gold-500), var(--gold-600));
  color: var(--maroon-950);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 120ms ease, filter 120ms ease;
}

button.primary:hover {
  filter: brightness(1.05);
}

button.primary:active {
  transform: translateY(1px);
}

button.primary[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.submit-note {
  flex: 1 1 240px;
  min-width: 200px;
  color: var(--muted);
  font-size: 0.82rem;
}

/* --- notices ------------------------------------------------------------ */

.notice {
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(26, 3, 5, 0.6);
  font-size: 0.92rem;
}

.notice.error {
  border-color: rgba(255, 154, 138, 0.5);
  background: var(--danger-bg);
  color: #ffd9d2;
}

.notice strong {
  display: block;
  margin-bottom: 2px;
}

/* --- side cards --------------------------------------------------------- */

.hours {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
}

.hours .row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
  border-bottom: 1px dashed rgba(245, 182, 66, 0.14);
}

.hours .row:last-child {
  border-bottom: 0;
}

.hours .row.today {
  color: var(--gold-soft);
  font-weight: 600;
}

.hours .row.closed span:last-child {
  color: var(--muted);
}

.contact-links {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.contact-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(26, 3, 5, 0.55);
  font-size: 0.92rem;
  text-decoration: none;
  transition: border-color 140ms ease, background 140ms ease;
}

.contact-links a:hover {
  border-color: var(--gold-500);
  background: rgba(88, 20, 25, 0.45);
}

.contact-links .icon {
  width: 22px;
  text-align: center;
}

.side-note {
  color: var(--cream-2);
  font-size: 0.88rem;
}

.side-note-split {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed rgba(245, 182, 66, 0.18);
}

.group-note {
  margin: 16px auto 0;
  max-width: 46ch;
  padding: 12px 16px;
  border: 1px solid rgba(245, 182, 66, 0.3);
  border-radius: 12px;
  background: rgba(245, 182, 66, 0.07);
  color: var(--gold-soft);
  font-size: 0.9rem;
}

.side-note strong {
  display: block;
  margin-bottom: 4px;
  color: var(--gold-soft);
  font-family: Georgia, "Times New Roman", serif;
}

/* --- confirmation ------------------------------------------------------- */

.done-card {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}

.done-mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(122, 176, 74, 0.18);
  border: 1px solid rgba(122, 176, 74, 0.5);
  color: #a9e07a;
  font-size: 1.8rem;
}

.done-mark.confirmed {
  background: rgba(122, 176, 74, 0.26);
  border-color: rgba(122, 176, 74, 0.7);
}

.done-mark.declined {
  background: rgba(160, 34, 24, 0.24);
  border-color: rgba(255, 154, 138, 0.55);
  color: #ffb3a7;
}

.done-card h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 5vw, 2.2rem);
}

.done-card p {
  margin-top: 10px;
  color: var(--cream-2);
}

.reference {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  margin: 22px auto 6px;
  padding: 14px 28px;
  border: 1px dashed var(--gold-500);
  border-radius: 14px;
}

.reference small {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reference strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
  letter-spacing: 0.12em;
  color: var(--gold-soft);
}

.done-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  margin-top: 16px;
  color: var(--cream-2);
  font-size: 0.95rem;
}

.done-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

.ghost-button {
  padding: 12px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.92rem;
  text-decoration: none;
  transition: border-color 140ms ease;
}

.ghost-button:hover {
  border-color: var(--gold-500);
}

/* --- footer ------------------------------------------------------------- */

.page-foot {
  margin-top: 28px;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
}

.page-foot a {
  color: var(--gold-soft);
  text-decoration: none;
}
