/* ═══════════════════════════════════════════════════
   CardVault — styles.css
   Design: Warm off-white, Playfair + DM Sans, gold accents
═══════════════════════════════════════════════════ */

/* ── Reset & Variables ───────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --cream:        #F7F4EF;
  --cream-dark:   #EDE9E1;
  --cream-border: #DDD8CE;
  --ink:          #1A1714;
  --ink-soft:     #4A453F;
  --ink-muted:    #9A948A;
  --gold:         #C8973A;
  --gold-light:   #E8B84B;
  --gold-pale:    #FBF3E3;
  --success:      #3A7D5C;
  --success-pale: #EDF7F2;
  --white:        #FDFCFB;
  --shadow-sm:    0 1px 3px rgba(26,23,20,0.06), 0 1px 2px rgba(26,23,20,0.04);
  --shadow-md:    0 4px 16px rgba(26,23,20,0.08), 0 2px 6px rgba(26,23,20,0.05);
  --shadow-lg:    0 12px 40px rgba(26,23,20,0.10), 0 4px 12px rgba(26,23,20,0.06);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Noise texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}


/* ── Navigation ─────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(247, 244, 239, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--cream-border);
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
}

.nav-logo-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-cta {
  background: var(--ink);
  color: var(--white);
  border: none;
  padding: 9px 22px;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.01em;
}

.nav-cta:hover {
  background: var(--gold);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(200, 151, 58, 0.35);
}


/* ── Pages ───────────────────────────────────────── */
.page {
  display: none;
  min-height: 100vh;
  padding-top: 64px;
  position: relative;
  z-index: 1;
}

.page.active {
  display: block;
}


/* ── Shared Buttons ──────────────────────────────── */
.ui-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}

.ui-icon-lg {
  width: 26px;
  height: 26px;
}

.ui-icon-status {
  width: 38px;
  height: 38px;
  stroke-width: 2.2;
}

.hero-badge,
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--white);
  border: none;
  padding: 14px 32px;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 4px 16px rgba(200, 151, 58, 0.35);
  letter-spacing: 0.01em;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200, 151, 58, 0.45);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--white);
  color: var(--ink);
  border: 1.5px solid var(--cream-border);
  padding: 13px 28px;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s;
}

.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}


/* ── Footer ──────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--cream-border);
  padding: 24px 40px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-muted);
}


/* ═══════════════════════════════════════════════════
   HOME PAGE
═══════════════════════════════════════════════════ */

/* Hero */
.hero {
  padding: 80px 40px 60px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold-pale);
  border: 1px solid rgba(200, 151, 58, 0.25);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.03em;
  margin-bottom: 32px;
  animation: fadeUp 0.6s ease both;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 20px;
  animation: fadeUp 0.6s ease 0.1s both;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--ink-soft);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto 40px;
  font-weight: 300;
  animation: fadeUp 0.6s ease 0.2s both;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.6s ease 0.3s both;
}

/* Section wrapper */
.section {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 40px 80px;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--cream-border);
}

/* Supported Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card-chip {
  background: var(--white);
  border: 1.5px solid var(--cream-border);
  border-radius: 14px;
  padding: 20px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.22s;
  animation: fadeUp 0.5s ease both;
  text-decoration: none;
  color: var(--ink);
}

.card-chip:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 20px rgba(200, 151, 58, 0.15);
  transform: translateY(-2px);
}

.card-chip:nth-child(1) { animation-delay: 0.05s; }
.card-chip:nth-child(2) { animation-delay: 0.10s; }
.card-chip:nth-child(3) { animation-delay: 0.15s; }
.card-chip:nth-child(4) { animation-delay: 0.20s; }
.card-chip:nth-child(5) { animation-delay: 0.25s; }
.card-chip:nth-child(6) { animation-delay: 0.30s; }

.card-chip-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.card-chip-name {
  font-weight: 500;
  font-size: 0.9rem;
  line-height: 1.3;
}

.card-chip-sub {
  font-size: 0.75rem;
  color: var(--ink-muted);
  margin-top: 2px;
}

/* How It Works */
.steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step-card {
  background: var(--white);
  border: 1.5px solid var(--cream-border);
  border-radius: 16px;
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
}

