/* Gift certificate pages: gift-certificate.html (designer + checkout) and gift-thanks.html.
   The certificate itself is drawn by js/gift-design.js. Added 2026-11-19. */

/* Shared with the discovery flight page (its copies are inline there). */
.incl-list { list-style: none; display: grid; gap: var(--space-sm); padding: 0; }
.incl-list li { padding-left: var(--space-xl); position: relative; font-size: 16px; }
.incl-list li::before {
  content: ''; position: absolute; left: 0; top: 7px; width: 14px; height: 8px;
  border-left: 2px solid var(--runway-500); border-bottom: 2px solid var(--runway-500);
  transform: rotate(-45deg);
}
.day-steps { counter-reset: step; display: grid; gap: var(--space-md); }
.day-step { display: grid; grid-template-columns: 44px 1fr; gap: var(--space-md); align-items: start; }
.day-step__n {
  counter-increment: step; width: 40px; height: 40px; border-radius: 2px;
  background: var(--hangar-900); color: var(--parchment-light);
  font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
}
.day-step__n::before { content: counter(step); }

.gift-form [hidden], .gift-thanks [hidden] { display: none !important; }
.gift-form fieldset { border: 0; padding: 0; margin: 0 0 var(--space-lg); min-width: 0; }
.intro-legend { font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 18px; display: flex; align-items: center; gap: var(--space-sm); margin-bottom: var(--space-sm); padding: 0; }
.intro-num { width: 28px; height: 28px; border-radius: 2px; background: var(--hangar-900); color: var(--parchment-light); display: inline-flex; align-items: center; justify-content: center; font-size: 15px; flex: none; }
.gift-form .field { display: grid; gap: 6px; }
.gift-form input[type="text"], .gift-form textarea {
  padding: 14px 16px; border: 1px solid var(--hangar-200); border-radius: 2px;
  font-family: 'Inter', sans-serif; font-size: 16px; background: var(--na-surface); color: var(--na-fg);
  width: 100%; box-sizing: border-box;
}
.gift-form input[type="text"]:focus, .gift-form textarea:focus {
  outline: 2px solid var(--na-accent); outline-offset: 2px; border-color: var(--na-accent);
}
.gift-form [aria-invalid="true"] { border-color: var(--warning-500); }
.intro-label { font-size: 13px; font-weight: 600; }
.intro-help { font-size: 13px; color: var(--na-fg-2); margin: 0; }
.intro-error { color: var(--warning-500); font-size: 14px; margin: 4px 0 0; }
.gift-optional { font-family: 'Inter', sans-serif; font-weight: 400; font-size: 14px; color: var(--na-fg-2); }

/* Hero */
.gift-hero { padding: var(--space-5xl, 96px) 0 var(--space-4xl, 80px); background-position: center 30%; }
.gift-hero h1 { color: #fff; }

/* Builder: the preview on the left, the form on the right */
.gift-builder { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--space-2xl); align-items: start; }
.gift-preview { position: sticky; top: 96px; }
.gift-preview__frame {
  background: #fff; border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 792 / 612;
  box-shadow: 0 18px 44px rgba(26, 27, 29, .20), 0 2px 6px rgba(26, 27, 29, .10);
}
.gift-preview__frame svg { display: block; width: 100%; height: 100%; }
.gift-preview__note { font-size: 13px; color: var(--na-fg-2); margin-top: var(--space-md); }
.gift-form-card {
  background: var(--na-surface); border: 1px solid var(--hangar-200); border-radius: var(--radius-md);
  padding: var(--space-xl);
}
.gift-themes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.gift-theme {
  position: relative; display: flex; align-items: center; gap: 10px; min-height: 44px;
  border: 1px solid var(--hangar-200); border-radius: var(--radius-md); padding: 8px 10px;
  background: var(--na-surface); cursor: pointer; font-size: 15px; line-height: 1.2;
}
.gift-theme input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.gift-theme:has(input:checked) { border-color: var(--runway-500); box-shadow: 0 0 0 1px var(--runway-500); }
.gift-theme:has(input:focus-visible) { outline: 2px solid var(--na-accent); outline-offset: 2px; }
.gift-swatch {
  width: 24px; height: 24px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--sw-a) 0 50%, var(--sw-b) 50% 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .7), 0 0 0 1px rgba(26, 27, 29, .15);
}
.gift-see { display: none; font-size: 14px; margin-top: 4px; }
.gift-buy { width: 100%; justify-content: center; text-align: center; }
.gift-buy[disabled] { opacity: .6; cursor: progress; }
.gift-note {
  background: var(--runway-100); border-left: 3px solid var(--na-accent); border-radius: 2px;
  padding: 10px 12px; font-size: 14px; margin-bottom: var(--space-lg);
}

/* Thank-you page */
.gift-thanks { min-height: 60vh; }
.gift-thanks__title { font-size: clamp(30px, 4vw, 44px); margin-bottom: var(--space-lg); }
.gift-thanks__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--space-2xl); align-items: start; }
.gift-thanks__code { font-size: 14px; color: var(--na-fg-2); margin: 0; }
.gift-thanks__code strong { font-size: 24px; color: var(--na-fg); letter-spacing: .04em; }
.gift-thanks__valid { font-size: 14px; color: var(--na-fg-2); margin: 6px 0 0; }
.gift-thanks__steps { padding-left: 22px; display: grid; gap: var(--space-sm); }

@media (max-width: 900px) {
  .gift-builder, .gift-thanks__grid { grid-template-columns: 1fr; }
  .gift-preview { position: static; scroll-margin-top: 84px; }
  .gift-see { display: inline-block; }
  .gift-form-card { padding: var(--space-lg); }
}
@media (max-width: 380px) {
  .gift-themes { grid-template-columns: 1fr; }
}
