:root {
  --bg: #f5f2ec;
  --ink: #1b1a17;
  --muted: #8a857b;
  --line: #dcd6cb;
  --card: #fbfaf7;
  --accent: #1b1a17;
  --error: #b2452c;
  --radius: 14px;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 640px;
  margin: 0 auto;
  padding: 72px 24px 48px;
}

/* Hero */
.hero {
  text-align: center;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(26px, 8vw, 58px);
  line-height: 1;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.lead {
  margin: 20px auto 0;
  max-width: 420px;
  color: #4a463f;
}

.dates {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding: 10px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
}

.sep { color: var(--muted); }

/* Blocks */
.block {
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}
.block h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.2;
}

.hint {
  margin: 6px 0 16px;
  font-size: 14px;
  color: var(--muted);
}

/* Fields */
.field + .field { margin-top: 18px; }

.field > label:first-child {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
}

.field--short input { max-width: 160px; }

.phone-input {
  display: flex;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color .2s, box-shadow .2s;
}

.phone-input:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(27, 26, 23, .06);
}

.prefix {
  padding: 0 10px 0 14px;
  font-size: 15px;
  color: var(--ink);
  border-right: 1px solid var(--line);
  line-height: 1.2;
  user-select: none;
}

.phone-input input[type="tel"] {
  border: 0;
  background: transparent;
  padding-left: 10px;
  letter-spacing: .02em;
}

.phone-input input[type="tel"]:focus { box-shadow: none; }

.field-error {
  display: none;
  margin-top: 6px;
  font-size: 13px;
  color: var(--error);
}

.field.invalid .field-error { display: block; }
.field.invalid .phone-input,
.field.invalid > input { border-color: var(--error); }

.collapsible {
  max-height: 120px;
  transition: max-height .3s ease, opacity .25s ease, margin-top .3s ease, visibility .3s;
}

.collapsible.collapsed {
  max-height: 0;
  margin-top: 0 !important;
  opacity: 0;
  overflow: hidden;
  visibility: hidden;
}

input[type="text"],
input[type="tel"],
input[type="number"] {
  width: 100%;
  padding: 10px 14px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  transition: border-color .2s, box-shadow .2s, opacity .2s;
  -moz-appearance: textfield;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

input::placeholder { color: #b5afa4; }

input:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(27, 26, 23, .06);
}

input:disabled { opacity: .55; }

.invalid input[type="text"],
.invalid input[type="tel"],
.invalid input[type="number"],
input.invalid { border-color: var(--error); }

/* Options */
.options {
  display: grid;
  gap: 6px;
}

.option {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 9px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  font-size: 14.5px;
  line-height: 1.4;
  transition: border-color .2s, background .2s;
  -webkit-tap-highlight-color: transparent;
}

.option:hover { border-color: #bdb6a9; }

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

.box {
  flex: none;
  position: relative;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border: 1.5px solid #b5afa4;
  border-radius: 5px;
  transition: all .2s;
}

.box--round { border-radius: 50%; }

.option input:checked ~ .box {
  background: var(--ink);
  border-color: var(--ink);
}

.option input:checked ~ .box::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1.5px;
  width: 5px;
  height: 9px;
  border: solid var(--bg);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

.option input:checked ~ .box--round::after {
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  border: 0;
  border-radius: 50%;
  background: var(--bg);
  transform: translate(-50%, -50%);
}

.option:has(input:checked) {
  border-color: var(--ink);
  background: #fff;
}

.option input:focus-visible ~ .box {
  box-shadow: 0 0 0 3px rgba(27, 26, 23, .15);
}

.option--inline {
  margin-top: 10px;
  padding: 6px 0;
  background: none;
  border: 0;
  font-size: 14px;
  color: #4a463f;
}

.option--inline:hover,
.option--inline:has(input:checked) { background: none; }

.other { display: none; }
.other.show { display: block; }

.block.invalid h2,
.block.invalid .hint { color: var(--error); }

.hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
}

/* Submit */
.submit {
  padding-top: 40px;
  text-align: center;
}

.error {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--error);
}

button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 14px 28px;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--bg);
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .2s, opacity .2s;
}

button:hover .arrow { transform: translateX(4px); }
button:active { transform: scale(.99); }
button:disabled { opacity: .6; cursor: wait; }

.arrow { transition: transform .2s; }

/* Success */
.success {
  padding: 96px 0;
  text-align: center;
  animation: fade .5s ease both;
}

.success h2 {
  margin: 24px 0 12px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 44px;
}

.success p {
  max-width: 420px;
  margin: 0 auto;
  color: #4a463f;
}

.check {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1px solid var(--ink);
  border-radius: 50%;
}

.check svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes fade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.footer {
  padding-top: 48px;
  text-align: center;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 480px) {
  .page { padding: 48px 18px 36px; }
  .hero { padding-bottom: 40px; }
  .block { padding: 26px 0; }
  .block h2 { font-size: 23px; }
}