.step-card::before {
  content: attr(data-step);
  position: absolute;
  top: -8px;
  right: 12px;
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  font-weight: 700;
  color: var(--cream-dark);
  line-height: 1;
  pointer-events: none;
}

.step-icon {
  width: 44px;
  height: 44px;
  background: var(--gold-pale);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.step-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 0.875rem;
  color: var(--ink-soft);
  line-height: 1.6;
  font-weight: 300;
}


/* ═══════════════════════════════════════════════════
   FORM PAGE
═══════════════════════════════════════════════════ */

.form-wrap {
  max-width: 580px;
  margin: 0 auto;
  padding: 60px 40px 80px;
}

.form-header {
  margin-bottom: 40px;
  animation: fadeUp 0.5s ease both;
}

.form-header .back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--ink-muted);
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  margin-bottom: 24px;
  font-family: 'DM Sans', sans-serif;
  transition: color 0.2s;
}

.form-header .back-btn:hover {
  color: var(--gold);
}

.form-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.form-header p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  font-weight: 300;
}

.form-card {
  background: var(--white);
  border: 1.5px solid var(--cream-border);
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: var(--shadow-md);
  animation: fadeUp 0.5s ease 0.1s both;
}

/* Form Groups */
.form-group {
  margin-bottom: 24px;
}

.conditional-pin[hidden] {
  display: none;
}

.conditional-pin:not([hidden]) {
  animation: fadeUp 0.3s ease both;
  background: var(--gold-pale);
  border: 1px solid rgba(200, 151, 58, 0.25);
  border-radius: 12px;
  padding: 16px;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.825rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.form-group label .required {
  color: var(--gold);
  font-size: 1rem;
  line-height: 1;
}

.form-control {
  width: 100%;
  background: var(--cream);
  border: 1.5px solid var(--cream-border);
  border-radius: 10px;
  padding: 13px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.975rem;
  color: var(--ink);
  outline: none;
  transition: all 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.form-control:focus {
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(200, 151, 58, 0.12);
}

.form-control::placeholder {
  color: var(--ink-muted);
}

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239A948A' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-hint {
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin-top: 6px;
}

/* Balance quick-select pills */
.balance-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.balance-pill {
  background: var(--cream);
  border: 1.5px solid var(--cream-border);
  border-radius: 8px;
  padding: 7px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s;
  font-family: 'DM Sans', sans-serif;
  color: var(--ink-soft);
}

.balance-pill:hover,
.balance-pill.active {
  background: var(--gold-pale);
  border-color: var(--gold);
  color: var(--gold);
}

.divider {
  border: none;
  border-top: 1px solid var(--cream-border);
  margin: 28px 0;
}

.optional-tag {
  display: inline-block;
  background: var(--cream-dark);
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  text-transform: uppercase;
  margin-left: 6px;
  vertical-align: middle;
}

.btn-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Submit Button */
.submit-btn {
  width: 100%;
  background: linear-gradient(135deg, #C8973A, #E8B84B);
  color: var(--white);
  border: none;
  padding: 15px;
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 4px 16px rgba(200, 151, 58, 0.35);
  letter-spacing: 0.01em;
  margin-top: 8px;
  position: relative;
  overflow: hidden;
}

.submit-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200, 151, 58, 0.45);
}

.submit-btn:hover::after {
  opacity: 1;
}

.submit-btn:active {
  transform: translateY(0);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Trust badges */
.trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--ink-muted);
}


/* ═══════════════════════════════════════════════════
   SUCCESS PAGE
═══════════════════════════════════════════════════ */

.success-wrap {
  max-width: 500px;
  margin: 0 auto;
  padding: 100px 40px 80px;
  text-align: center;
}

.success-icon-wrap {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #3A7D5C, #4DA077);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px;
  font-size: 36px;
  color: white;
  box-shadow: 0 8px 24px rgba(58, 125, 92, 0.3);
  animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.success-wrap h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
  animation: fadeUp 0.5s ease 0.2s both;
}

