/* =========================================================
   FLORIAN LEBURTON — RESERVATION PAGE
   Luxury editorial booking form with availability calendar.
   ========================================================= */

@import url('./tokens.css');

body.res-page {
  background: var(--fl-paper);
  color: var(--fl-ink);
  overflow-x: hidden;
  font-family: var(--font-body);
  line-height: 1.55;
}

/* Force the HTML [hidden] attribute to win over our `display: inline-flex` rules */
[hidden] { display: none !important; }

/* ---------------------------------------------------------
   TOP CHROME
   --------------------------------------------------------- */
.res-chrome {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) clamp(1.25rem, 3vw, 2.5rem);
  background: linear-gradient(180deg, rgba(246,241,229,0.92) 0%, rgba(246,241,229,0.4) 60%, rgba(246,241,229,0) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: none;
}
.res-chrome > * { pointer-events: auto; }
.res-chrome__back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fl-ink);
  text-decoration: none;
  padding: 0.7rem 1.1rem;
  background: rgba(246,241,229,0.7);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(11,10,8,0.10);
  transition: background var(--dur-fast) var(--ease-cinematic),
              transform var(--dur-fast) var(--ease-cinematic),
              border-color var(--dur-fast) var(--ease-cinematic);
}
.res-chrome__back:hover { background: var(--fl-paper); transform: translateX(-3px); border-color: rgba(154,126,72,0.55); }
.res-chrome__back svg { width: 16px; height: 16px; }
.res-chrome__brand {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: var(--fs-sm);
  opacity: 0.7;
}
@media (max-width: 600px) {
  .res-chrome__brand { display: none; }
}

/* ---------------------------------------------------------
   HERO
   --------------------------------------------------------- */
.res-hero {
  position: relative;
  padding:
    clamp(7rem, 14vw, 11rem) clamp(1.5rem, 5vw, 4rem) clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(ellipse at 80% 0%, rgba(232,216,197,0.55) 0%, transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(200,169,106,0.18) 0%, transparent 50%),
    var(--fl-paper);
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.res-hero::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.7'/%3E%3C/svg%3E");
  opacity: 0.04;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.res-hero__inner {
  position: relative; z-index: 1;
  max-width: 740px;
  margin: 0 auto;
  animation: resFadeUp 1000ms var(--ease-cinematic) 0.2s both;
}
@keyframes resFadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }

.res-hero__kicker {
  display: inline-flex; align-items: center; gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: var(--space-5);
}
.res-hero__kicker::before, .res-hero__kicker::after {
  content: '';
  width: 28px; height: 1px;
  background: var(--fl-gold);
  opacity: 0.7;
}

.res-hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 0 0 var(--space-5);
}
.res-hero__title__line { display: block; }
.res-hero__title__script {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--fl-gold-deep);
  font-size: clamp(3.2rem, 7.5vw, 6rem);
  line-height: 0.95;
  margin-top: 10px;
}

.res-hero__lead {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 1.15vw, 1.15rem);
  line-height: 1.65;
  max-width: 50ch;
  margin: 0 auto var(--space-6);
  opacity: 0.78;
}

.res-hero__meta {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.55;
}
.res-hero__meta__dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--fl-gold);
  margin-right: 6px;
  vertical-align: middle;
  box-shadow: 0 0 0 0 rgba(200,169,106,0.55);
  animation: pulse 2.6s var(--ease-cinematic) infinite;
}

/* ---------------------------------------------------------
   MAIN
   --------------------------------------------------------- */
.res-main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem) clamp(4rem, 8vw, 7rem);
}

.res-flash {
  display: flex; gap: 14px;
  margin-bottom: var(--space-6);
  padding: 1rem 1.4rem;
  background: rgba(122,42,26,0.05);
  border-left: 3px solid var(--fl-rust);
  border-radius: 3px;
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
}
.res-flash svg { width: 22px; height: 22px; color: var(--fl-rust); flex-shrink: 0; margin-top: 1px; }
.res-flash strong { color: var(--fl-rust); display: block; margin-bottom: 4px; }
.res-flash ul { margin: 0; padding-left: 1.2em; opacity: 0.85; }

.res-honeypot {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}

/* ---------------------------------------------------------
   WIZARD CONTAINER
   --------------------------------------------------------- */
.res-wizard { scroll-margin-top: 90px; }

