/* ============================================================
   DonorSelect — /css/styles.css
   Shared styles for all pages. Page-specific styles live
   in a <style> block on each individual page.
   ============================================================ */

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

/* ── Variables ── */
:root {
  --cream:  #FAF7F2;
  --cream2: #F0EBE1;
  --cream3: #E6DDD0;
  --ink:    #1A1612;
  --ink2:   #3D3730;
  --ink3:   #6B6159;
  --terra:  #B85C2A;
  --terra2: #D4713A;
  --sage:   #3D5C35;
  --sage2:  #BFCFBB;
  --gold:   #C8963C;
  --serif:  'Cormorant Garant', Georgia, serif;
  --sans:   'DM Sans', system-ui, sans-serif;
  --max:    1200px;

  /* Radius scale */
  --rad-sm: 2px;
  --rad:    4px;
  --rad-lg: 6px;

  /* Semantic actor colors */
  --bg-charity:  #E6F0E3;
  --fg-charity:  #1F3D1A;
  --bg-donor:    #EDE9F5;
  --fg-donor:    #31296B;
  --bg-platform: #F0EBE1;
  --fg-platform: #3D3730;
  --bg-vendor:   #F5EDDA;
  --fg-vendor:   #5C3A08;
  --bg-danger:   #FCE8E4;
  --fg-danger:   #B85C2A;
  --bd-danger:   #D4713A;
}

/* ── Base ── */
html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Grain 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='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 10;
  opacity: 0.5;
}

/* ── Typography ── */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.15; }

.display {
  font-family: var(--serif);
  font-size: clamp(3.2rem, 7vw, 6rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.display em { font-style: italic; color: var(--terra); }

.section-label {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink3);
}

/* ── Layout shell — shared max-width + horizontal padding ── */
.shell,
.container,
.nav-inner,
.breadcrumb-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 40px;
}
@media (max-width: 640px) {
  .shell,
  .container,
  .nav-inner,
  .breadcrumb-inner { padding: 0 20px; }
}

section { padding: 100px 0; }
hr.rule { border: none; border-top: 1px solid var(--cream3); margin: 0; }

/* ── Shared brand logo box (nav + footer) ── */
.brand-logo-box {
  overflow: hidden;
  flex-shrink: 0;
  background: var(--ink);
  border-radius: 5px;
}
.brand-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ── Nav ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,247,242,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--cream3);
}
.nav-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo > span:not(.nav-logo-icon) { color: inherit; }
.nav-logo-icon { width: 56px; height: 35px; }

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--ink2);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--terra); }

@media (max-width: 768px) { .nav-links .hide-mobile { display: none; } }
.show-mobile { display: none; }
@media (max-width: 768px) { .show-mobile { display: flex; } }

/* ── Join dropdown ── */
.nav-join { position: relative; }
.nav-join-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--ink);
  color: var(--cream);
  border: none;
  padding: 9px 18px;
  border-radius: var(--rad-sm);
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.nav-join-btn:hover,
.nav-join.is-open .nav-join-btn { background: var(--terra); }
.nav-join-arrow { transition: transform 0.2s ease; flex-shrink: 0; }
.nav-join.is-open .nav-join-arrow { transform: rotate(180deg); }

.nav-join-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 260px;
  background: #fff;
  border: 1px solid var(--cream3);
  border-radius: var(--rad-lg);
  box-shadow: 0 8px 32px rgba(26,22,18,0.12);
  padding: 6px;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 150;
}
.nav-join.is-open .nav-join-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.nav-join-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: var(--rad);
  text-decoration: none;
  color: var(--ink);
  transition: background 0.15s;
}
.nav-join-item:hover { background: var(--cream); }
.nav-join-item + .nav-join-item { border-top: 1px solid var(--cream2); margin-top: 2px; padding-top: 13px; }
.nav-join-item strong { display: block; font-size: 0.88rem; font-weight: 500; margin-bottom: 2px; }
.nav-join-item em { display: block; font-size: 0.76rem; font-style: normal; color: var(--ink3); }
.join-item-icon { font-size: 0.5rem; flex-shrink: 0; }
.nav-join-item--vendor  .join-item-icon { color: var(--gold); }
.nav-join-item--charity .join-item-icon { color: var(--sage); }

