/* A to Zoom — shared candy-pastel styling for form subpages
   (gift cards, gift concierge). Same visual language as the homepage and
   parties page: white ground, pastel hero band, 20px-radius cards, pill
   buttons. Scoped to body.subpage so pages opt in. */

body.subpage {
  background: #fff;
}

body.subpage .site-nav {
  max-width: none;
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--tint-lavender);
  padding: 0.6rem 1.25rem;
  justify-content: center;
}

body.subpage .site-nav .nav-logo img {
  height: 56px;
}

/* Hero band — gradient variant per page */
.page-hero {
  width: 100%;
  padding: 3.25rem 1.5rem 2.75rem;
  text-align: center;
}

.page-hero.hero-gift {
  background: linear-gradient(135deg, var(--tint-pink) 0%, var(--tint-lavender) 55%, var(--tint-sky) 100%);
}

.page-hero.hero-concierge {
  background: linear-gradient(135deg, var(--tint-sky) 0%, var(--tint-mint) 55%, var(--tint-butter) 100%);
}

.page-hero h1 {
  font-size: clamp(2rem, 5.5vw, 3rem);
  line-height: 1.12;
  color: var(--brand-purple);
  max-width: 700px;
  margin: 0 auto 0.6rem;
}

.page-hero .hero-sub {
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  color: #6b5a80;
  max-width: 600px;
  margin: 0 auto;
}

.page-hero .hero-note {
  font-size: 0.95rem;
  color: #8a7a9e;
  margin-top: 0.75rem;
}

.page-hero .hero-note a {
  color: var(--brand-magenta);
}

/* "How it works" steps section (used by gift pages) */
.subpage-section {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 2.75rem 1.5rem 1rem;
}

.subpage-section > .inner {
  width: 100%;
  max-width: 900px;
}

.subpage-section h2 {
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  color: var(--brand-purple);
  text-align: center;
  margin-bottom: 0.35rem;
}

.subpage-section .section-sub {
  text-align: center;
  color: #777;
  font-size: 1.02rem;
  margin-bottom: 1.75rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}

.step-card {
  background: #fff;
  border: 1px solid var(--tint-lavender);
  border-radius: 20px;
  padding: 1.35rem 1.4rem;
  box-shadow: 0 6px 18px rgba(77, 0, 141, 0.07);
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.85rem;
  align-items: center;
}

.step-card .step-num {
  grid-row: 1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
}

.step-card:nth-child(4n+1) .step-num { background: var(--brand-magenta); }
.step-card:nth-child(4n+2) .step-num { background: var(--brand-purple); }
.step-card:nth-child(4n+3) .step-num { background: var(--brand-cyan); }
.step-card:nth-child(4n+4) .step-num { background: #0e8a76; }

.step-card h3 {
  grid-row: 1;
  grid-column: 2;
  font-size: 1.18rem;
  color: var(--brand-purple);
}

.step-card p {
  grid-row: 2;
  grid-column: 2;
  color: #555;
  font-size: 0.98rem;
  line-height: 1.5;
  margin-top: 0.2rem;
}

.steps-trust {
  text-align: center;
  color: #8a7a9e;
  font-size: 0.95rem;
  margin-top: 1.25rem;
}

@media (max-width: 640px) {
  .steps-grid { grid-template-columns: 1fr; }
}

/* Form containers — widen the legacy 520px mobile column and adopt the
   card language (overrides gift-cards.css / gift-concierge.css) */
body.subpage .giftcard-main,
body.subpage .concierge-main {
  max-width: 760px;
  padding: 2.5rem 1.5rem 3.5rem;
  gap: 1.75rem;
}

body.subpage .giftcard-form fieldset,
body.subpage .concierge-form fieldset {
  border: 1px solid var(--tint-lavender);
  border-radius: 20px;
  box-shadow: 0 6px 18px rgba(77, 0, 141, 0.07);
  padding: 1.5rem;
}

body.subpage .giftcard-form input,
body.subpage .giftcard-form textarea,
body.subpage .giftcard-form select,
body.subpage .concierge-form input,
body.subpage .concierge-form textarea,
body.subpage .concierge-form select {
  border-radius: 10px;
}

body.subpage .btn-submit {
  align-self: center;
  font-family: inherit;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0.8rem 2.5rem;
  border: none;
  border-radius: 999px;
  background: var(--brand-magenta);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(201, 44, 153, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}

body.subpage .btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(201, 44, 153, 0.45);
  background: var(--brand-magenta);
  color: #fff;
}
