/* =========================================================
   Gift a Trip (/gift-a-trip). The art card itself (.gift-art-card) and the
   design picker tiles (.gift-design) are in gift-card.css, shared with the
   home page, the gift link page and the ERP.
   ========================================================= */

.gift-page { padding-bottom: var(--section-gap); }
.gift-page [hidden] { display: none !important; }

/* ---------- Hero ---------- */
.gift-hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-top: clamp(32px, 6vw, 72px);
  padding-bottom: clamp(24px, 4vw, 48px);
}
.gift-kicker {
  display: inline-block;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 16px;
}
.gift-kicker--dark { background: rgba(255, 255, 255, 0.12); color: #fff; }
.gift-hero h1 { font-size: clamp(44px, 7vw, 84px); line-height: 0.95; letter-spacing: -0.03em; margin-bottom: 18px; }
.gift-dot { color: var(--color-accent-dark); }
.gift-lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--color-text-muted); max-width: 520px; margin-bottom: 26px; line-height: 1.55; }
.gift-hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.gift-hero-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 0; font-size: 14px; font-weight: 600; }
.gift-hero-facts li::before { content: "✓"; display: inline-block; margin-right: 6px; color: var(--color-success); font-weight: 800; }

.gift-hero-art { position: relative; height: 420px; }
.gift-hero-art .gift-hero-card { position: absolute; width: min(100%, 340px); }
.gift-card--back { top: 0; right: 0; transform: rotate(8deg); }
.gift-card--mid { top: 22px; right: 40px; transform: rotate(-3deg); }
.gift-card--front { top: 58px; right: 84px; transform: rotate(-8deg); box-shadow: 0 24px 50px rgba(20, 20, 15, 0.26); }