/* ── Hamburger ── */
.nav-hamburger {
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--rad);
  transition: background 0.15s;
  flex-shrink: 0;
}
.nav-hamburger:hover { background: var(--cream2); }
.nav-hamburger span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Overlay ── */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26,22,18,0.4);
  z-index: 199;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.nav-overlay.is-visible { display: block; opacity: 1; }

/* ── Drawer ── */
.nav-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(320px, 88vw);
  background: var(--cream);
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 32px rgba(26,22,18,0.12);
}
.nav-drawer.is-open { transform: translateX(0); }

.nav-drawer-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  padding: calc(64px + 16px) 20px 32px;
}

.drawer-ctas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-top: 16px;
}
.drawer-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px 10px;
  border-radius: var(--rad-lg);
  text-decoration: none;
  line-height: 1.35;
  transition: opacity 0.15s, transform 0.15s;
}
.drawer-cta:hover { opacity: 0.88; transform: translateY(-1px); }
.drawer-cta--vendor  { background: var(--bg-vendor);  color: var(--fg-vendor);  border: 1px solid rgba(200,150,60,0.25); }
.drawer-cta--charity { background: var(--bg-charity); color: var(--fg-charity); border: 1px solid rgba(61,92,53,0.2); }
.drawer-cta-label { font-size: 0.82rem; font-weight: 500; }

.drawer-links {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--cream3);
  padding-top: 8px;
}
.drawer-links a {
  font-size: 1rem;
  font-weight: 400;
  color: var(--ink2);
  text-decoration: none;
  padding: 13px 4px;
  border-bottom: 1px solid var(--cream2);
  transition: color 0.15s;
}
.drawer-links a:last-child { border-bottom: none; }
.drawer-links a:hover,
.drawer-links a.active { color: var(--terra); }

/* ── Drawer login links ── */
.drawer-logins {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 0;
  border-top: 1px solid var(--cream2);
}
.drawer-login-link {
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  padding: 8px 4px;
  transition: color 0.15s;
}
.drawer-login-link--charity { color: var(--fg-charity); }
.drawer-login-link--charity:hover { color: var(--sage); }
.drawer-login-link--vendor  { color: var(--fg-vendor); }
.drawer-login-link--vendor:hover  { color: var(--gold); }

/* ── Hero ── */
.hero { position: relative; overflow: hidden; }

.hero-rule {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--terra) 0%, var(--gold) 50%, var(--sage) 100%);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  background: var(--cream2);
  border: 1px solid var(--cream3);
  border-radius: 99px;
  padding: 5px 14px 5px 8px;
}

/* Pulse dot */
.hero-eyebrow-dot,
.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--terra);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%       { transform: scale(1.4); opacity: 0.7; }
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--ink2);
  line-height: 1.7;
  max-width: 520px;
}

/* ── Buttons ── */

/* Base — all buttons share this */
.btn,
.btn-terra, .btn-primary,
.btn-ink,
.btn-white,
.btn-outline,
.btn-outline-white {
  display: inline-block;
  border-radius: var(--rad-sm);
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  cursor: pointer;
  border: none;
}

.btn-terra,
.btn-primary {
  background: var(--terra);
  color: #fff;
  padding: 14px 32px;
}
.btn-terra:hover,
.btn-primary:hover { background: #9E4A1E; transform: translateY(-1px); }

.btn-ink {
  background: var(--ink);
  color: var(--cream);
  padding: 13px 28px;
}
.btn-ink:hover { background: var(--terra); }

.btn-white {
  background: #fff;
  color: var(--terra);
  padding: 14px 32px;
}
.btn-white:hover { background: var(--cream2); transform: translateY(-1px); }

.btn-outline {
  border: 1px solid var(--ink2);
  color: var(--ink2);
  background: transparent;
  padding: 12px 28px;
  font-size: 0.88rem;
}
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }

