/*
 * Pulse Gift Card — System Stylesheet
 * ─────────────────────────────────────────────────────────────────────────────
 * Per-site customisation: override CSS custom properties in local common.css.
 * A typical local file needs only ~8 variable overrides + a font @import.
 *
 * Customisable surface:
 *   --colour-primary / --colour-primary-hover / --colour-primary-light
 *   --colour-secondary
 *   --font-sans / --font-heading
 *   --page-bg-colour / --page-bg-image / --page-bg-overlay
 *   --header-bg
 */


/* ─── Custom Properties ─────────────────────────────────────────────────────── */

:root {
  /* Brand colours — set in local CSS */
  --colour-primary:       #1a73e8;
  --colour-primary-hover: #1255c2;
  --colour-primary-light: #e8f0fe;
  --colour-primary-fg:    #fff;
  --colour-secondary:     #34a853;
  --colour-pill-bg:       var(--colour-primary);
  --colour-pill-fg:       var(--colour-primary-fg);

  /* Typography — @import font + set family in local CSS */
  --font-sans:    system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-heading: var(--font-sans);

  /* Backgrounds — set in local CSS */
  --page-bg-colour:  #111827;
  --page-bg-image:   none;
  --page-bg-overlay: rgba(0, 0, 0, 0.55);
  --header-bg:       rgba(0, 0, 0, 0.88);

  /* Header height — set to 0px via JS when banner is hidden */
  --header-h: 76px;

  /* Design tokens — no need to override */
  --radius-sm:  8px;
  --radius:     14px;
  --radius-lg:  20px;
  --shadow:     0 2px 8px rgba(0,0,0,.12), 0 1px 4px rgba(0,0,0,.08);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.16), 0 2px 8px rgba(0,0,0,.10);
  --ease:       .22s ease;

  /* Text on page background — override in local CSS for light themes */
  --page-fg:        #fff;
  --page-fg-muted:  rgba(255, 255, 255, .65);
  --page-fg-subtle: rgba(255, 255, 255, .4);
  --page-line:      rgba(255, 255, 255, .12);

  /* Glass panels on page background (conditions accordion, etc.) */
  --glass-bg:       rgba(255, 255, 255, .07);
  --glass-border:   rgba(255, 255, 255, .12);
  --glass-fg:       rgba(255, 255, 255, .7);
  --glass-fg-muted: rgba(255, 255, 255, .5);
}


/* ─── Reset & Base ──────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--font-sans);
  background-color: var(--page-bg-colour);
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6, legend {
  font-family: var(--font-heading);
}

a { text-decoration: none; }


/* ─── Page Background ───────────────────────────────────────────────────────── */

.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-color: var(--page-bg-colour);
  background-image: var(--page-bg-image);
  background-size: cover;
  background-position: center;
}

.page-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--page-bg-overlay);
}


/* ─── Header ────────────────────────────────────────────────────────────────── */

.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--header-h);
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
}

.header .container {
  width: 100%;
}

.header-logo {
  max-height: calc(var(--header-h) - 30px);
  width: auto;
  display: block;
}

.header .text-center {
  display: flex;
  justify-content: center;
}


/* ─── Page Layout ───────────────────────────────────────────────────────────── */

#page_content {
  position: relative;
  z-index: 10;
  padding-top: var(--header-h); /* clear fixed header */
}

.step-panel {
  padding-top: 32px;
  padding-bottom: 64px;
}

/* Bootstrap container cap — consistent across all panels */
.page-purchase-giftcard .container {
  max-width: 880px;
}


/* ─── Typography ────────────────────────────────────────────────────────────── */

h1 {
  color: var(--page-fg);
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 12px;
}

h2,h3 {
  color: var(--page-fg);
}

h4 { /* used for gift card titles inside interactive cards */
  font-family: var(--font-heading);
}

a { color: var(--colour-primary); }
a:hover { color: var(--colour-primary-hover); }


/* ─── Page Intro ────────────────────────────────────────────────────────────── */

.page-intro {
  text-align: center;
  padding: 16px 0 36px;
}

.page-intro p {
  color: var(--page-fg-muted);
  font-size: 15px;
  line-height: 1.7;
  max-width: 540px;
  margin: 0 auto;
}

#page-logo {max-width: 500px;margin:30px auto}

