/* visit.css — "Plan your visit": name, a day, a time → WhatsApp. A cream card on the
   paper, wine ink, gold keyline; days and time slots are radio chips. */

.visit {
  padding: 84px var(--gutter) 90px;
  display: grid;
  /* minmax(0,…): the nowrap day row must scroll inside the card, never widen the page */
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
}

.vform {
  width: min(100%, 420px);
  min-width: 0;
  padding: 34px 22px 30px;
  background: rgba(251, 246, 238, 0.9);
  box-shadow:
    0 30px 50px -34px rgba(79, 38, 41, 0.5),
    inset 0 0 0 7px rgba(251, 246, 238, 0.95),
    inset 0 0 0 8px rgba(201, 154, 62, 0.6);
  text-align: center;
  color: var(--ink);
}
.vform__kicker { color: var(--wine); }
.vform__title {
  margin: 10px 0 8px;
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(30px, 8vw, 38px);
  line-height: 1.05;
  color: var(--wine);
}
.vform__text { font-size: 17px; color: var(--ink-soft); margin-bottom: 26px; }

.vfield {
  min-width: 0;
  margin: 0 0 24px;
  padding: 0;
  border: 0;
  text-align: left;
}
.vfield__label {
  display: block;
  padding: 0;
  margin-bottom: 10px;
  font-family: var(--f-ui);
  font-size: 10.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--wine);
}
.vfield__input {
  width: 100%;
  min-height: 48px;
  padding: 8px 2px;
  border: 0;
  border-bottom: 1px solid rgba(138, 34, 50, 0.35);
  border-radius: 0;
  background: transparent;
  font-family: var(--f-display);
  font-size: 22px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.25s;
  -webkit-appearance: none;
  appearance: none;
}
.vfield__input::placeholder { color: rgba(122, 78, 79, 0.45); font-style: italic; }
.vfield__input:focus { border-bottom-color: var(--gold-2); box-shadow: 0 1px 0 var(--gold-2); }
.vfield__input--date { margin-top: 12px; font-size: 19px; }
.vfield.is-invalid .vfield__label { color: #b3261e; }
.vfield.is-invalid .vfield__input { border-bottom-color: #b3261e; }

/* ---- chips: radio inputs styled as pills ----------------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips--days {
  flex-wrap: nowrap;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  margin: 0 -22px;
  padding: 12px 22px 8px;     /* room for the "Opening" tag, which sits above its chip */
  scroll-padding-inline: 22px;
  scrollbar-width: none;
}
.chips--days::-webkit-scrollbar { display: none; }

.chip { position: relative; flex: none; scroll-snap-align: start; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip__face {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(138, 34, 50, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  font-family: var(--f-ui);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--ink);
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--ease-swing);
  pointer-events: none;
}
.chip--day .chip__face {
  width: 64px;
  min-height: 84px;
  padding: 8px 0;
  border-radius: 34px;
  gap: 0;
  line-height: 1.05;
}
.chip__dow { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft); }
.chip__d { font-family: var(--f-display); font-size: 28px; font-weight: 600; color: var(--wine); }
.chip__m { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft); }
.chip__tag {
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  padding: 1px 7px;
  border-radius: 999px;
  background: linear-gradient(100deg, var(--gold-1), var(--gold-3) 50%, var(--gold-2));
  font-family: var(--f-ui);
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #3a2410;
  white-space: nowrap;
  pointer-events: none;
}
.chip--other .chip__face { width: 64px; min-height: 84px; border-style: dashed; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; text-align: center; line-height: 1.3; padding: 0 6px; }

.chip input:checked + .chip__face {
  background: var(--wine);
  border-color: var(--wine);
  color: var(--cream);
  transform: translateY(-2px);
  box-shadow: 0 10px 18px -10px rgba(138, 34, 50, 0.8), inset 0 0 0 1px rgba(235, 203, 132, 0.6);
}
.chip input:checked + .chip__face .chip__dow,
.chip input:checked + .chip__face .chip__m,
.chip input:checked + .chip__face .chip__d { color: var(--cream); }
.chip input:focus-visible + .chip__face { outline: 2px solid var(--gold-2); outline-offset: 3px; }
@media (hover: hover) {
  .chip:hover .chip__face { border-color: var(--gold-2); }
}

.vform__error {
  min-height: 0;
  margin: -4px 0 14px;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 16px;
  color: #b3261e;
}
.vform__error:empty { display: none; }
.vform__send { width: 100%; }
.vform__send svg { width: 18px; height: 18px; fill: currentColor; }
.vform.is-sent .vform__send { animation: pop 0.7s var(--ease-swing); }

/* wide screens: every day visible, no sideways scroll for a mouse */
@media (min-width: 700px) {
  .vform { width: min(100%, 640px); padding: 40px 40px 36px; }
  .chips--days { flex-wrap: wrap; overflow: visible; margin: 0; padding: 12px 0 0; }
}