.success-wrap > p {
  font-size: 1.05rem;
  color: var(--ink-soft);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 40px;
  animation: fadeUp 0.5s ease 0.3s both;
}

.success-summary {
  background: var(--white);
  border: 1.5px solid var(--cream-border);
  border-radius: 16px;
  padding: 24px 28px;
  text-align: left;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
  animation: fadeUp 0.5s ease 0.35s both;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--cream-border);
  font-size: 0.9rem;
}

.summary-row:last-child {
  border-bottom: none;
}

.summary-label {
  color: var(--ink-muted);
  font-weight: 400;
}

.summary-value {
  font-weight: 600;
  color: var(--ink);
}

.success-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.5s ease 0.45s both;
}

/* ═══════════════════════════════════════════════════
   FAILED PAGE
═══════════════════════════════════════════════════ */

.failed-wrap {
  max-width: 500px;
  margin: 0 auto;
  padding: 100px 40px 80px;
  text-align: center;
}

.failed-icon-wrap {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #C0392B, #E74C3C);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px;
  font-size: 36px;
  color: white;
  box-shadow: 0 8px 24px rgba(192, 57, 43, 0.3);
  animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.failed-wrap h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #C0392B;
  animation: fadeUp 0.5s ease 0.2s both;
}

.failed-wrap > p {
  font-size: 1.05rem;
  color: var(--ink-soft);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 40px;
  animation: fadeUp 0.5s ease 0.3s both;
}

.failed-summary {
  background: var(--white);
  border: 1.5px solid #F5C6C6;
  border-radius: 16px;
  padding: 24px 28px;
  text-align: left;
  margin-bottom: 32px;
  box-shadow: 0 4px 16px rgba(192, 57, 43, 0.07);
  animation: fadeUp 0.5s ease 0.35s both;
}

.failed-summary .summary-row {
  border-bottom-color: #FAE5E5;
}

.failed-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.5s ease 0.45s both;
}

@media (max-width: 600px) {
  .failed-wrap {
    padding: 60px 24px 60px;
  }
}

/* ═══════════════════════════════════════════════════
   TOAST NOTIFICATION
═══════════════════════════════════════════════════ */

.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: var(--ink);
  color: var(--white);
  padding: 14px 22px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 999;
  max-width: 320px;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast.error {
  background: #C0392B;
}


/* ── Loading Spinner ─────────────────────────────── */
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}


/* ═══════════════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════════════ */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes popIn {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}


/* ═══════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════ */

@media (max-width: 600px) {
  nav {
    padding: 0 20px;
  }

  .hero {
    padding: 60px 24px 40px;
  }

  .section {
    padding: 0 24px 60px;
  }

  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-row {
    grid-template-columns: 1fr;
  }

  .form-wrap {
    padding: 40px 24px 60px;
  }

  .form-card {
    padding: 24px 20px;
  }

  .success-wrap {
    padding: 60px 24px 60px;
  }

  .footer {
    padding: 20px 24px;
  }
}

/* Reveal animation Form Contact*/
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Form status */
.form-status {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  min-height: 1.2em;
}
.form-status.success { color: #22c55e; }
.form-status.error   { color: #ef4444; }

/* CSS for Group listing */
/* Gift Card Type dropdown styles
   Pulls colors/spacing/fonts straight from the site's :root variables
   (--cream, --gold, --ink, etc.) so it matches .form-control exactly.
   Still prefixed "gcd-" so the toggle/state classes can't collide
   with anything else in the codebase. */

.gcd-form-group {
  margin-bottom: 24px;
}
.gcd-form-group *,
.gcd-form-group *::before,
.gcd-form-group *::after {
  box-sizing: border-box;
}

/* Matches .form-group label exactly */
.gcd-form-group .gcd-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.825rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
  font-family: 'DM Sans', sans-serif;
}
.gcd-form-group .gcd-required {
  color: var(--gold);
  font-size: 1rem;
  line-height: 1;
}

.gcd-form-group .gcd-native-select {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Custom select shell */
.gcd-form-group .gcd-select {
  position: relative;
  width: 100%;
  z-index: 1;
}

/* Matches .form-control exactly */
.gcd-form-group .gcd-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--cream);
  border: 1.5px solid var(--cream-border);
  border-radius: 10px;
  padding: 13px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.975rem;
  color: var(--ink);
  cursor: pointer;
  outline: none;
  transition: all 0.2s;
}