/* ---- Progress bar (01 · 02 · 03 with connecting lines) ---- */
.res-wizard__progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(var(--space-3), 2vw, var(--space-5));
  max-width: 640px;
  margin: clamp(var(--space-6), 4vw, var(--space-8)) auto 0;
  padding: clamp(var(--space-5), 3vw, var(--space-7)) 0;
  border-bottom: 1px solid rgba(11,10,8,0.08);
}
.res-wizard__step-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
  opacity: 0.4;
  transition: opacity 380ms var(--ease-cinematic);
}
.res-wizard__step-btn[disabled] { cursor: default; }
.res-wizard__step-btn.is-completed { opacity: 0.85; }
.res-wizard__step-btn.is-active    { opacity: 1; }
.res-wizard__step-btn:not([disabled]):hover { opacity: 0.85; }

.res-wizard__step-btn__num {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(11,10,8,0.25);
  background: transparent;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--fl-ink);
  transition: background 380ms var(--ease-cinematic),
              color 380ms var(--ease-cinematic),
              border-color 380ms var(--ease-cinematic),
              transform 380ms var(--ease-cinematic);
}
.res-wizard__step-btn.is-active .res-wizard__step-btn__num {
  background: var(--fl-gold);
  border-color: var(--fl-gold);
  color: var(--fl-ink);
  transform: scale(1.08);
  box-shadow: 0 0 0 4px rgba(200,169,106,0.18);
}
.res-wizard__step-btn.is-completed .res-wizard__step-btn__num {
  background: var(--fl-gold-deep);
  border-color: var(--fl-gold-deep);
  color: var(--fl-paper);
}
.res-wizard__step-btn__lbl {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
}

.res-wizard__line {
  flex: 1;
  height: 1px;
  max-width: 120px;
  background: rgba(11,10,8,0.15);
  position: relative;
  overflow: hidden;
  margin-bottom: 28px; /* aligned with the dot row */
}
.res-wizard__line__fill {
  position: absolute;
  inset: 0;
  background: var(--fl-gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 700ms var(--ease-cinematic);
}
.res-wizard__line__fill.is-filled { transform: scaleX(1); }

@media (max-width: 520px) {
  .res-wizard__step-btn__lbl { display: none; }
  .res-wizard__line { max-width: 70px; }
}

/* ---- Step panels (only one visible) ---- */
.res-wizard__panel {
  position: relative;
  min-height: 200px;
  margin-top: clamp(var(--space-6), 4vw, var(--space-8));
}
.res-step {
  display: none;
}
.res-step.is-active {
  display: block;
  animation: resStepIn 600ms var(--ease-cinematic) both;
}
.res-step.is-active.from-prev {
  animation: resStepInLeft 600ms var(--ease-cinematic) both;
}
@keyframes resStepIn {
  from { opacity: 0; transform: translateX(36px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes resStepInLeft {
  from { opacity: 0; transform: translateX(-36px); }
  to   { opacity: 1; transform: translateX(0); }
}

.res-step__head {
  text-align: center;
  margin-bottom: clamp(var(--space-5), 3vw, var(--space-7));
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
}
.res-step__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.res-step__title em { font-style: italic; color: var(--fl-gold-deep); }
.res-step__hint {
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  opacity: 0.65;
  margin: var(--space-3) 0 0;
  line-height: 1.6;
}

/* ---- Wizard footer — recap above, submit OR hint below ---- */
.res-wizard__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  margin-top: clamp(var(--space-8), 5vw, var(--space-10));
  padding-top: clamp(var(--space-5), 3vw, var(--space-6));
  border-top: 1px solid rgba(11,10,8,0.08);
}

.res-wizard__recap {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(0.95rem, 1.15vw, 1.1rem);
  opacity: 0.7;
  text-align: center;
  line-height: 1.4;
}
.res-wizard__recap em { font-style: italic; color: var(--fl-gold-deep); }

.res-wizard__nav__submit {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 1.15rem 2rem;
  background: var(--fl-ink);
  color: var(--fl-paper);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  border: 0;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-cinematic),
              transform var(--dur-fast) var(--ease-cinematic);
}
.res-wizard__nav__submit svg { width: 16px; height: 16px; transition: transform var(--dur-base) var(--ease-cinematic); }
.res-wizard__nav__submit:hover { background: var(--fl-gold-deep); transform: translateY(-2px); }
.res-wizard__nav__submit:hover svg { transform: translateX(5px); }

.res-wizard__nav__hint {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: var(--fs-sm);
  opacity: 0.6;
  padding: 0.9rem 0;
}
.res-wizard__nav__hint::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--fl-gold);
  opacity: 0.6;
  animation: pulse 2.6s var(--ease-cinematic) infinite;
}

.res-submit__legal {
  text-align: center;
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  max-width: 50ch;
  margin: var(--space-3) auto 0;
  opacity: 0.55;
  line-height: 1.6;
}

