:root {
  --gift-brand: #8f5cff;
  --gift-brand-bright: #aa7cff;
  --gift-brand-deep: #7047eb;
  --gift-ink: #f7f5fb;
  --gift-muted: #aaa4b5;
  --gift-line: rgba(255, 255, 255, 0.12);
  --gift-field: rgba(255, 255, 255, 0.055);
  --gift-danger: #ff8f9a;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: #070609;
  color: var(--gift-ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.gift-hero {
  position: relative;
  min-height: calc(100vh - 72px);
  overflow: hidden;
  border-bottom: 1px solid var(--gift-line);
  background:
    radial-gradient(circle at 78% 16%, rgba(143, 92, 255, 0.19), transparent 32%),
    radial-gradient(circle at 12% 78%, rgba(112, 71, 235, 0.12), transparent 30%),
    #09080c;
}

.gift-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: 0.22;
  background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

.gift-hero-glow {
  position: absolute;
  top: -18rem;
  right: -12rem;
  width: 44rem;
  height: 44rem;
  border-radius: 50%;
  background: rgba(143, 92, 255, 0.14);
  filter: blur(90px);
  pointer-events: none;
}

.gift-hero-shell,
.gift-faq {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.gift-hero-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(480px, 1.1fr);
  gap: clamp(56px, 7vw, 108px);
  align-items: start;
  padding: clamp(48px, 6vw, 88px) 0 clamp(88px, 10vw, 148px);
}

.gift-hero-copy {
  max-width: 570px;
}

.gift-box-icon {
  display: block;
  width: clamp(132px, 13vw, 176px);
  height: auto;
  margin: 0 0 12px -24px;
  object-fit: contain;
  filter: drop-shadow(0 24px 36px rgba(84, 42, 182, 0.28));
}

.gift-eyebrow,
.gift-form-kicker {
  margin: 0 0 14px;
  color: var(--gift-brand-bright);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.gift-hero h1 {
  max-width: 660px;
  margin: 0;
  color: #fff;
  font-size: clamp(2.5rem, 4.6vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.057em;
  line-height: 0.98;
}

.gift-lead {
  max-width: 580px;
  margin: 25px 0 0;
  color: #b9b3c3;
  font-size: clamp(1.02rem, 1.45vw, 1.2rem);
  line-height: 1.72;
}

.gift-form-card {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(31, 27, 40, 0.98), rgba(16, 15, 20, 0.98));
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(143, 92, 255, 0.06) inset;
  padding: clamp(26px, 3.1vw, 38px);
}

.gift-form-card::before {
  position: absolute;
  top: 0;
  right: 12%;
  left: 12%;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(180, 144, 255, 0.82), transparent);
}

.gift-form-intro {
  margin-bottom: 26px;
}

.gift-form-intro h2,
.gift-success h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.65rem, 2.5vw, 2.1rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.gift-plan-fieldset {
  margin: 0 0 24px;
  padding: 0;
  border: 0;
}

.gift-plan-fieldset legend,
.gift-field > span {
  display: block;
  margin: 0 0 9px;
  color: #d9d4e0;
  font-size: 0.86rem;
  font-weight: 650;
}

.gift-plan-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.gift-plan-option {
  position: relative;
  cursor: pointer;
}

.gift-plan-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.gift-plan-option-body {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--gift-line);
  border-radius: 15px;
  background: var(--gift-field);
  padding: 14px 16px;
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.gift-plan-option:hover .gift-plan-option-body {
  border-color: rgba(170, 124, 255, 0.38);
  transform: translateY(-1px);
}

.gift-plan-option input:checked + .gift-plan-option-body {
  border-color: rgba(170, 124, 255, 0.72);
  background: rgba(143, 92, 255, 0.14);
  box-shadow: 0 0 0 1px rgba(143, 92, 255, 0.16) inset;
}

.gift-plan-option input:focus-visible + .gift-plan-option-body {
  outline: 3px solid rgba(170, 124, 255, 0.34);
  outline-offset: 2px;
}

.gift-plan-option-body > span {
  display: grid;
  gap: 3px;
}

.gift-plan-option-body strong {
  color: #fff;
  font-size: 0.98rem;
}

.gift-plan-option-body small {
  color: #96909f;
  font-size: 0.77rem;
}

.gift-plan-option-body b {
  color: #fff;
  font-size: 1.22rem;
  letter-spacing: -0.03em;
}

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

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

.gift-field > span small {
  color: #817b88;
  font-weight: 500;
}

.gift-field input,
.gift-field textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--gift-line);
  border-radius: 12px;
  outline: none;
  background: var(--gift-field);
  color: #fff;
  font: inherit;
  font-size: 0.94rem;
  line-height: 1.4;
  padding: 13px 14px;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.gift-field textarea {
  min-height: 92px;
  resize: vertical;
}

.gift-field input::placeholder,
.gift-field textarea::placeholder {
  color: #6f6977;
}

.gift-field input:focus,
.gift-field textarea:focus {
  border-color: rgba(170, 124, 255, 0.84);
  background: rgba(143, 92, 255, 0.07);
  box-shadow: 0 0 0 3px rgba(143, 92, 255, 0.12);
}

.gift-field input[aria-invalid="true"] {
  border-color: var(--gift-danger);
}

.gift-character-count {
  display: block;
  margin-top: 6px;
  color: #77717f;
  text-align: right;
  font-size: 0.72rem;
}

.gift-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

.gift-payment-summary {
  margin: 24px 0 15px;
  border-top: 1px solid var(--gift-line);
  border-bottom: 1px solid var(--gift-line);
  padding: 17px 0;
}

.gift-payment-summary div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.gift-payment-summary span {
  color: #d5d0da;
  font-size: 0.91rem;
  font-weight: 600;
}

.gift-payment-summary strong {
  color: #fff;
  font-size: 1rem;
}

.gift-payment-summary p {
  margin: 5px 0 0;
  color: #817b88;
  font-size: 0.78rem;
}

.gift-primary-button {
  display: inline-flex;
  min-height: 52px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 13px;
  background: linear-gradient(135deg, var(--gift-brand-bright), var(--gift-brand-deep));
  box-shadow: 0 13px 30px rgba(112, 71, 235, 0.25), 0 1px 0 rgba(255, 255, 255, 0.25) inset;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.94rem;
  font-weight: 750;
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease, filter 150ms ease;
}

.gift-primary-button:hover {
  color: #fff;
  filter: brightness(1.07);
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(112, 71, 235, 0.32), 0 1px 0 rgba(255, 255, 255, 0.25) inset;
}

.gift-primary-button:focus-visible {
  outline: 3px solid rgba(187, 154, 255, 0.44);
  outline-offset: 3px;
}

.gift-primary-button:disabled {
  cursor: wait;
  filter: saturate(0.65);
  opacity: 0.72;
  transform: none;
}

.gift-submit {
  width: 100%;
}

.gift-form-error {
  margin: 0 0 13px;
  border: 1px solid rgba(255, 143, 154, 0.32);
  border-radius: 11px;
  background: rgba(255, 89, 106, 0.08);
  color: #ffb1b8;
  font-size: 0.83rem;
  line-height: 1.5;
  padding: 10px 12px;
}

.gift-payment-info {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 15px;
}

.gift-payment-info svg {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin-top: 2px;
  stroke: #8e8797;
  stroke-width: 1.7;
}

.gift-payment-info p {
  margin: 0;
  color: #837d8b;
  font-size: 0.73rem;
  line-height: 1.55;
}

.gift-payment-info strong {
  color: #a9a3b0;
}

.gift-payment-info a,
.gift-text-link {
  color: #b89bff;
  text-underline-offset: 3px;
}

.gift-success {
  padding: 26px 4px 12px;
}

.gift-success-icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 25px;
  place-items: center;
  border: 1px solid rgba(170, 124, 255, 0.5);
  border-radius: 18px;
  background: rgba(143, 92, 255, 0.16);
  color: #cdb8ff;
  font-size: 1.6rem;
  font-weight: 800;
}