/* ─── Step Progress Indicator ───────────────────────────────────────────────── */
/*
 * State is driven entirely by CSS :has() — no JS required.
 * When #Home is visible → step 1 active.
 * When #Customer is visible → step 1 done, step 2 active.
 * When #Payment is visible → steps 1–2 done, step 3 active.
 * When #Complete is visible → progress hidden.
 */

.step-progress {
  padding: 20px 0 0;
}

.steps {
  display: flex;
  align-items: flex-start;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  gap: 0;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  position: relative;
}

/* Connector line between steps */
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 15px;
  left: calc(50% + 20px);
  right: calc(-50% + 20px);
  height: 2px;
  background: var(--page-line);
  transition: background var(--ease);
}

.step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--page-line);
  background: var(--glass-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--page-fg-subtle);
  font-weight: 700;
  font-size: 13px;
  transition: background var(--ease), border-color var(--ease), color var(--ease), box-shadow var(--ease);
}

.step-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--page-fg-subtle);
  transition: color var(--ease);
}

/* ── Active step ── */
.step.is-active .step-dot {
  background: var(--colour-primary);
  border-color: var(--colour-primary);
  color: #fff;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--colour-primary) 30%, transparent);
}
.step.is-active .step-label { color: var(--page-fg); }

/* ── Completed step ── */
.step.is-done .step-dot {
  background: var(--colour-primary);
  border-color: var(--colour-primary);
  color: #fff;
  font-size: 0; /* hide number */
}
.step.is-done .step-dot::before {
  content: '✓';
  font-size: 13px;
}
.step.is-done .step-label { color: var(--colour-primary); }
.step.is-done:not(:last-child)::after { background: var(--colour-primary); }

/* ── CSS :has() state management — no JS needed ── */

/* Step 1 — Home visible */
#page_content:has(#Home:not(.d-none)) .step[data-step="1"] { @extend .is-active; }

#page_content:has(#Home:not(.d-none)) .step[data-step="1"] .step-dot {
  background: var(--colour-primary);
  border-color: var(--colour-primary);
  color: #fff;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--colour-primary) 30%, transparent);
}
#page_content:has(#Home:not(.d-none)) .step[data-step="1"] .step-label {
  color: var(--page-fg);
}

/* Step 2 — Customer visible */
#page_content:has(#Customer:not(.d-none)) .step[data-step="1"] .step-dot,
#page_content:has(#Payment:not(.d-none))  .step[data-step="1"] .step-dot,
#page_content:has(#Payment:not(.d-none))  .step[data-step="2"] .step-dot {
  background: var(--colour-primary);
  border-color: var(--colour-primary);
  color: transparent;
  font-size: 0;
}
#page_content:has(#Customer:not(.d-none)) .step[data-step="1"] .step-dot::before,
#page_content:has(#Payment:not(.d-none))  .step[data-step="1"] .step-dot::before,
#page_content:has(#Payment:not(.d-none))  .step[data-step="2"] .step-dot::before {
  content: '✓';
  font-size: 13px;
  color: #fff;
}
#page_content:has(#Customer:not(.d-none)) .step[data-step="1"] .step-label,
#page_content:has(#Payment:not(.d-none))  .step[data-step="1"] .step-label,
#page_content:has(#Payment:not(.d-none))  .step[data-step="2"] .step-label {
  color: var(--colour-primary);
}
#page_content:has(#Customer:not(.d-none)) .step[data-step="1"]:not(:last-child)::after,
#page_content:has(#Payment:not(.d-none))  .step[data-step="1"]:not(:last-child)::after,
#page_content:has(#Payment:not(.d-none))  .step[data-step="2"]:not(:last-child)::after {
  background: var(--colour-primary);
}

#page_content:has(#Customer:not(.d-none)) .step[data-step="2"] .step-dot,
#page_content:has(#Payment:not(.d-none))  .step[data-step="3"] .step-dot {
  background: var(--colour-primary);
  border-color: var(--colour-primary);
  color: #fff;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--colour-primary) 30%, transparent);
}
#page_content:has(#Customer:not(.d-none)) .step[data-step="2"] .step-label,
#page_content:has(#Payment:not(.d-none))  .step[data-step="3"] .step-label {
  color: var(--page-fg);
}

/* Complete — hide progress entirely */
#page_content:has(#Complete:not(.d-none)) .step-progress {
  display: none;
}

#Payment .form-panel { height: auto; }

/* ─── Step Section Labels ────────────────────────────────────────────────────── */

.step-section {
  margin-bottom: 16px;
}

