:root {
  color-scheme: light;
  --navy: #04172b;
  --navy-2: #0b2947;
  --blue: #1769ff;
  --cyan: #0fa9bd;
  --gold: #d7a52f;
  --ink: #13243a;
  --muted: #5b6d80;
  --line: #d2dee9;
  --soft: #edf4f8;
  --white: #fff;
  --success: #087958;
  --danger: #b42318;
}
[hidden] { display: none !important; }

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--navy); }
body { margin: 0; color: var(--ink); background: var(--soft); font-family: Inter, "Segoe UI", Arial, sans-serif; letter-spacing: 0; }
button, input, textarea { font: inherit; letter-spacing: 0; }
a { color: inherit; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 20; padding: 10px 14px; color: #fff; background: var(--navy); }
.skip-link:focus { top: 12px; }

.gift-header { min-height: 76px; padding: 10px max(24px, calc((100vw - 1180px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 24px; color: #fff; background: var(--navy); border-bottom: 1px solid rgba(255,255,255,.14); }
.gift-brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.gift-brand img { width: 52px; height: 52px; object-fit: contain; }
.gift-brand span { display: grid; gap: 1px; }
.gift-brand strong { font-size: 18px; }
.gift-brand small { color: #a7c5df; font-size: 9px; font-weight: 800; }
.gift-header nav, footer nav { display: flex; align-items: center; gap: 20px; }
.gift-header nav a { color: #c3d7e8; font-size: 13px; font-weight: 800; text-underline-offset: 4px; }

main { min-height: calc(100vh - 76px); }
.gift-intro { min-height: 440px; padding: 56px max(24px, calc((100vw - 1180px) / 2)); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); align-items: center; gap: 56px; color: #fff; background: var(--navy); border-bottom: 5px solid var(--gold); }
.eyebrow { margin: 0 0 10px; color: var(--cyan); font-size: 11px; font-weight: 900; }
.gift-intro h1 { max-width: 760px; margin: 0; font-family: Sora, Inter, sans-serif; font-size: 48px; line-height: 1.08; }
.gift-intro > div > p:not(.eyebrow) { max-width: 700px; margin: 20px 0; color: #c1d4e4; font-size: 17px; line-height: 1.65; }
.gift-intro ul { margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; color: #dbe8f2; font-size: 13px; font-weight: 700; }
.gift-intro li::before { content: ""; width: 7px; height: 7px; margin-right: 8px; display: inline-block; background: var(--gold); border-radius: 50%; }
.gift-intro figure { margin: 0; display: grid; justify-items: center; }
.gift-intro figure img { width: min(310px, 100%); height: auto; object-fit: contain; filter: drop-shadow(0 24px 32px rgba(0,0,0,.35)); }
.gift-intro figcaption { margin-top: 12px; display: grid; gap: 3px; text-align: center; }
.gift-intro figcaption strong { font-size: 19px; }
.gift-intro figcaption span { color: #a7c4da; font-size: 12px; }

.gift-workspace { width: min(1080px, calc(100% - 32px)); margin: 42px auto 56px; background: #fff; border: 1px solid #cbd8e4; border-radius: 8px; box-shadow: 0 18px 54px rgba(4,23,43,.12); }
.gift-tabs { display: grid; grid-template-columns: 1fr 1fr; background: #e4edf4; border-bottom: 1px solid var(--line); }
.gift-tabs button { min-height: 54px; color: #4b6176; background: transparent; border: 0; border-bottom: 4px solid transparent; font-weight: 900; cursor: pointer; }
.gift-tabs button[aria-selected="true"] { color: var(--navy); background: #fff; border-bottom-color: var(--blue); }
[data-gift-panel] { padding: 34px 40px 40px; }
.panel-heading { display: flex; justify-content: space-between; gap: 32px; align-items: end; margin-bottom: 24px; }
.panel-heading h2, .gift-result h2 { margin: 0; color: var(--navy); font-family: Sora, Inter, sans-serif; font-size: 29px; }
.panel-heading > p { max-width: 360px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; text-align: right; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
label { display: grid; gap: 7px; margin-top: 16px; color: var(--navy); font-size: 13px; font-weight: 900; }
label > span { color: var(--muted); font-weight: 500; }
input, textarea { width: 100%; min-height: 50px; padding: 11px 13px; color: var(--ink); background: #fff; border: 1px solid #98acbe; border-radius: 5px; }
textarea { min-height: 100px; resize: vertical; }
input:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(23,105,255,.14); outline: 0; }
fieldset { margin: 24px 0 4px; padding: 0; border: 0; }
legend { color: var(--navy); font-size: 13px; font-weight: 900; }
.amount-options { margin-top: 9px; display: grid; grid-template-columns: repeat(4, 88px) minmax(180px, 1fr); gap: 9px; }
.amount-options > button { min-height: 48px; color: var(--navy); background: #f5f8fb; border: 1px solid #a7b8c8; border-radius: 5px; font-weight: 900; cursor: pointer; }
.amount-options > button:hover, .amount-options > button:focus-visible, .amount-options > button.is-selected { color: #fff; background: var(--blue); border-color: var(--blue); outline: 0; }
.amount-options label { min-height: 48px; margin: 0; padding-left: 12px; grid-template-columns: auto 1fr; align-items: center; gap: 6px; background: #f5f8fb; border: 1px solid #a7b8c8; border-radius: 5px; }
.amount-options label input { min-height: 44px; padding-left: 0; background: transparent; border: 0; box-shadow: none; }
.consent { margin-top: 20px; grid-template-columns: 20px 1fr; align-items: start; font-weight: 600; line-height: 1.45; }
.consent input { width: 18px; height: 18px; min-height: 0; margin: 1px 0 0; }
.primary-action, .secondary-action { min-height: 50px; padding: 11px 20px; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: var(--blue); border: 1px solid var(--blue); border-radius: 5px; font-weight: 900; text-decoration: none; cursor: pointer; }
.primary-action { margin-top: 22px; }
.primary-action:hover, .primary-action:focus-visible { background: #0753d0; outline: 3px solid rgba(23,105,255,.17); outline-offset: 2px; }
.secondary-action { color: var(--navy); background: #fff; border-color: #7591aa; }
.primary-action:disabled, .secondary-action:disabled { color: #dbe3ea; background: #7e91a4; border-color: #7e91a4; cursor: wait; }
.verification-row { margin-top: 18px; display: grid; grid-template-columns: auto minmax(200px, 320px); align-items: end; gap: 16px; }
.verification-row label { margin: 0; }
.form-status { min-height: 22px; margin: 12px 0 0; color: var(--danger); font-size: 13px; font-weight: 800; }
.form-status.is-success { color: var(--success); }
.gift-result { padding: 30px 40px; grid-template-columns: 78px 1fr auto; align-items: center; gap: 22px; background: #f0f8f5; border-top: 1px solid #bcdccd; }
.gift-result:not([hidden]) { display: grid; }
.gift-result img { width: 78px; height: 78px; object-fit: contain; }
.gift-result p:not(.eyebrow) { margin: 8px 0 0; color: #3d5c51; line-height: 1.5; }
.gift-result .primary-action { margin: 0; }

footer { min-height: 68px; padding: 18px max(24px, calc((100vw - 1180px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 24px; color: #a9c0d4; background: var(--navy); font-size: 12px; }
footer a { text-underline-offset: 3px; }

@media (max-width: 820px) {
  .gift-intro { grid-template-columns: 1fr; padding-top: 40px; gap: 28px; }
  .gift-intro h1 { font-size: 39px; }
  .gift-intro figure img { width: 220px; }
  .amount-options { grid-template-columns: repeat(4, 1fr); }
  .amount-options label { grid-column: 1 / -1; }
  .gift-result { grid-template-columns: 64px 1fr; }
  .gift-result .primary-action { grid-column: 1 / -1; }
}

@media (max-width: 590px) {
  .gift-header { min-height: 64px; padding: 7px 13px; }
  .gift-brand img { width: 44px; height: 44px; }
  .gift-brand strong { font-size: 15px; }
  .gift-header nav a:first-child { display: none; }
  .gift-intro { min-height: 0; padding: 34px 18px; }
  .gift-intro h1 { font-size: 32px; }
  .gift-intro > div > p:not(.eyebrow) { font-size: 15px; }
  .gift-intro figure { display: none; }
  .gift-workspace { width: calc(100% - 18px); margin: 18px auto 28px; }
  [data-gift-panel] { padding: 26px 18px 30px; }
  .panel-heading { display: block; }
  .panel-heading > p { margin-top: 10px; text-align: left; }
  .field-grid { grid-template-columns: 1fr; }
  .amount-options { grid-template-columns: 1fr 1fr; }
  .verification-row { grid-template-columns: 1fr; }
  .gift-result { padding: 24px 18px; grid-template-columns: 58px 1fr; }
  .gift-result img { width: 58px; height: 58px; }
  footer { align-items: flex-start; flex-direction: column; }
}