/* ---------------------------------------------------------
   CALENDAR
   --------------------------------------------------------- */
.res-cal-wrap {
  background: var(--fl-offwhite);
  border: 1px solid rgba(11,10,8,0.08);
  border-radius: 4px;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  position: relative;
  box-shadow: 0 20px 60px rgba(11,10,8,0.06);
}
.res-cal-wrap.is-shake { animation: resShake 600ms var(--ease-cinematic); }
@keyframes resShake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(3px); }
  30%, 70% { transform: translateX(-5px); }
  40%, 60% { transform: translateX(5px); }
  50%      { transform: translateX(-3px); }
}

.res-cal-nav {
  display: flex; align-items: center; gap: var(--space-3);
  margin-bottom: var(--space-5);
}
.res-cal-nav__btn {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(11,10,8,0.15);
  color: var(--fl-ink);
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease-cinematic),
              border-color var(--dur-fast) var(--ease-cinematic),
              color var(--dur-fast) var(--ease-cinematic);
}
.res-cal-nav__btn:hover {
  background: var(--fl-ink);
  border-color: var(--fl-ink);
  color: var(--fl-paper);
}
.res-cal-nav__btn.is-disabled {
  opacity: 0.25;
  pointer-events: none;
}
.res-cal-nav__btn svg { width: 18px; height: 18px; }
.res-cal-nav__title {
  flex: 1;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  letter-spacing: -0.015em;
  margin: 0;
}
.res-cal-nav__title em { font-style: italic; color: var(--fl-gold-deep); }

.res-cal {
  border: 1px solid rgba(11,10,8,0.08);
  border-radius: 4px;
  overflow: hidden;
  background: var(--fl-paper);
}
.res-cal__head {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: rgba(11,10,8,0.04);
  border-bottom: 1px solid rgba(11,10,8,0.08);
}
.res-cal__head__cell {
  padding: 0.7rem 0.4rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.55;
}

.res-cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.res-cal__cell {
  position: relative;
  min-height: clamp(80px, 11vw, 120px);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-right: 1px solid rgba(11,10,8,0.06);
  border-bottom: 1px solid rgba(11,10,8,0.06);
  transition: background var(--dur-fast) var(--ease-cinematic),
              border-color var(--dur-fast) var(--ease-cinematic);
  background: var(--fl-paper);
  color: inherit;
  font: inherit;
  text-align: left;
}
.res-cal__cell:nth-child(7n) { border-right: 0; }
.res-cal__cell:nth-last-child(-n+7) { border-bottom: 0; }

.res-cal__cell--empty {
  background: rgba(11,10,8,0.02);
  cursor: default;
  pointer-events: none;
}
.res-cal__cell__num {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1;
  color: var(--fl-ink);
}
.res-cal__cell__today {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fl-gold-deep);
  position: absolute;
  top: 10px; right: 10px;
}
.res-cal__cell__status {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fl-rust);
  opacity: 0.7;
  margin-top: auto;
}

/* ----- Past dates ----- */
.res-cal__cell.is-past {
  background: rgba(11,10,8,0.025);
  opacity: 0.4;
  cursor: not-allowed;
}
.res-cal__cell.is-past .res-cal__cell__num {
  text-decoration: line-through;
  text-decoration-color: rgba(11,10,8,0.3);
}

/* ----- Blocked / booked dates ----- */
.res-cal__cell.is-blocked {
  background:
    repeating-linear-gradient(45deg,
      transparent 0, transparent 8px,
      rgba(122,42,26,0.05) 8px, rgba(122,42,26,0.05) 9px),
    rgba(122,42,26,0.06);
  cursor: not-allowed;
}
.res-cal__cell.is-blocked .res-cal__cell__num {
  color: var(--fl-rust);
  text-decoration: line-through;
  text-decoration-color: rgba(122,42,26,0.45);
}

/* ----- Available dates — the luxury hover ----- */
.res-cal__cell.is-available {
  cursor: pointer;
  border: 1px solid rgba(11,10,8,0.06);
  position: relative;
}
.res-cal__cell.is-available::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: border-color 280ms var(--ease-cinematic),
              background 280ms var(--ease-cinematic);
  pointer-events: none;
}
.res-cal__cell.is-available:hover {
  background: rgba(200,169,106,0.06);
}
.res-cal__cell.is-available:hover::before {
  border-color: rgba(200,169,106,0.55);
}
.res-cal__cell.is-available:hover .res-cal__cell__num {
  color: var(--fl-gold-deep);
}