.btn-outline-white {
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  background: transparent;
  padding: 14px 32px;
  font-weight: 400;
}
.btn-outline-white:hover { border-color: #fff; }

/* Ghost — text link with animated arrow */
.btn-ghost {
  color: var(--ink2);
  font-size: 0.88rem;
  font-weight: 400;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}
.btn-ghost:hover { color: var(--ink); }
.btn-ghost::after { content: '→'; transition: transform 0.2s; }
.btn-ghost:hover::after { transform: translateX(3px); }

/* ── Footer ── */
footer {
  background: var(--ink);
  color: rgba(250,247,242,0.5);
  padding: 60px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand-name {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--cream);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-brand-name > span:not(.footer-logo-icon) { color: inherit; }
.footer-logo-icon {
  width: 64px;
  height: 40px;
  border: 1px solid rgba(200,150,60,0.25);
}

.footer-tagline { font-size: 0.82rem; line-height: 1.6; margin-bottom: 16px; }
.footer-note    { font-size: 0.75rem; color: rgba(250,247,242,0.3); line-height: 1.6; }

.footer-col h4 {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(250,247,242,0.35);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a {
  font-size: 0.85rem;
  color: rgba(250,247,242,0.55);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--cream); }

.footer-bottom {
  border-top: 1px solid rgba(250,247,242,0.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 0.78rem; }
.footer-foobar   { font-size: 0.75rem; color: rgba(250,247,242,0.25); }

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

/* ── Breadcrumb ── */
.breadcrumb { border-bottom: 1px solid var(--cream3); padding: 12px 0; background: var(--cream2); }
.breadcrumb-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--ink3);
}
.breadcrumb-inner a { color: var(--ink3); text-decoration: none; }
.breadcrumb-inner a:hover { color: var(--terra); }
.breadcrumb-sep { opacity: 0.4; }

/* ── Inner-page hero ── */
.hero-inner { max-width: 760px; }
.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.hero-title em { font-style: italic; color: var(--terra); }

/* ── Loop grid ── */
.loop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
@media (max-width: 800px) { .loop-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px)  { .loop-grid { grid-template-columns: 1fr; } }
.loop-step { background: var(--cream); padding: 36px 28px; }

/* ── Feature list ── */
.feature-list { display: flex; flex-direction: column; gap: 14px; list-style: none; }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--ink2);
  line-height: 1.5;
}
.feature-list li::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  background: var(--terra);
  border-radius: var(--rad-sm);
  margin-top: 1px;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='8' viewBox='0 0 10 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4L3.5 6.5L9 1' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}
.for-charities .feature-list li { color: rgba(250,247,242,0.8); }

/* ── UI badges — shared base ── */
.verified-badge,
.panel-badge {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: var(--rad-sm);
}
.verified-badge { background: var(--sage2); color: var(--sage); }
.panel-badge    { padding: 3px 8px; }