.gift-success > p:not(.gift-form-kicker) {
  margin: 19px 0 0;
  color: #aaa4b5;
  font-size: 0.96rem;
  line-height: 1.7;
}

.gift-success-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
}

.gift-success-actions .gift-primary-button {
  padding: 0 22px;
}

.gift-text-link {
  font-size: 0.9rem;
  font-weight: 650;
}

.gift-faq {
  padding: clamp(88px, 11vw, 150px) 0 clamp(100px, 12vw, 165px);
}

.gift-section-heading {
  max-width: 700px;
  margin: 0 auto 48px;
  text-align: center;
}

.gift-section-heading h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  font-weight: 750;
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.gift-faq-list {
  max-width: 840px;
  margin: 0 auto;
  border-top: 1px solid var(--gift-line);
}

.gift-faq-list details {
  border-bottom: 1px solid var(--gift-line);
}

.gift-faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #eeeaf4;
  cursor: pointer;
  font-size: clamp(1rem, 1.7vw, 1.14rem);
  font-weight: 650;
  list-style: none;
  padding: 25px 2px;
}

.gift-faq-list summary::-webkit-details-marker {
  display: none;
}

.gift-faq-list summary::after {
  content: "+";
  flex: 0 0 auto;
  color: #9b7ce5;
  font-size: 1.45rem;
  font-weight: 400;
  transition: transform 150ms ease;
}

.gift-faq-list details[open] summary::after {
  transform: rotate(45deg);
}

.gift-faq-list details p {
  max-width: 720px;
  margin: -5px 0 0;
  color: #9992a2;
  font-size: 0.95rem;
  line-height: 1.75;
  padding: 0 42px 26px 2px;
}

@media (max-width: 980px) {
  .gift-hero-shell {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .gift-hero-copy {
    max-width: 700px;
  }

  .gift-form-card {
    max-width: 660px;
  }
}

@media (max-width: 640px) {
  .gift-hero-shell,
  .gift-faq {
    width: min(100% - 28px, 1180px);
  }

  .gift-hero-shell {
    padding-top: 42px;
  }

  .gift-box-icon {
    margin-left: -14px;
  }

  .gift-form-card {
    border-radius: 21px;
    padding: 23px 18px;
  }

  .gift-form-grid,
  .gift-plan-options {
    grid-template-columns: 1fr;
  }

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

  .gift-plan-option-body {
    min-height: 65px;
  }

  .gift-success-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .gift-text-link {
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