/* ----- Today highlight ----- */
.res-cal__cell.is-today {
  box-shadow: inset 0 2px 0 var(--fl-gold);
}
.res-cal__cell.is-today .res-cal__cell__num {
  color: var(--fl-gold-deep);
}

/* ----- Selected — filled gold ----- */
.res-cal__cell.is-selected {
  background: var(--fl-gold) !important;
  box-shadow: inset 0 0 0 2px var(--fl-gold-deep);
}
.res-cal__cell.is-selected::before { border-color: transparent !important; }
.res-cal__cell.is-selected .res-cal__cell__num,
.res-cal__cell.is-selected .res-cal__cell__today {
  color: var(--fl-ink);
}

.res-cal__legend {
  display: flex; align-items: center; gap: clamp(var(--space-4), 2vw, var(--space-6));
  flex-wrap: wrap;
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(11,10,8,0.06);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.65;
}
.res-cal__legend span {
  display: inline-flex; align-items: center; gap: 8px;
}
.res-cal__legend__dot {
  display: inline-block;
  width: 12px; height: 12px;
  border-radius: 50%;
}
.res-cal__legend__dot--avail   { background: var(--fl-gold); }
.res-cal__legend__dot--blocked { background: var(--fl-rust); opacity: 0.6; }
.res-cal__legend__dot--past    { background: rgba(11,10,8,0.25); }

/* Selected date display bar (below calendar) */
.res-cal__selected {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-top: var(--space-5);
  padding: var(--space-4) var(--space-5);
  background:
    radial-gradient(ellipse at 0% 50%, rgba(200,169,106,0.15) 0%, transparent 60%),
    var(--fl-paper);
  border: 1px solid rgba(200,169,106,0.45);
  border-radius: 3px;
}
.res-cal__selected__lbl {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fl-gold-deep);
}
.res-cal__selected__date {
  flex: 1;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  letter-spacing: -0.01em;
}
.res-cal__selected__clear {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: transparent;
  border: 0;
  color: var(--fl-ink);
  opacity: 0.6;
  cursor: pointer;
  padding: 4px 0;
  position: relative;
  transition: opacity var(--dur-fast) var(--ease-cinematic);
}
.res-cal__selected__clear:hover { opacity: 1; }
.res-cal__selected__clear::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

/* ---------------------------------------------------------
   TYPE PICKER
   --------------------------------------------------------- */
.res-types {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(0.8rem, 1.4vw, 1.2rem);
}
.res-type {
  cursor: pointer;
  display: block;
}
.res-type input {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}
.res-type__inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: clamp(1.2rem, 2vw, 1.6rem);
  background: var(--fl-offwhite);
  border: 1px solid rgba(11,10,8,0.10);
  border-radius: 4px;
  transition: background var(--dur-fast) var(--ease-cinematic),
              border-color var(--dur-fast) var(--ease-cinematic),
              transform var(--dur-fast) var(--ease-cinematic);
  height: 100%;
}
.res-type:hover .res-type__inner {
  border-color: rgba(154,126,72,0.55);
  transform: translateY(-2px);
}
.res-type.is-checked .res-type__inner,
.res-type input:checked + .res-type__inner {
  background:
    radial-gradient(ellipse at 0% 0%, rgba(200,169,106,0.18) 0%, transparent 60%),
    var(--fl-offwhite);
  border-color: var(--fl-gold-deep);
  box-shadow: 0 0 0 1px var(--fl-gold-deep);
}
.res-type__title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  color: var(--fl-ink);
}
.res-type:hover .res-type__title,
.res-type.is-checked .res-type__title,
.res-type input:checked + .res-type__inner .res-type__title { color: var(--fl-gold-deep); }
.res-type__desc {
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  opacity: 0.7;
  line-height: 1.5;
}

/* ---------------------------------------------------------
   CONTACT FIELDS
   --------------------------------------------------------- */
.res-fields {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-4) var(--space-5);
}
.res-field { grid-column: span 6; display: flex; flex-direction: column; gap: 8px; }
.res-field--lg   { grid-column: span 12; }
.res-field--full { grid-column: span 12; }
@media (max-width: 720px) {
  .res-field, .res-field--lg { grid-column: span 12; }
}