.step-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--page-fg-subtle);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.step-section-label::before,
.step-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--page-line);
}

/* ─── Step Actions (CTA row) ─────────────────────────────────────────────────── */

.step-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-top: 8px;
}

/* Back button — two contexts: dark page bg and inside white form-panel */
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  border: 2px solid var(--page-line);
  color: var(--page-fg-muted);
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  transition: border-color var(--ease), color var(--ease);
  white-space: nowrap;
}
.btn-back:hover {
  border-color: var(--page-fg-subtle);
  color: var(--page-fg);
}

.form-panel .btn-back {
  border-color: #e5e7eb;
  color: #9ca3af;
}
.form-panel .btn-back:hover {
  border-color: #9ca3af;
  color: #374151;
}


/* ─── Gift Card Value Cards ──────────────────────────────────────────────────── */

.select-giftcard {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 2px solid transparent;
  border-radius: var(--radius);
  padding: 28px 22px 20px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease), background var(--ease);
  position: relative;
  overflow: hidden;
}

/* gradient top-edge — appears on hover / selected */
.select-giftcard::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--colour-primary), var(--colour-secondary));
  opacity: 0;
  transition: opacity var(--ease);
}

.select-giftcard:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  color: inherit;
}
.select-giftcard:hover::before { opacity: 1; }

/* title */
.giftcard-title {
  font-size: 20px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 10px;
  text-align: left;
}
.giftcard-title i {
  display: none;
  color: var(--colour-primary);
  margin-right: 6px;
}

/* description */
.giftcard-description { flex: 1; }
.giftcard-description p {
  color: #6b7280 !important;
  font-size: 12px !important;
  line-height: 1.55;
  margin-bottom: 4px !important;
  text-align: left !important;
}

/* price strip */
.select-giftcard .giftcard-price {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #f3f4f6;
}
.product-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--colour-primary);
  line-height: 1;
}
.product-sale-price {
  font-size: .9rem;
  color: #9ca3af;
  text-decoration: line-through;
  margin-left: 6px;
}

/* Selected state */
.select-giftcard.selected {
  background: var(--colour-primary-light);
  border-color: var(--colour-primary);
}
.select-giftcard.selected::before              { opacity: 1; }
.select-giftcard.selected .giftcard-title      { color: var(--colour-primary); }
.select-giftcard.selected .giftcard-title i    { display: inline; }
.select-giftcard.selected .giftcard-description p { color: #374151 !important; }


/* ─── Card Style Selector ───────────────────────────────────────────────────── */

.select-cardstyle {
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 3px solid rgba(255,255,255,.15);
  transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease);
}
.select-cardstyle img { display: block; width: 100%; }

.select-cardstyle:hover {
  border-color: rgba(255,255,255,.55);
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}
.select-cardstyle.selected {
  border-color: var(--colour-primary);
  box-shadow: 0 0 0 3px var(--colour-primary);
}


/* ─── Form Panels ───────────────────────────────────────────────────────────── */

.form-panel {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  height: 100%;
  box-shadow: var(--shadow-lg);
}

.form-panel-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--colour-primary);
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 24px;
}

/* form controls */
.form-control {
  border-color: #e5e7eb;           /* no !important — lets validation states override */
  border-radius: var(--radius-sm) !important;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.form-control:focus {
  border-color: var(--colour-primary) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--colour-primary) 18%, transparent) !important;
}

/* Validation states */
.was-validated .form-control:invalid,
.form-control.is-invalid {
  border-color: #dc3545 !important;
  box-shadow: none !important;
}
.was-validated .form-control:invalid:focus,
.form-control.is-invalid:focus {
  box-shadow: 0 0 0 3px rgba(220, 53, 69, .2) !important;
}
.was-validated .form-control:valid,
.form-control.is-valid {
  border-color: #e5e7eb !important; /* suppress Bootstrap's green on valid — less noisy */
  background-image: none !important;
}

.form-floating > label { color: #9ca3af; }

/* invalid-feedback inside form-floating needs a nudge since
   the label is absolutely positioned above the text baseline */
.form-floating .invalid-feedback {
  margin-top: 2px;
}

.input-note {
  font-size: .73rem;
  color: #9ca3af;
  margin-top: 4px;
  display: block;
}

.form-check-label {
  font-size: 13px;
  color: #374151 !important;
}
.form-check-label a { color: var(--colour-primary); }

/* Checkbox invalid state */
.was-validated .form-check-input:invalid ~ .form-check-label,
.form-check-input.is-invalid ~ .form-check-label {
  color: #dc3545 !important;
}

.invalid-feedback { font-size: .75rem; }

.alert-danger { border-radius: var(--radius-sm); }


/* ─── Payment Summary ───────────────────────────────────────────────────────── */

#giftcardSummary {
  text-align: center;
  margin-bottom: 28px;
}