.badge-open      { background: rgba(61,92,53,0.35);   color: #90C47A; }
.badge-claimed   { background: rgba(184,92,42,0.3);   color: var(--terra2); }
.badge-fulfilled { background: rgba(200,150,60,0.25); color: var(--gold); }

.panel-dot { width: 8px; height: 8px; border-radius: 50%; }

/* ── Brand name treatment ── */
.ds-sel { color: var(--terra); font-weight: 600; }
.for-charities  .ds-sel,
.origin-section .ds-sel,
.three-sides    .ds-sel,
.stats-bar      .ds-sel,
footer          .ds-sel { color: var(--terra2); }
.cta-section     .ds-sel,
.promise-section .ds-sel { color: rgba(255,255,255,0.75); }

/* ── Nav demo link ── */
.nav-demo:hover  { color: var(--terra) !important; }
.nav-demo.active { color: var(--terra) !important; }

/* ══════════════════════════════════════════════════════════
   Forms — shared across register.asp, vendors.asp, and
   future auth and intake pages.
   ══════════════════════════════════════════════════════════ */

.form-hero { background: var(--cream); padding: 56px 0 48px; border-bottom: 1px solid var(--cream3); }
.form-hero-label { margin-bottom: 10px; }
.form-hero-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 12px;
}
.form-hero-title em { font-style: italic; color: var(--terra); }
.form-hero-sub  { font-size: 1rem; color: var(--ink2); line-height: 1.7; max-width: 520px; }
.form-hero-meta { display: flex; align-items: center; gap: 16px; margin-top: 16px; flex-wrap: wrap; }
.form-hero-meta span { font-size: 0.78rem; color: var(--ink3); display: flex; align-items: center; gap: 5px; }
.form-hero-meta span::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--terra); flex-shrink: 0; }
.form-hero-meta span:first-child::before { display: none; }

.form-page-body { padding: 56px 0 100px; }
.form-layout    { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }
@media (max-width: 960px) { .form-layout { grid-template-columns: 1fr; } }

.form-card { background: #fff; border: 1px solid var(--cream3); }

.form-section { padding: 36px 40px; border-bottom: 1px solid var(--cream3); }
.form-section:last-child { border-bottom: none; }
@media (max-width: 640px) { .form-section { padding: 28px 24px; } }

.form-section-title { font-family: var(--serif); font-size: 1.15rem; font-weight: 500; color: var(--ink); margin-bottom: 4px; }
.form-section-desc  { font-size: 0.82rem; color: var(--ink3); margin-bottom: 24px; line-height: 1.6; }

.form-grid      { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid-full { grid-column: 1 / -1; }
.form-grid-3    { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 640px) { .form-grid, .form-grid-3 { grid-template-columns: 1fr; } }

.form-group    { display: flex; flex-direction: column; gap: 6px; }
.form-label    { font-size: 0.8rem; font-weight: 500; color: var(--ink2); display: flex; align-items: center; gap: 4px; }
.form-required { color: var(--terra); font-size: 0.75rem; }
.form-hint     { font-size: 0.73rem; color: var(--ink3); line-height: 1.5; }

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--cream3);
  border-radius: var(--rad);
  font-family: var(--sans);
  font-size: 0.88rem;
  color: var(--ink);
  background: var(--cream);
  transition: border-color 0.2s, background 0.2s;
  box-sizing: border-box;
  -webkit-appearance: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus { outline: none; border-color: var(--terra); background: #fff; }
.form-input::placeholder,
.form-textarea::placeholder { color: var(--ink3); }
.form-input.error,
.form-select.error,
.form-textarea.error { border-color: var(--terra); background: #fff8f5; }

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%236B6159' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}
.form-textarea { resize: vertical; min-height: 100px; line-height: 1.6; }
.form-ein-wrap .form-input { padding-left: 14px; letter-spacing: 0.04em; }

.form-check-group { display: flex; flex-direction: column; gap: 10px; }
.form-check-grid  { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
@media (max-width: 640px) { .form-check-grid { grid-template-columns: 1fr; } }

.form-check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--cream3);
  border-radius: var(--rad-sm);
  appearance: none;
  -webkit-appearance: none;
  background: var(--cream);
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  position: relative;
}
.form-check input[type="radio"] { border-radius: 50%; }
.form-check input[type="checkbox"]:checked,
.form-check input[type="radio"]:checked { background: var(--terra); border-color: var(--terra); }
.form-check input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='8' viewBox='0 0 10 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4L3.5 6.5L9 1' stroke='white' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}
.form-check input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  inset: 3px;
  background: #fff;
  border-radius: 50%;
}
.form-check:hover input { border-color: var(--terra); }
.form-check-label { font-size: 0.85rem; color: var(--ink2); line-height: 1.5; }
.form-check-label strong { display: block; font-weight: 500; color: var(--ink); }