/* ---------- How it works ---------- */
.gift-h2 { font-size: clamp(26px, 3.6vw, 40px); margin-bottom: 22px; }
.gift-steps-wrap { padding-top: 0; }
.gift-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gift-steps li { border: 2px solid var(--color-black); border-radius: var(--radius-card); padding: 20px; display: flex; flex-direction: column; gap: 6px; background: #fff; }
.gift-step-n { width: 34px; height: 34px; border-radius: 50%; background: var(--color-accent); border: 2px solid var(--color-black); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 6px; }
.gift-steps strong { font-size: 17px; }
.gift-steps small { color: var(--color-text-muted); font-size: 14px; line-height: 1.45; }

/* ---------- Builder ---------- */
.gift-builder { scroll-margin-top: 90px; }
.gift-tabs { display: inline-flex; gap: 6px; padding: 6px; border: 2px solid var(--color-black); border-radius: var(--radius-pill); margin-bottom: 26px; background: #fff; }
.gift-tab { border: 0; background: none; font: inherit; font-weight: 700; font-size: 15px; padding: 10px 20px; border-radius: var(--radius-pill); cursor: pointer; color: var(--color-text); }
.gift-tab.is-active { background: var(--color-black); color: #fff; }
.gift-tab:focus-visible { outline: 2px solid var(--color-accent-dark); outline-offset: 2px; }

.gift-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.gift-form { display: flex; flex-direction: column; gap: 8px; }
.gift-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.gift-fs { border: 0; padding: 0 0 22px; margin: 0 0 6px; border-bottom: 1px solid #e6e6df; min-width: 0; }
.gift-fs legend { font-weight: 800; font-size: 18px; margin-bottom: 14px; padding: 0; }

.gift-design-name { font-size: 13px; font-weight: 700; color: var(--color-text-muted); margin: 10px 0 16px; min-height: 1.3em; }
.gift-occasion { margin-bottom: 14px; }
.gift-sublabel { display: block; font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.gift-occasion .gift-chip span { padding: 8px 14px; font-size: 14px; }
.gift-greeting { max-width: 420px; margin-bottom: 0; }

.gift-amounts { display: flex; flex-wrap: wrap; gap: 10px; }
.gift-chip { cursor: pointer; }
.gift-chip input { position: absolute; opacity: 0; pointer-events: none; }
.gift-chip span { display: inline-block; padding: 10px 18px; border: 2px solid var(--color-black); border-radius: var(--radius-pill); font-weight: 700; font-size: 15px; background: #fff; transition: background 0.15s; }
.gift-chip input:checked + span { background: var(--color-accent); }
.gift-chip input:focus-visible + span { outline: 2px solid var(--color-black); outline-offset: 3px; }
.gift-custom { margin-top: 14px; max-width: 280px; }

.gift-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.gift-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
.gift-field--narrow { max-width: 280px; }
.gift-field label { font-size: 14px; font-weight: 700; display: flex; justify-content: space-between; gap: 8px; }
.gift-field input, .gift-field select, .gift-field textarea {
  font: inherit;
  font-size: 16px;
  padding: 12px 14px;
  border: 1.5px solid #cfcfc5;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--color-text);
  width: 100%;
  min-width: 0;
}
.gift-field textarea { resize: vertical; min-height: 84px; }
.gift-field input:focus, .gift-field select:focus, .gift-field textarea:focus { outline: none; border-color: var(--color-black); box-shadow: 0 0 0 3px rgba(214, 255, 63, 0.7); }
.gift-field [aria-invalid="true"] { border-color: var(--color-danger); }
.gift-field select:disabled { background: var(--color-surface-muted); color: var(--color-text-muted); }
.gift-count { font-weight: 500; color: var(--color-text-muted); font-size: 12px; }
.gift-hint { font-size: 13px; color: var(--color-text-muted); margin: 0; }
.gift-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; font-weight: 600; margin: 4px 0 16px; cursor: pointer; }
.gift-check input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--color-black); }

.gift-error { background: #fdecef; color: #9b1c31; border-radius: var(--radius-sm); padding: 12px 14px; font-size: 14px; font-weight: 600; margin: 4px 0; }
.gift-submit { align-self: flex-start; padding: 14px 32px; font-size: 16px; margin-top: 6px; }
.gift-submit:disabled { opacity: 0.6; cursor: wait; }
.gift-fineprint { font-size: 13px; color: var(--color-text-muted); line-height: 1.5; margin-top: 8px; }
.gift-fineprint a { text-decoration: underline; }

.gift-preview-sticky { position: sticky; top: 110px; }
.gift-preview { width: 100%; max-width: 440px; transform: rotate(-2deg); }
.gift-preview-cap { font-size: 13px; color: var(--color-text-muted); margin-top: 18px; max-width: 440px; }

.gift-done { text-align: center; max-width: 560px; margin: 0 auto; padding: 40px 24px; border: 2px solid var(--color-black); border-radius: var(--radius-card); background: #fff; outline: none; }
.gift-done-icon { font-size: 48px; margin-bottom: 8px; }
.gift-done h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 10px; }
.gift-done p { color: var(--color-text-muted); margin-bottom: 22px; }
.gift-done-ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- Parents ---------- */
.gift-parents-card { background: var(--color-black); color: #fff; border-radius: 28px; padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(24px, 4vw, 56px); }
.gift-parents-card h2 { color: #fff; font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 12px; }
.gift-parents-card p { color: rgba(255, 255, 255, 0.75); }
.gift-parents-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.gift-parents-list li { padding-left: 30px; position: relative; color: rgba(255, 255, 255, 0.8); line-height: 1.5; }
.gift-parents-list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--color-accent); color: var(--color-black); font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.gift-parents-list strong { color: #fff; }

/* ---------- FAQ ---------- */
.gift-faq-list { display: grid; gap: 10px; max-width: 860px; }
.gift-faq-list details { border: 2px solid var(--color-black); border-radius: 14px; background: #fff; }
.gift-faq-list summary { cursor: pointer; padding: 16px 48px 16px 18px; font-weight: 700; list-style: none; position: relative; }
.gift-faq-list summary::-webkit-details-marker { display: none; }
.gift-faq-list summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 600; }
.gift-faq-list details[open] summary::after { content: "–"; }
.gift-faq-list details p { padding: 0 18px 16px; color: var(--color-text-muted); line-height: 1.55; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .gift-hero { grid-template-columns: 1fr; }
  .gift-hero-art { height: 420px; max-width: 460px; width: 100%; margin: 0 auto; }
  .gift-steps { grid-template-columns: repeat(2, 1fr); }
  .gift-grid { grid-template-columns: 1fr; }
  .gift-preview-col { order: -1; }
  .gift-preview-sticky { position: static; }
  .gift-preview { max-width: 380px; margin: 0 auto; transform: none; }
  .gift-preview-cap { margin: 12px auto 0; text-align: center; }
  .gift-parents-card { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .gift-hero-art { height: 96vw; max-height: 420px; }
  .gift-hero-art .gift-hero-card { width: 74%; }
  .gift-card--back { right: 0; }
  .gift-card--front { right: 20%; top: 14vw; }
  .gift-card--mid { right: 8%; top: 6vw; }
  .gift-steps { grid-template-columns: 1fr; }
  .gift-row { grid-template-columns: 1fr; gap: 0; }
  .gift-tabs { display: flex; width: 100%; }
  .gift-tab { flex: 1; padding: 10px 8px; font-size: 14px; }
  .gift-submit { width: 100%; align-self: stretch; }
}