#giftcardSummary .wrapper {
  background: linear-gradient(135deg, var(--colour-primary), var(--colour-secondary));
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 16px;
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.giftcard-to {
  font-size: 13px;
  opacity: .8;
  margin-bottom: 6px;
}

#productDescription {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  display: block;
  margin-bottom: 4px;
}

.giftcard-message {
  font-size: 13px;
  opacity: .75;
  font-style: italic;
  margin: 0 0 6px;
}

.giftcard-from {
  font-size: 13px;
  opacity: .8;
  margin: 0;
}

.giftcard-price-display {
  margin: 12px 0 0;
  border-top: 1px solid rgba(255, 255, 255, .25);
  padding-top: 12px;
}

#productPrice {
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
}

#promoMessage p {
  color: var(--colour-secondary);
  font-size: .9rem;
  margin: 0 0 12px;
}


/* ─── Buttons ───────────────────────────────────────────────────────────────── */

.btn-primary,
.btn-success {
  background-color: var(--colour-primary) !important;
  border-color: var(--colour-primary) !important;
  color: var(--colour-primary-fg) !important;
  border-radius: 50px !important;
  padding: 12px 40px !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  letter-spacing: .02em;
  box-shadow: 0 4px 14px rgba(0,0,0,.18) !important;
  transition: background-color var(--ease), border-color var(--ease), transform var(--ease), box-shadow var(--ease) !important;
}
.btn-primary:hover,
.btn-success:hover {
  background-color: var(--colour-primary-hover) !important;
  border-color: var(--colour-primary-hover) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,.22) !important;
}
.btn-primary:active,
.btn-success:active { transform: translateY(0) !important; }
.btn-primary:disabled,
.btn-success:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }


/* ─── Digital Wallet Buttons ────────────────────────────────────────────────── */

.btn-wallet {
  height: 56px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--ease);
}
.btn-wallet:hover { opacity: .85; }

/* Apple Pay — -webkit-appearance renders the official button in Safari.
   Other browsers show a plain black button (matches Apple Pay visual). */
.btn-apay {
  background: #000;
  -webkit-appearance: -apple-pay-button;
  -apple-pay-button-style: black;
  -apple-pay-button-type: buy;
}

/* Google Pay — prototype placeholder.
   In production the Google Pay SDK replaces this button with its own. */
.btn-gpay {
  background: #000;
  color: #fff;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: .03em;
  gap: 2px;
}
.gpay-label {
  font-style: italic;
  font-size: 20px;
  background: linear-gradient(180deg, #4285F4 25%, #34A853 25% 50%, #FBBC04 50% 75%, #EA4335 75%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}


/* ─── Or-divider ────────────────────────────────────────────────────────────── */

.divider-icon {
  position: relative;
  height: 1px;
  background: #e5e7eb;
  margin: 20px 0;
}
.divider-icon i {
  position: absolute;
  padding: 0 10px;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  color: #9ca3af;
  font-style: normal;
  font-size: 12px;
  white-space: nowrap;
  text-align: center;
}


/* ─── Apple Pay ─────────────────────────────────────────────────────────────── */

.apple-pay-button {
  height: 56px;
  width: 100%;
  border-radius: var(--radius-sm);
  -webkit-appearance: -apple-pay-button;
}
.apple-pay-button-with-text > * { display: none; }
.apple-pay-button-black-with-text { -apple-pay-button-style: black; }
.apple-pay-button-white-with-text { -apple-pay-button-style: white; }
.apple-pay-button-text-buy { -apple-pay-button-type: buy; }


/* ─── Offers Page ───────────────────────────────────────────────────────────── */

.page-offer .container {
  max-width: 960px;
}

.offer-main {
  position: relative;
  z-index: 10;
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: 64px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.offer-copy > p:first-child {
  display: inline-block;
  max-width: fit-content;
  background: var(--colour-pill-bg);
  color: var(--colour-pill-fg) !important;
  font-size: 12px !important;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 20px;
}

.offer-copy h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 900;
  color: var(--page-fg);
  line-height: 1.1;
  margin-bottom: 16px;
}

.offer-copy p {
  color: var(--page-fg-muted);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 420px;
}

.offer-copy ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.offer-copy ul li {
  color: var(--page-fg-muted);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.offer-copy ul li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--colour-primary);
  font-size: 12px;
  flex-shrink: 0;
}

.offer-success {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 64px 0;
}

.offer-success h2 {
  color: var(--page-fg);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.offer-success p {
  color: var(--page-fg-muted);
  font-size: 16px;
  line-height: 1.7;
}

.offer-success-icon {
  font-size: 72px;
  color: var(--colour-primary);
  margin-bottom: 24px;
}

/* ── In-panel success state ── */

.panel-success {
  text-align: center;
  padding: 12px 0 4px;
}

.panel-success-icon {
  font-size: 52px;
  color: var(--colour-primary);
  display: inline-block;
  margin-bottom: 20px;
}

.panel-success h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--colour-primary);
  margin-bottom: 14px;
  font-family: var(--font-heading);
}