.form-tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
@media (max-width: 640px) { .form-tier-grid { grid-template-columns: 1fr; } }
.form-tier-card { padding: 18px 20px; background: var(--cream2); cursor: pointer; transition: background 0.15s; position: relative; }
.form-tier-card:hover { background: var(--cream3); }
.form-tier-card input { position: absolute; opacity: 0; width: 0; height: 0; }
.form-tier-card.selected { background: var(--ink); }
.form-tier-name   { font-size: 0.78rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink3);  margin-bottom: 4px; transition: color 0.15s; }
.form-tier-price  { font-family: var(--serif); font-size: 1.4rem; font-weight: 500; color: var(--ink);  line-height: 1;    margin-bottom: 4px; transition: color 0.15s; }
.form-tier-detail { font-size: 0.73rem; color: var(--ink3); transition: color 0.15s; }
.form-tier-card.selected .form-tier-name   { color: rgba(250,247,242,0.45); }
.form-tier-card.selected .form-tier-price  { color: var(--cream); }
.form-tier-card.selected .form-tier-detail { color: rgba(250,247,242,0.55); }

.form-submit-section { padding: 32px 40px; background: var(--cream2); border-top: 1px solid var(--cream3); }
@media (max-width: 640px) { .form-submit-section { padding: 24px; } }
.form-submit-row  { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form-submit-btn {
  background: var(--terra);
  color: #fff;
  border: none;
  padding: 14px 36px;
  border-radius: var(--rad-sm);
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.form-submit-btn:hover { background: #9E4A1E; transform: translateY(-1px); }
.form-submit-note { font-size: 0.78rem; color: var(--ink3); line-height: 1.5; }
.form-error-msg   { font-size: 0.78rem; color: var(--terra); display: none; }
.form-error-msg.visible { display: block; }

.form-success-wrap {
  display: none;
  text-align: center;
  padding: 80px 40px;
  background: #fff;
  border: 1px solid var(--cream3);
}
.form-success-icon  { font-size: 3rem; margin-bottom: 20px; }
.form-success-title { font-family: var(--serif); font-size: 2rem; font-weight: 500; margin-bottom: 12px; }
.form-success-body  { font-size: 0.95rem; color: var(--ink2); line-height: 1.8; max-width: 480px; margin: 0 auto 32px; }
.form-success-next  { display: flex; flex-direction: column; gap: 12px; max-width: 440px; margin: 0 auto; text-align: left; }
.form-success-step  { display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px; background: var(--cream2); border-radius: var(--rad); }
.form-success-step-num  { width: 24px; height: 24px; border-radius: 50%; background: var(--terra); color: #fff; font-size: 0.72rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.form-success-step-text strong { display: block; font-size: 0.85rem; font-weight: 500; color: var(--ink); margin-bottom: 2px; }
.form-success-step-text span   { font-size: 0.78rem; color: var(--ink3); line-height: 1.5; }

.form-sidebar       { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 80px; }
.form-sidebar-card  { background: var(--cream2); padding: 28px; }
.form-sidebar-label { font-size: 0.68rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink3); margin-bottom: 14px; }
.form-sidebar-step  { display: flex; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--cream3); }
.form-sidebar-step:last-child { border-bottom: none; }
.form-sidebar-step-num  { width: 22px; height: 22px; border-radius: 50%; background: var(--terra); color: #fff; font-size: 0.7rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.form-sidebar-step strong { display: block; font-size: 0.82rem; font-weight: 500; color: var(--ink); margin-bottom: 2px; }
.form-sidebar-step span   { font-size: 0.75rem; color: var(--ink3); line-height: 1.5; }
