:root {
  --ivory: #f3f3e4;
  --espresso: #25211d;
  --butter: #f0e6b8;
  --muted: rgba(37, 33, 29, 0.62);
  --line: rgba(37, 33, 29, 0.18);
  --error: #9d2e27;
  --success: #315b3b;
  --display: "Archivo Black", "Arial Black", sans-serif;
  --body: "DM Sans", sans-serif;
  --script: "Caveat", cursive;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

[hidden] {
  display: none !important;
}

body {
  min-height: 100vh;
  background: var(--ivory);
  color: var(--espresso);
  font-family: var(--body);
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-logo {
  display: block;
  width: 92px;
  flex-shrink: 0;
}

.nav-logo img {
  width: 100%;
  height: auto;
  pointer-events: auto;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.form-page {
  padding: clamp(64px, 9vw, 120px) 0;
}

.page-intro {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: end;
  gap: clamp(36px, 8vw, 100px);
  margin-bottom: 56px;
}

.eyebrow,
.field-label,
legend {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  max-width: 10ch;
  margin-top: 12px;
  font-family: var(--body);
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.page-intro > p {
  max-width: 48ch;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
}

.form-shell {
  padding: clamp(24px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.22);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 20px;
}

.field {
  display: grid;
  gap: 8px;
}

.field-full {
  grid-column: 1 / -1;
}

.optional {
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

input,
select,
textarea,
button {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--ivory);
  color: var(--espresso);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input,
select {
  min-height: 50px;
  padding: 0 14px;
}

select {
  appearance: none;
  cursor: pointer;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2325211d' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

textarea {
  min-height: 150px;
  padding: 14px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--espresso);
  box-shadow: 0 0 0 3px rgba(37, 33, 29, 0.08);
}

fieldset {
  grid-column: 1 / -1;
  border: 0;
}

legend {
  margin-bottom: 16px;
}

.date-ranges {
  display: grid;
  gap: 12px;
}

.date-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: end;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.date-row .field-label {
  display: block;
  margin-bottom: 8px;
}

.date-picker-shell {
  position: relative;
  display: flex;
  min-height: 50px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--ivory);
  cursor: pointer;
}

.date-picker-shell::after {
  content: "";
  width: 18px;
  height: 18px;
  margin-left: auto;
  flex-shrink: 0;
  background-color: var(--espresso);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Crect x='3.5' y='5' width='17' height='15.5' rx='2' stroke='black' stroke-width='1.8'/%3E%3Cpath d='M8 3.5V7.5M16 3.5V7.5M3.5 10H20.5' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Crect x='3.5' y='5' width='17' height='15.5' rx='2' stroke='black' stroke-width='1.8'/%3E%3Cpath d='M8 3.5V7.5M16 3.5V7.5M3.5 10H20.5' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.date-picker-value {
  color: var(--espresso);
}

.date-picker-value.is-placeholder {
  color: var(--muted);
}

.date-native {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  opacity: 0.01;
  color: transparent;
  background: transparent;
  pointer-events: none;
}

.calendar-popover {
  position: absolute;
  z-index: 12;
  top: calc(100% + 6px);
  left: 0;
  width: min(100%, 292px);
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f7ee;
  box-shadow: 0 14px 32px rgba(37, 33, 29, 0.14);
}

.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.calendar-head strong {
  font-size: 13px;
  font-weight: 600;
}

.calendar-head button {
  width: 32px;
  min-height: 32px;
  border: 0;
  background: transparent;
  color: var(--espresso);
  cursor: pointer;
}

.calendar-week,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  text-align: center;
}

.calendar-week span,
.calendar-grid button {
  min-height: 32px;
  display: grid;
  place-items: center;
  font-size: 11px;
}

.calendar-week span {
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.calendar-grid button {
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--espresso);
  cursor: pointer;
}

.calendar-grid button:hover:not(:disabled) {
  background: rgba(37, 33, 29, 0.08);
}

.calendar-grid button.is-selected {
  background: var(--espresso);
  color: var(--ivory);
}

.calendar-grid button:disabled {
  color: rgba(37, 33, 29, 0.28);
  cursor: default;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid var(--espresso);
  border-radius: 2px;
  background: var(--espresso);
  color: var(--ivory);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.button-secondary {
  background: transparent;
  color: var(--espresso);
}

.button.button-add-range {
  display: flex;
  width: fit-content;
  min-height: 28px;
  margin: 14px auto 0;
  padding: 0 16px;
  border-color: var(--line);
  border-radius: 12px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.button.button-add-range:hover {
  border-color: var(--espresso);
  color: var(--espresso);
}

.remove-range {
  min-height: 50px;
  padding: 0 14px;
}

.combo {
  position: relative;
}

.combo input {
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2325211d' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.combo-list {
  position: absolute;
  z-index: 8;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 240px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #f7f7ee;
  box-shadow: 0 12px 28px rgba(37, 33, 29, 0.12);
}

.combo-list button {
  display: block;
  width: 100%;
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--espresso);
  text-align: left;
  cursor: pointer;
}

.combo-list button:hover,
.combo-list button.is-active {
  background: rgba(37, 33, 29, 0.06);
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding-top: 12px;
}

.form-note {
  max-width: 50ch;
  color: var(--muted);
  font-size: 12px;
}

.status {
  grid-column: 1 / -1;
  padding: 14px 16px;
  border: 1px solid currentColor;
  font-size: 14px;
}

.status[hidden] {
  display: none;
}

.status-success {
  color: var(--success);
  background: rgba(49, 91, 59, 0.07);
}

.status-error {
  color: var(--error);
  background: rgba(157, 46, 39, 0.07);
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.sale-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 28px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(240, 230, 184, 0.35);
}

.sale-copy {
  display: grid;
  gap: 4px;
}

.sale-copy strong {
  font-size: 14px;
  font-weight: 700;
}

.sale-copy span {
  color: var(--muted);
  font-size: 13px;
}

.sale-timer {
  display: flex;
  gap: 10px;
}

.sale-unit {
  min-width: 58px;
  padding: 8px 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ivory);
  text-align: center;
}

.sale-unit b {
  display: block;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.sale-unit span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.package-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.package-option {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 100%;
  padding: 18px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--ivory);
  cursor: pointer;
}

.package-option:has(input:checked) {
  border-color: var(--espresso);
  box-shadow: 0 0 0 1px var(--espresso);
}

.package-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.package-option h2 {
  font-family: var(--body);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.package-meta {
  color: var(--muted);
  font-size: 13px;
}

.package-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.package-price .now {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.package-price .was {
  color: var(--muted);
  font-size: 14px;
  text-decoration: line-through;
}

.sale-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--espresso);
  color: var(--ivory);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cart-summary {
  display: grid;
  gap: 12px;
  padding: 18px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.28);
}

.cart-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
}

.cart-row.muted {
  color: var(--muted);
}

.cart-row.total {
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 16px;
  font-weight: 700;
}

.paypal-box {
  display: grid;
  gap: 10px;
}

.paypal-note {
  color: var(--muted);
  font-size: 12px;
}

.paypal-placeholder {
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  color: var(--muted);
  font-size: 13px;
}

#paypal-buttons {
  min-height: 48px;
}

footer {
  padding: clamp(48px, 7vw, 72px) 0 32px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
}

.footer-logo {
  display: block;
  width: min(110px, 28vw);
}

.footer-mark {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: auto;
}

.footer-line {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  white-space: nowrap;
}

.footer-copy {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.footer-nav {
  display: flex;
  align-items: flex-start;
  gap: clamp(28px, 5vw, 72px);
}

.footer-social {
  display: flex;
  align-items: center;
  color: var(--espresso);
}

.footer-social svg {
  width: 22px;
  height: 22px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 88px;
  font-size: 14px;
  font-weight: 600;
}

.footer-line a:hover,
.footer-col a:hover,
.footer-social:hover {
  opacity: 0.7;
}

@media (max-width: 720px) {
  .wrap {
    width: min(100% - 32px, 1080px);
  }

  .site-nav {
    flex-wrap: wrap;
    padding: 14px 16px;
  }

  .nav-logo {
    width: 72px;
  }

  .page-intro,
  .form-grid,
  .date-row,
  .package-picker {
    grid-template-columns: 1fr;
  }

  .sale-banner {
    align-items: flex-start;
  }

  .footer-inner {
    flex-direction: column;
    gap: 36px;
  }

  .remove-range {
    justify-self: start;
  }

  h1 {
    font-size: clamp(36px, 11vw, 56px);
  }
}
