body {
  background:
    linear-gradient(90deg, transparent 0, transparent calc(50% - 620px), rgba(38, 50, 45, 0.052) calc(50% - 620px), rgba(38, 50, 45, 0.052) calc(50% - 619px), transparent calc(50% - 619px)),
    linear-gradient(90deg, transparent 0, transparent calc(50% + 619px), rgba(38, 50, 45, 0.052) calc(50% + 619px), rgba(38, 50, 45, 0.052) calc(50% + 620px), transparent calc(50% + 620px)),
    var(--paper);
}

.page-texture {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    repeating-linear-gradient(0deg, transparent 0, transparent 7px, rgba(38, 50, 45, 0.022) 8px),
    repeating-linear-gradient(90deg, transparent 0, transparent 13px, rgba(138, 95, 82, 0.014) 14px);
}

.masthead {
  position: relative;
  overflow: hidden;
  color: #f7f5ee;
  background: #26322d;
}

.masthead::before,
.masthead::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(232, 235, 226, 0.12);
  border-radius: 50%;
}

.masthead::before {
  top: -168px;
  left: calc(50% - 640px);
}

.masthead::after {
  right: calc(50% - 660px);
  bottom: -196px;
}

.masthead-inner {
  position: relative;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 0;
}

.masthead-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(246, 244, 237, 0.18);
  color: rgba(246, 244, 237, 0.62);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.masthead-main {
  display: flex;
  min-height: 390px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 54px 0 58px;
  text-align: center;
}

.wedding-mark {
  width: 70px;
  height: 70px;
  margin-bottom: 20px;
  color: rgba(246, 244, 237, 0.76);
}

.kicker {
  margin: 0 0 12px;
  color: #d9ded5;
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
}

.masthead h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(40px, 6.2vw, 72px);
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.2;
}

.masthead-copy {
  margin: 18px 0 0;
  color: rgba(246, 244, 237, 0.7);
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.08em;
}

.event-strip {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  border-top: 1px solid rgba(246, 244, 237, 0.18);
  border-bottom: 1px solid rgba(246, 244, 237, 0.18);
}

.event-strip > div {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 16px 20px;
}

.event-strip > div + div {
  border-left: 1px solid rgba(246, 244, 237, 0.18);
}

.event-strip span {
  color: rgba(246, 244, 237, 0.5);
  font-size: 11px;
  letter-spacing: 0.16em;
}

.event-strip strong {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.05em;
}

.section-shell {
  position: relative;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(460px, 1.2fr);
  gap: 90px;
  align-items: center;
  padding: 104px 0 92px;
}

.section-index {
  color: var(--clay);
  font-family: Georgia, serif;
  font-size: 11px;
  letter-spacing: 0.18em;
}

.intro-copy {
  position: relative;
  padding-left: 24px;
  border-left: 1px solid var(--line-strong);
}

.eyebrow {
  margin: 0 0 15px;
  color: var(--sage);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.intro h2,
.form-heading h2,
.confirmation-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(31px, 4vw, 44px);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.35;
}

.intro-copy > p:last-child,
.form-heading > p,
.confirmation-heading > p {
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.9;
}

.form-heading .hotel-note {
  margin-top: 14px;
  padding: 13px 15px;
  color: var(--ink-soft);
  background: var(--sage-pale);
  border-left: 2px solid var(--sage);
  font-size: 13px;
  line-height: 1.75;
}

.stay-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}

.stay-fact {
  min-height: 132px;
  padding: 25px 26px;
  background: rgba(251, 250, 247, 0.52);
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.fact-label {
  display: block;
  margin-bottom: 11px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.stay-fact strong {
  display: block;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
}

.stay-fact small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.state-view {
  max-width: 640px;
  margin-top: 30px;
  margin-bottom: 120px;
  padding: 56px 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  text-align: center;
}

.state-view p {
  margin: 18px 0;
}

.state-view .button {
  margin-top: 4px;
}

.loading-line {
  width: 72px;
  height: 1px;
  margin: 0 auto;
  overflow: hidden;
  background: var(--line);
}

.loading-line::after {
  content: "";
  display: block;
  width: 28px;
  height: 1px;
  background: var(--clay);
  animation: loading-slide 1.4s ease-in-out infinite;
}

@keyframes loading-slide {
  0% {
    transform: translateX(-30px);
  }
  100% {
    transform: translateX(74px);
  }
}

.registration-layout,
.confirmation-layout {
  display: grid;
  grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.28fr);
  gap: 82px;
  align-items: start;
  padding: 18px 0 112px;
}

.form-heading,
.confirmation-heading {
  padding-top: 16px;
}

.form-heading .section-index,
.confirmation-heading .section-index {
  margin-bottom: 36px;
}

.deadline-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--clay);
  font-size: 13px;
}

.form-panel,
.confirmation-panel {
  padding: 34px;
  background: rgba(251, 250, 247, 0.88);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

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

.field-grid + .field-grid,
.field-grid + .field,
.field + .field-grid,
.field + .field {
  margin-top: 22px;
}

.compact-grid {
  grid-template-columns: 1fr 0.82fr;
  align-items: end;
}

.field {
  display: block;
}

.field > span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.field em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 400;
}

.field input,
.field textarea,
.field select {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--surface-strong);
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  outline: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

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

