/* The booking postcard: three steps, then a thank-you note. */

.booking-section { padding-left: clamp(16px, 5vw, 72px); padding-right: clamp(16px, 5vw, 72px); }

.booking-section__inner {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 4vw, 48px);
}

.postcard {
  position: relative;
  background: var(--paper);
  border: 1px solid rgba(29, 26, 23, .18);
  box-shadow: 0 30px 60px -30px rgba(29, 26, 23, .35);
  padding: clamp(22px, 4vw, 52px);
}

.postcard__stamp { position: absolute; top: clamp(16px, 3vw, 32px); right: clamp(16px, 3vw, 32px); }

.stamp {
  width: 62px;
  height: 76px;
  border: 2px dotted var(--azulejo);
  background: var(--linen);
  padding: 5px;
  transform: rotate(3deg);
}

.stamp__face {
  width: 100%;
  height: 100%;
  background: var(--azulejo);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.stamp__city { font: 700 7px/1 var(--font-mono); letter-spacing: .14em; color: var(--linen); }

.postcard__content { display: flex; flex-direction: column; gap: clamp(28px, 3vw, 40px); }

/* Step indicator */

.steps { display: flex; flex-wrap: wrap; gap: clamp(12px, 2.4vw, 28px); padding-right: 84px; }

.steps__item {
  display: flex;
  gap: 8px;
  align-items: baseline;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(29, 26, 23, .15);
  color: rgba(29, 26, 23, .4);
  font: 400 12px/1 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.steps__item--done { color: var(--ink); border-bottom-color: var(--ink); }
.steps__item--active { color: var(--ink); border-bottom-color: var(--ember); }

/* Form */

.booking { display: flex; flex-direction: column; gap: clamp(24px, 3vw, 36px); }

.booking__website { display: none; }

.booking__step {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.booking__question {
  float: left; /* lets a <legend> take part in the fieldset's flex gap */
  width: 100%;
  margin: 0;
  padding: 0;
  font: italic 400 clamp(30px, 3.4vw, 44px)/1.05 var(--font-serif);
}

.booking-sent .booking__question { font-size: clamp(32px, 3.6vw, 48px); }

.booking__row { display: flex; flex-wrap: wrap; gap: 24px 40px; }

.booking__group { display: flex; flex-direction: column; gap: 12px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field--date { flex: 1 1 220px; }
.field--wide { flex: 1 1 260px; }

.field__label {
  font: 400 12px/1 var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.field__input {
  width: 100%;
  min-width: 0;
  border: 0;
  border-bottom: 1.5px solid var(--ink);
  border-radius: 0;
  background: transparent;
  padding: 10px 0;
  font: 400 24px/1.2 var(--font-serif);
  outline: none;
}

.field__input:focus { border-bottom-color: var(--ember); }

.field__input::-webkit-calendar-picker-indicator { opacity: .55; cursor: pointer; }

.field__input--select { width: auto; flex: none; font-size: 20px; cursor: pointer; }
.field__input--textarea { resize: vertical; font-size: 22px; line-height: 1.4; }

.field__phone { display: flex; gap: 12px; align-items: stretch; }
.field__phone .field__input:not(.field__input--select) { flex: 1; }

/* Day chips: "qualquer dia serve" first, then the stay's days, ranked 1º/2º/3º
   in tap order; the rest dim once three are ranked. */

.days { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 12px; scrollbar-width: thin; }
.days:empty { display: none; }

.day {
  position: relative;
  flex: none;
  width: 84px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 6px 10px;
  border: 1.5px solid rgba(29, 26, 23, .3);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.day[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.day--any { border-style: dashed; }
.day--any[aria-pressed="true"] { border-style: solid; }
.day--dimmed { opacity: .35; }

.day__weekday { font: 400 11px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.day__number { font: 400 30px/1 var(--font-serif); }
.day__month { font: 400 11px/1 var(--font-mono); text-transform: uppercase; }
.day__rank { position: absolute; top: 4px; right: 4px; padding: 3px 5px; background: var(--ember); color: var(--paper); font: 700 11px/1 var(--font-mono); }

.checkbox {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
  font: 400 15px/1.3 var(--font-mono);
  cursor: pointer;
}

.checkbox__input {
  appearance: none;
  margin: 0;
  width: 18px;
  height: 18px;
  flex: none;
  border: 1.5px solid var(--ink);
  border-radius: 0;
  display: grid;
  place-content: center;
  cursor: pointer;
}

.checkbox__input:checked { background: var(--ink); }
.checkbox__input:checked::after { content: "✓"; color: var(--paper); font-size: 12px; line-height: 1; }
.checkbox__input:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }

/* Package chips: radios dressed as square buttons. */

.chips { display: flex; flex-wrap: wrap; gap: 10px; }

.chip {
  border: 1.5px solid var(--ink);
  padding: 10px 14px;
  font: 400 14px/1 var(--font-mono);
  cursor: pointer;
}

.chip:has(:checked) { background: var(--ink); color: var(--paper); }
.chip:has(:focus-visible) { outline: 2px solid var(--ember); outline-offset: 2px; }

.chip__input { position: absolute; opacity: 0; pointer-events: none; }

.booking__error { font: 400 14px/1.4 var(--font-mono); color: var(--ember-dark); }

.booking__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px dashed rgba(29, 26, 23, .3);
  padding-top: 24px;
}

.booking__reassurance { font: 400 13px/1.4 var(--font-mono); color: var(--ink-muted); }

/* Thank-you note */

.booking-sent { display: flex; flex-direction: column; gap: 20px; padding: 12px 0 8px; max-width: 620px; }

.booking-sent__body { margin: 0; font: 400 19px/1.5 var(--font-serif); color: var(--ink-soft); }

.booking-sent__actions { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.booking-sent__actions .button { padding: 14px 20px; }
