:root {
  --ink: #551008;
  --ink-soft: rgba(85, 16, 8, .74);
  --cream: #f6efe5;
  --cream-2: #fff8ec;
  --sky: #abd2e1;
  --clay: #a85634;
  --clay-dark: #7c2d1a;
  --line: rgba(85, 16, 8, .16);
  --warning: #fff1c7;
  --warning-line: #bd7328;
  --max: 1040px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--cream);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(171, 210, 225, .94) 0, rgba(246, 239, 229, .94) 430px, var(--cream) 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-underline-offset: 4px;
}

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 18px clamp(18px, 4vw, 54px);
  background: rgba(246, 239, 229, .84);
  border-bottom: 1px solid rgba(85, 16, 8, .08);
  backdrop-filter: blur(18px);
}

.brand-mark,
.nav {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.brand-mark,
.nav a {
  text-decoration: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 13px clamp(14px, 2vw, 28px);
  color: var(--ink-soft);
}

.container {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

.hero {
  padding: clamp(68px, 10vw, 126px) 0 clamp(38px, 6vw, 72px);
  text-align: center;
}

.kicker {
  margin: 0 0 16px;
  color: var(--clay);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .2em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

h1 {
  max-width: 900px;
  margin-inline: auto;
  margin-bottom: 0;
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  line-height: .98;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.7rem, 3.2vw, 2.55rem);
  line-height: 1.08;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.35rem;
}

.intro {
  max-width: 780px;
  margin: 26px auto 0;
  color: var(--ink-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.72;
}

.legal-card,
.calendar-card,
.success-card {
  padding: clamp(26px, 5vw, 58px);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 248, 236, .86);
  box-shadow: 0 26px 76px rgba(85, 16, 8, .12);
}

.legal-section {
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

.legal-section:first-child {
  padding-top: 0;
  border-top: 0;
}

p,
li,
address,
td,
th {
  color: var(--ink-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.06rem;
  line-height: 1.68;
}

p {
  margin: 0 0 14px;
}

address {
  font-style: normal;
}

ul,
ol {
  margin: 0;
  padding-left: 1.35em;
}

li + li {
  margin-top: 7px;
}

.notice,
.pending {
  padding: 18px 20px;
  border-left: 4px solid var(--warning-line);
  border-radius: 4px;
  color: var(--ink);
  background: var(--warning);
}

.notice strong,
.pending strong {
  color: var(--clay-dark);
}

.data-grid {
  display: grid;
  grid-template-columns: minmax(360px, .92fr) minmax(260px, 1.4fr);
  gap: 0 22px;
  margin: 0;
}

.data-grid dt,
.data-grid dd {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.data-grid dt:first-of-type,
.data-grid dd:first-of-type {
  border-top: 0;
}

.data-grid dt {
  color: var(--clay);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.data-grid dd {
  margin: 0;
  color: var(--ink-soft);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.55;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
}

.price-table th,
.price-table td {
  padding: 13px 10px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.price-table th:last-child,
.price-table td:last-child {
  text-align: right;
}

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

.field {
  display: grid;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  color: var(--clay);
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

input,
textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: var(--cream-2);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(168, 86, 52, .38);
  outline-offset: 3px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  color: var(--cream-2);
  background: var(--clay);
  cursor: pointer;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
}

.button:hover {
  background: var(--clay-dark);
}

.button[disabled],
.button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: .52;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.calendar-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.calendar-summary div {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.calendar-summary strong {
  display: block;
  margin-bottom: 6px;
  color: var(--clay);
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.calendar-summary span {
  color: var(--ink-soft);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.5;
}

.calendar-consent {
  text-align: center;
  padding: clamp(28px, 6vw, 60px) 20px;
  border: 1px dashed rgba(85, 16, 8, .24);
  border-radius: 8px;
  background: rgba(171, 210, 225, .18);
}

.calendar-frame {
  width: 100%;
  min-height: 720px;
  border: 0;
  border-radius: 8px;
  background: white;
}

.small {
  font-size: .9rem;
}

.print-form {
  padding: 22px;
  border: 1px solid var(--line);
  background: white;
}

.signature-line {
  min-height: 28px;
  border-bottom: 1px solid currentColor;
}

.footer {
  margin-top: clamp(54px, 8vw, 96px);
  padding: 34px clamp(18px, 4vw, 54px);
  color: var(--ink-soft);
  background: var(--sky);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px 30px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
}

.footer a {
  color: inherit;
}

@media (max-width: 700px) {
  .site-header {
    align-items: flex-start;
  }

  .nav {
    max-width: 240px;
    font-size: .7rem;
  }

  .container {
    width: min(100% - 28px, var(--max));
  }

  .data-grid,
  .form-grid,
  .calendar-summary {
    grid-template-columns: 1fr;
  }

  .data-grid dt {
    padding-bottom: 2px;
    border-top: 1px solid var(--line);
  }

  .data-grid dd {
    padding-top: 2px;
    border-top: 0;
  }

  .field.full {
    grid-column: auto;
  }

  .calendar-frame {
    min-height: 760px;
  }
}

@media print {
  .site-header,
  .hero,
  .footer,
  .online-withdrawal,
  .actions,
  .notice {
    display: none !important;
  }

  body {
    background: white;
  }

  .container {
    width: 100%;
  }

  .legal-card {
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  .legal-section {
    border: 0;
  }
}