.field input::placeholder,
.field textarea::placeholder {
  color: #9aa39e;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--sage);
  box-shadow: inset 0 -2px 0 var(--sage);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--danger);
}

.room-estimate {
  display: flex;
  min-height: 103px;
  flex-direction: column;
  justify-content: center;
  padding: 14px 17px;
  background: var(--sage-pale);
  border-left: 2px solid var(--sage);
}

.room-estimate span,
.room-estimate small {
  color: var(--ink-soft);
  font-size: 11px;
}

.room-estimate strong {
  margin: 2px 0;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 500;
}

.form-hint {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.notice {
  padding: 12px 14px;
  border-left: 2px solid;
  font-size: 13px;
  line-height: 1.7;
}

.notice + form {
  margin-top: 22px;
}

.notice-warning {
  color: #725a31;
  background: #f5efe1;
  border-color: #b99352;
}

.notice-error {
  margin-top: 20px;
  color: var(--danger);
  background: #faefec;
  border-color: var(--danger);
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.form-actions p {
  max-width: 330px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.confirmation-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.status-badge {
  padding: 5px 9px;
  color: var(--success);
  background: #e9f0e9;
  border: 1px solid #cad9cb;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.status-badge.is-cancelled {
  color: var(--danger);
  background: var(--clay-pale);
  border-color: #dfc6bf;
}

.confirmation-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 6px 0 0;
}

.confirmation-list > div {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.confirmation-list > div:nth-child(odd):not(.summary-wide) {
  padding-right: 24px;
}

.confirmation-list > div:nth-child(even) {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.confirmation-list .summary-wide {
  grid-column: 1 / -1;
  padding-right: 0;
  border-left: 0;
}

.confirmation-list dt {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
}

.confirmation-list dd {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.confirmation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.private-note {
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.page-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 46px 24px 54px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 13px;
}

.page-footer p {
  margin: 0;
  color: var(--ink-soft);
  letter-spacing: 0.08em;
}

.footer-line {
  width: 48px;
  height: 1px;
  background: var(--line-strong);
}

@media (max-width: 900px) {
  .intro {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .registration-layout,
  .confirmation-layout {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .form-heading,
  .confirmation-heading {
    max-width: 640px;
  }
}

@media (max-width: 640px) {
  .masthead-inner,
  .section-shell {
    width: min(100% - 32px, 1120px);
  }

  .masthead-inner {
    padding-top: 20px;
  }

  .masthead-topline {
    font-size: 8px;
    letter-spacing: 0.12em;
  }

  .masthead-main {
    min-height: 330px;
    padding: 42px 0;
  }

  .wedding-mark {
    width: 58px;
    height: 58px;
    margin-bottom: 16px;
  }

  .kicker {
    font-size: 14px;
  }

  .masthead h1 {
    font-size: clamp(36px, 12vw, 52px);
    letter-spacing: 0.03em;
  }

  .masthead-copy {
    max-width: 280px;
    font-size: 13px;
  }

  .event-strip {
    grid-template-columns: 1fr;
  }

  .event-strip > div {
    min-height: 64px;
    justify-content: space-between;
    padding: 13px 4px;
  }

  .event-strip > div + div {
    border-top: 1px solid rgba(246, 244, 237, 0.14);
    border-left: 0;
  }

  .event-strip strong {
    font-size: 14px;
    text-align: right;
  }

  .intro {
    gap: 38px;
    padding: 72px 0 64px;
  }

  .intro-copy {
    padding-left: 18px;
  }

  .intro-copy > p:last-child,
  .form-heading > p,
  .confirmation-heading > p {
    font-size: 14px;
  }

  .stay-facts {
    grid-template-columns: 1fr;
  }

  .stay-fact {
    display: grid;
    min-height: 0;
    grid-template-columns: 70px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 17px 18px;
  }

  .fact-label,
  .stay-fact strong,
  .stay-fact small {
    margin: 0;
  }

  .stay-fact strong {
    font-size: 17px;
  }

  .stay-fact small {
    font-size: 11px;
    text-align: right;
  }

  .registration-layout,
  .confirmation-layout {
    gap: 30px;
    padding: 2px 0 80px;
  }

  .form-heading .section-index,
  .confirmation-heading .section-index {
    margin-bottom: 24px;
  }

  .form-panel,
  .confirmation-panel {
    padding: 22px 18px;
  }

  .field-grid,
  .compact-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .field-grid + .field-grid,
  .field-grid + .field,
  .field + .field-grid,
  .field + .field {
    margin-top: 20px;
  }

  .field > span {
    margin-bottom: 7px;
  }

  .room-estimate {
    min-height: 82px;
  }

  .form-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .form-actions .button {
    width: 100%;
  }

  .form-actions p {
    max-width: none;
    text-align: center;
  }

  .confirmation-list {
    grid-template-columns: 1fr;
  }

  .confirmation-list > div,
  .confirmation-list > div:nth-child(odd):not(.summary-wide),
  .confirmation-list > div:nth-child(even),
  .confirmation-list .summary-wide {
    grid-column: auto;
    padding: 16px 0;
    border-left: 0;
  }

  .confirmation-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .confirmation-actions .button {
    width: 100%;
    padding-right: 12px;
    padding-left: 12px;
  }

  .confirmation-actions .button-danger {
    grid-column: 1 / -1;
  }

  .page-footer {
    gap: 12px;
    font-size: 12px;
  }

  .footer-line {
    width: 24px;
  }
}