.res-field__lbl {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.65;
}
.res-field__hint {
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  opacity: 0.65;
}
.res-field input,
.res-field textarea {
  width: 100%;
  padding: 1rem 1.1rem;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  background: var(--fl-offwhite);
  border: 1px solid rgba(11,10,8,0.14);
  color: var(--fl-ink);
  border-radius: 3px;
  transition: border-color var(--dur-fast) var(--ease-cinematic),
              background var(--dur-fast) var(--ease-cinematic),
              box-shadow var(--dur-fast) var(--ease-cinematic);
}
.res-field textarea { resize: vertical; min-height: 110px; line-height: 1.6; }
.res-field input:focus,
.res-field textarea:focus {
  outline: none;
  border-color: var(--fl-gold-deep);
  background: var(--fl-paper);
  box-shadow: 0 0 0 4px rgba(200,169,106,0.16);
}

/* ---------------------------------------------------------
   CALENDAR GRID — smooth fade on month change
   --------------------------------------------------------- */
.res-cal__grid {
  transition: opacity 200ms var(--ease-cinematic),
              transform 200ms var(--ease-cinematic);
}

/* ---------------------------------------------------------
   TYPES — shake on validation error
   --------------------------------------------------------- */
.res-types.is-shake { animation: resShake 600ms var(--ease-cinematic); }

/* ---------------------------------------------------------
   FOOTER
   --------------------------------------------------------- */
.res-foot {
  margin-top: clamp(var(--space-10), 6vw, var(--space-12));
}
.res-foot__rule {
  height: 1px;
  background: rgba(11,10,8,0.10);
  margin-bottom: var(--space-5);
}
.res-foot__row {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.6;
}
.res-foot__row a {
  color: var(--fl-ink);
  text-decoration: none;
  position: relative;
  transition: color var(--dur-fast) var(--ease-cinematic);
}
.res-foot__row a:hover { color: var(--fl-gold-deep); }
.res-foot__row strong { font-weight: 700; }

/* ---------------------------------------------------------
   SUCCESS STATE
   --------------------------------------------------------- */
.res-success {
  min-height: 100vh; min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(4rem, 10vw, 8rem) clamp(1.5rem, 5vw, 3rem);
  background:
    radial-gradient(ellipse at 50% 20%, rgba(200,169,106,0.25) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 100%, rgba(154,126,72,0.15) 0%, transparent 60%),
    var(--fl-paper);
}
.res-success__ornament {
  width: 56px; height: 56px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(154,126,72,0.4);
  color: var(--fl-gold-deep);
  margin-bottom: var(--space-5);
  animation: resSuccessSpin 14s linear infinite;
  background: rgba(246,241,229,0.5);
}
@keyframes resSuccessSpin { to { transform: rotate(360deg); } }
.res-success__ornament svg { width: 28px; height: 28px; }

.res-success__kicker {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--fl-gold-deep);
  margin-bottom: var(--space-4);
}
.res-success__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 0 0 var(--space-5);
}
.res-success__title em { font-style: italic; color: var(--fl-gold-deep); }
.res-success__lead {
  max-width: 56ch;
  font-family: var(--font-sans);
  font-size: clamp(1rem, 1.15vw, 1.15rem);
  line-height: 1.7;
  opacity: 0.8;
  margin: 0 0 var(--space-6);
}
.res-success__lead strong { color: var(--fl-gold-deep); font-weight: 600; }
.res-success__rule {
  width: 60px; height: 1px;
  background: var(--fl-gold);
  margin: 0 0 var(--space-4);
  opacity: 0.7;
}
.res-success__hint {
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  opacity: 0.6;
  margin: 0 0 var(--space-8);
}
.res-success__hint a {
  color: var(--fl-ink);
  text-decoration: underline;
  text-decoration-color: var(--fl-gold);
  text-underline-offset: 3px;
}
.res-success__back {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fl-ink);
  text-decoration: none;
  padding: 0.9rem 1.6rem;
  border: 1px solid rgba(11,10,8,0.2);
  border-radius: var(--radius-pill);
  transition: background var(--dur-fast) var(--ease-cinematic),
              color var(--dur-fast) var(--ease-cinematic),
              border-color var(--dur-fast) var(--ease-cinematic);
}
.res-success__back:hover {
  background: var(--fl-ink);
  color: var(--fl-paper);
}

/* ---------------------------------------------------------
   RESPONSIVE — phone calendar
   --------------------------------------------------------- */
@media (max-width: 600px) {
  .res-cal__cell { min-height: 56px; padding: 6px 7px; }
  .res-cal__cell__num { font-size: 1rem; }
  .res-cal__cell__status { font-size: 8px; letter-spacing: 0.14em; }
  .res-cal__cell__today { font-size: 7px; top: 5px; right: 6px; }
  .res-cal__head__cell { font-size: 9px; padding: 0.5rem 0.2rem; letter-spacing: 0.14em; }
  .res-cal__selected { flex-direction: column; align-items: flex-start; gap: var(--space-2); }
}