.panel-success p {
  color: #6b7280;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 6px;
}


@media (max-width: 991px) {
  .offer-main { align-items: flex-start; }
  .offer-copy { text-align: center; }
  .offer-copy p { max-width: none; margin-left: auto; margin-right: auto; }
  .offer-copy ul { align-items: center; }
}


/* ─── Complete Page ─────────────────────────────────────────────────────────── */

.page-complete .container {
  max-width: 520px;
}

.complete-main {
  position: relative;
  z-index: 10;
  padding-top: calc(var(--header-h) + 56px);
  padding-bottom: 64px;
  text-align: center;
}

.complete-icon {
  font-size: 72px;
  color: var(--colour-primary);
  margin-bottom: 20px;
  line-height: 1;
}

.complete-heading {
  color: var(--page-fg);
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 900;
  margin-bottom: 12px;
}

.complete-subtext {
  color: var(--page-fg-muted);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 32px;
}

.complete-summary {
  text-align: left;
  margin-bottom: 24px;
}

.receipt-message {
  font-style: italic;
  color: #6b7280;
}

.complete-cta {
  width: 100%;
}

#successContent p {
  font-size: 15px;
  line-height: 1.7;
  font-weight: 400;
  color: var(--page-fg-muted);
  margin: 0 auto;
}


/* ─── Suspended Page ────────────────────────────────────────────────────────── */

.suspended-main {
  position: relative;
  z-index: 10;
  padding-top: calc(var(--header-h) + 80px);
  padding-bottom: 64px;
  text-align: center;
}

.suspended-icon {
  font-size: 64px;
  color: var(--colour-primary);
  margin-bottom: 24px;
  line-height: 1;
}

.suspended-heading {
  color: var(--page-fg);
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 900;
  margin-bottom: 16px;
}

.suspended-subtext {
  color: var(--page-fg-muted);
  font-size: 15px;
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto 32px;
}


/* ─── Join Page ─────────────────────────────────────────────────────────────── */

.page-join .container {
  max-width: 960px;
}

.join-main {
  position: relative;
  z-index: 10;
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: 64px;
}

/* Join copy — left column */
.join-copy h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  color: var(--page-fg);
  line-height: 1.15;
  margin-bottom: 12px;
}

.join-copy h2 {
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 700;
  color: var(--colour-primary);
  margin-bottom: 10px;
}

.join-copy p {
  color: var(--page-fg-muted);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 12px;
  max-width: 420px;
}

/* First <p> in promo heading renders as a pill badge */
#promoHeading > p:first-child {
  display: inline-block;
  max-width: fit-content;
  background: var(--colour-pill-bg);
  color: var(--colour-pill-fg) !important;
  font-size: 12px !important;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 20px;
}