.gcd-form-group .gcd-trigger:hover {
  border-color: var(--gold);
}

.gcd-form-group .gcd-select.gcd-is-open .gcd-trigger {
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(200, 151, 58, 0.12);
}

.gcd-form-group .gcd-trigger-content {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}
.gcd-form-group .gcd-placeholder {
  color: var(--ink-muted);
}

.gcd-form-group .gcd-chevron {
  flex-shrink: 0;
  color: var(--ink-muted);
  transition: transform .15s ease;
}
.gcd-form-group .gcd-select.gcd-is-open .gcd-chevron {
  transform: rotate(180deg);
  color: var(--gold);
}

/* Options list — styled like .form-card */
.gcd-form-group .gcd-options {
  list-style: none;
  margin: 8px 0 0;
  padding: 6px;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border: 1.5px solid var(--cream-border);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  max-height: 280px;
  overflow-y: auto;
  z-index: 9999;
  display: none;
}

.gcd-form-group .gcd-select.gcd-is-open .gcd-options {
  display: block !important;
}

.gcd-form-group .gcd-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 0.925rem;
  font-family: 'DM Sans', sans-serif;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s ease;
}
.gcd-form-group .gcd-option:hover,
.gcd-form-group .gcd-option.gcd-is-active {
  background: var(--gold-pale);
}
.gcd-form-group .gcd-option.gcd-is-active {
  color: var(--gold);
  font-weight: 500;
}

.gcd-form-group .gcd-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
  border-radius: 4px;
  flex-shrink: 0;
}
.gcd-form-group .gcd-logo-square {
  background: #0E1111;
  padding: 2px;
}

.gcd-form-group .gcd-options::-webkit-scrollbar {
  width: 8px;
}
.gcd-form-group .gcd-options::-webkit-scrollbar-track {
  background: transparent;
}
.gcd-form-group .gcd-options::-webkit-scrollbar-thumb {
  background: var(--cream-border);
  border-radius: 8px;
}

/* 404 page */
.error-page-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 15%, rgba(232, 184, 75, 0.18), transparent 32%),
    radial-gradient(circle at 85% 85%, rgba(58, 125, 92, 0.09), transparent 28%),
    var(--cream);
}

.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 100px 24px 48px;
}

.error-brand {
  position: absolute;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
}

.error-card {
  width: min(100%, 620px);
  position: relative;
  overflow: hidden;
  padding: 64px 48px 48px;
  background: rgba(255, 255, 255, 0.92);
  border: 1.5px solid var(--cream-border);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  animation: fadeUp 0.55s ease both;
}

.error-code {
  position: absolute;
  top: -34px;
  right: 18px;
  color: rgba(200, 151, 58, 0.08);
  font-family: 'Playfair Display', serif;
  font-size: 9rem;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

.error-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin: 0 auto 24px;
  border-radius: 20px;
  background: var(--gold-pale);
  color: var(--gold);
  transform: rotate(-4deg);
}

.error-icon .ui-icon {
  width: 34px;
  height: 34px;
}

.error-eyebrow {
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.error-card h1 {
  margin-bottom: 14px;
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 6vw, 2.8rem);
  line-height: 1.1;
}

.error-copy {
  max-width: 470px;
  margin: 0 auto 30px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.error-home-link {
  justify-content: center;
  text-decoration: none;
}

.error-redirect {
  margin-top: 18px;
  color: var(--ink-muted);
  font-size: 0.78rem;
}

@media (max-width: 600px) {
  .error-card {
    padding: 52px 24px 36px;
  }

  .error-code {
    font-size: 7rem;
  }
}