/* Checklist */
.join-copy ul {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.join-copy ul li {
  color: var(--page-fg-muted);
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.join-copy ul li::before {
  content: '\f058';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--colour-primary);
  flex-shrink: 0;
}

/* Error state */
.join-error-state {
  text-align: center;
  padding: 40px 0 24px;
}

.join-error-msg {
  color: var(--page-fg-muted);
  font-size: 17px;
  margin-bottom: 28px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.join-error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

@media (max-width: 991.98px) {
  .page-join .container {
    padding-left: 28px;
    padding-right: 28px;
  }
}

/* Promo card */
.promo-card {
  background: linear-gradient(135deg, var(--colour-primary), var(--colour-secondary));
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  color: #fff;
  box-shadow: var(--shadow-lg);
  margin-bottom: 20px;
  text-align: center;
}

.promo-badge {
  display: inline-block;
  background: rgba(255, 255, 255, .2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.promo-headline {
  font-size: clamp(26px, 5vw, 38px);
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 12px;
}

.promo-subtext {
  color: rgba(255, 255, 255, .75);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 20px;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}

.promo-benefits {
  list-style: none;
  padding: 0;
  margin: 0 auto 24px;
  display: inline-flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.promo-benefits li {
  font-size: 14px;
  color: rgba(255, 255, 255, .85);
  display: flex;
  align-items: center;
  gap: 10px;
}

.promo-benefits .fa-check-circle {
  color: #fff;
  opacity: .8;
  flex-shrink: 0;
}

.promo-offer {
  background: rgba(0, 0, 0, .18);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.promo-offer-label {
  color: rgba(255, 255, 255, .75);
  font-size: 13px;
}

.promo-offer-value {
  color: #fff;
  font-size: 22px;
  font-weight: 900;
}

.promo-join-btn {
  color: var(--colour-primary) !important;
  font-weight: 700;
  padding: 12px 36px;
  border-radius: 50px;
}

.promo-join-btn:hover {
  background: rgba(255, 255, 255, .9) !important;
}

/* Receipt panel */
.join-receipt {
  margin-bottom: 20px;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f3f4f6;
}

.receipt-row:first-of-type {
  border-top: 1px solid #f3f4f6;
}

.receipt-label {
  font-size: 13px;
  color: #9ca3af;
}

.receipt-value {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  letter-spacing: .04em;
}

/* Conditions accordion */
.join-conditions {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
}

.conditions-toggle {
  width: 100%;
  background: none;
  border: none;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--glass-fg);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  gap: 12px;
}

.conditions-toggle:hover {
  color: var(--page-fg);
}

.conditions-chevron {
  flex-shrink: 0;
  transition: transform var(--ease);
  font-size: 12px;
}

.conditions-body {
  padding: 0 20px 20px;
  font-size: 13px;
  color: var(--glass-fg-muted);
  line-height: 1.7;
}

.conditions-body ul {
  padding-left: 18px;
  margin-bottom: 12px;
}

.conditions-body li {
  margin-bottom: 4px;
}

.conditions-body strong {
  color: var(--glass-fg);
}

.conditions-note {
  margin: 12px 0 0;
  font-style: italic;
  color: var(--page-fg-subtle);
}


/* ─── Offer unavailable ─────────────────────────────────────────────────────── */

.offer-unavailable {
  width: 100%;
  text-align: center;
  padding: 40px 24px;
  color: var(--page-fg);
  font-size: 18px;
  line-height: 1.6;
}


/* ─── reCAPTCHA ─────────────────────────────────────────────────────────────── */

/* Badge hidden per Google policy — disclosure text shown near the submit button */
.grecaptcha-badge { visibility: hidden; }

.recaptcha-disclosure {
  font-size: 10px;
  opacity: 0.55;
  line-height: 1.5;
  margin-top: 20px;
  text-align: center;
}

.recaptcha-disclosure a {
  color: inherit;
  text-decoration: underline;
}


/* ─── Login / Reset Pages ───────────────────────────────────────────────────── */

.page-login .container,
.page-reset .container,
.page-new .container {
  max-width: 480px;
}

.login-main,
.reset-main,
.new-main {
  position: relative;
  z-index: 10;
  padding-top: calc(var(--header-h) + 56px);
  padding-bottom: 64px;
}

.auth-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--page-fg-muted);
}

.auth-footer a {
  color: var(--colour-primary);
  font-weight: 600;
}

.auth-success {
  text-align: center;
  padding: 12px 0;
}

.auth-success-icon {
  font-size: 56px;
  color: var(--colour-primary);
  margin-bottom: 20px;
  line-height: 1;
}

.auth-success h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--colour-primary);
  margin-bottom: 12px;
}

.auth-success p {
  color: #6b7280;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 6px;
}


/* ─── Responsive ────────────────────────────────────────────────────────────── */

@media (max-width: 767px) {
  .header { height: 80px; }
  .header-logo { max-height: 50px; }
  #page_content { padding-top: 80px; }

  .form-panel {
    padding: 24px 20px;
    border-radius: var(--radius);
  }

  #giftcardSummary .wrapper { padding: 24px 20px; }
}
