/* Tu Mapa Energético — design tokens */
:root {
  --cream-50: #faf3e2;
  --cream-100: #f4ead0;
  --cream-200: #ecdfbe;
  --cream-300: #e3d3a8;
  --beige-shade: #d9c79a;

  --yellow-pill: #f5e891;
  --yellow-pill-strong: #ecdb6e;
  --yellow-pill-soft: #fbf3b8;

  --lavender-50: #ece8f4;
  --lavender-200: #c9bfe0;
  --lavender-400: #9c8fbf;
  --lavender-500: #8676ad;
  --lavender-600: #6f5f99;

  --sky-100: #d8e6ee;
  --sky-200: #b7cee0;
  --sky-300: #8cb4cf;

  --ink: #4a3f5c;
  --ink-soft: #6c6082;
  --ink-mute: #9890a8;

  --shadow-soft: 0 8px 30px -10px rgba(110, 95, 140, 0.18);
  --shadow-pill: 0 4px 14px -6px rgba(180, 158, 90, 0.35);
  --shadow-glow: 0 0 40px -8px rgba(245, 232, 145, 0.55);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Manrope', system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream-100);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.serif { font-family: 'Cormorant Garamond', 'Cormorant', serif; font-weight: 600; letter-spacing: 0.01em; }
.italic { font-style: italic; }

/* ---------- background canvas ---------- */
html, body {
  background-image: url('assets/bg.jpeg');
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center center;
  background-size: cover;
  background-color: #f4ead0;
  min-height: 100%;
}

.bg-stage {
  position: fixed;
  inset: 0;
  background: url('assets/bg.jpeg') center center / cover no-repeat fixed, #f4ead0;
  z-index: -2;
}

.bg-stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.7;
}

/* tiny twinkling stars */
.twinkle {
  position: fixed;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 250, 220, 0.9);
  box-shadow: 0 0 6px 1px rgba(255, 245, 200, 0.7);
  pointer-events: none;
  z-index: 0;
  animation: tw 4s ease-in-out infinite;
}
@keyframes tw {
  0%, 100% { opacity: 0.15; transform: scale(0.6); }
  50% { opacity: 0.95; transform: scale(1); }
}

/* ---------- yellow pill ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 34px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--yellow-pill-soft) 0%, var(--yellow-pill) 60%, var(--yellow-pill-strong) 100%);
  color: #5a4818;
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.015em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -2px 6px rgba(180, 145, 30, 0.18),
    0 8px 20px -8px rgba(180, 145, 30, 0.4),
    0 0 0 1px rgba(220, 195, 90, 0.35);
  border: none;
  cursor: pointer;
  transition: transform 280ms cubic-bezier(.2,.8,.2,1), box-shadow 280ms ease, filter 280ms ease;
  position: relative;
}
.pill:hover {
  transform: translateY(-2px);
  filter: brightness(1.05) saturate(1.05);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 -2px 6px rgba(180, 145, 30, 0.22),
    0 14px 28px -10px rgba(180, 145, 30, 0.55),
    0 0 28px -4px rgba(245, 230, 130, 0.6),
    0 0 0 1px rgba(220, 195, 90, 0.4);
}
.pill:active { transform: translateY(0); }
.pill.sm { padding: 8px 22px; font-size: 17px; }
.pill.tag { padding: 8px 22px; font-size: 17px; }

/* lavender pill */
.pill-lav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 34px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--lavender-400) 0%, var(--lavender-500) 100%);
  color: #fdfbf3;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  border: none;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 8px 20px -8px rgba(110, 95, 140, 0.55);
  transition: all 260ms cubic-bezier(.2,.8,.2,1);
}
.pill-lav:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, var(--lavender-500) 0%, var(--lavender-600) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 12px 28px -8px rgba(110, 95, 140, 0.7),
    0 0 24px -4px rgba(156, 143, 191, 0.5);
}
.pill-lav:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

/* ---------- fade animation ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 700ms cubic-bezier(.2,.8,.2,1) both; }
.delay-1 { animation-delay: 80ms; }
.delay-2 { animation-delay: 160ms; }
.delay-3 { animation-delay: 240ms; }
.delay-4 { animation-delay: 320ms; }
.delay-5 { animation-delay: 400ms; }

@keyframes drift {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(0.5deg); }
}

@keyframes shimmer {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.7; }
}

/* ---------- glass card ---------- */
.glass {
  background: linear-gradient(180deg, rgba(255, 251, 235, 0.55) 0%, rgba(245, 236, 210, 0.35) 100%);
  backdrop-filter: blur(8px) saturate(1.05);
  -webkit-backdrop-filter: blur(8px) saturate(1.05);
  border: 1px solid rgba(255, 248, 220, 0.55);
  border-radius: 28px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 20px 60px -25px rgba(110, 95, 140, 0.22);
}

/* ---------- form controls ---------- */
.field-label {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

/* ---------- ornate section title (replaces big yellow pill) ---------- */
.section-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 36px;
  position: relative;
}
.section-title__moon {
  margin-bottom: 4px;
  opacity: 0.85;
  animation: shimmer 3.6s ease-in-out infinite;
}
.section-title__text {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.05;
  letter-spacing: 0.005em;
  color: #3d2f55;
  margin: 0;
  position: relative;
  background: linear-gradient(180deg, #4a3f5c 0%, #6f5f99 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 1px 0 rgba(255, 252, 220, 0.4);
}
.section-title__ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
  color: #b89a4c;
  opacity: 0.9;
}
.section-title__line {
  display: block;
  width: 70px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184, 154, 76, 0.7), transparent);
}

/* ---------- ornate field label (replaces small yellow pill) ---------- */
.field-label-ornate {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 14px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 600;
  font-size: 17px;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-align: center;
  position: relative;
  width: fit-content;
}
.field-label-ornate__text {
  position: relative;
  padding: 0 4px;
}
.field-label-ornate__text::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184, 154, 76, 0.75), transparent);
}
.field-label-ornate__tick {
  display: inline-block;
  width: 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184, 154, 76, 0.6));
  position: relative;
}
.field-label-ornate__tick:last-child {
  background: linear-gradient(90deg, rgba(184, 154, 76, 0.6), transparent);
}
.field-label-ornate__tick::before {
  content: '';
  position: absolute;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #b89a4c;
  transform: translateY(-50%);
  opacity: 0.7;
}
.field-label-ornate__tick:first-child::before { right: -1px; }
.field-label-ornate__tick:last-child::before  { left: -1px; }

.seg {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.seg-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  background: rgba(255, 252, 240, 0.65);
  color: var(--ink);
  border: 1px solid rgba(180, 158, 110, 0.25);
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  cursor: pointer;
  transition: all 220ms ease;
  min-width: 150px;
}
.seg-btn:hover {
  background: rgba(255, 253, 240, 0.95);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px -8px rgba(110, 95, 140, 0.2);
}
.seg-btn.active {
  background: linear-gradient(180deg, var(--yellow-pill-soft) 0%, var(--yellow-pill) 100%);
  border-color: rgba(220, 195, 90, 0.5);
  color: #6e5b1f;
  box-shadow: var(--shadow-pill), 0 0 18px -4px rgba(245, 232, 145, 0.7);
}

.select-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 260px;
  overflow-y: auto;
  padding: 10px;
  background: rgba(255, 252, 240, 0.5);
  border: 1px solid rgba(180, 158, 110, 0.2);
  border-radius: 22px;
  min-width: 150px;
  scrollbar-width: thin;
  scrollbar-color: var(--lavender-200) transparent;
}
.select-list::-webkit-scrollbar { width: 6px; }
.select-list::-webkit-scrollbar-thumb { background: var(--lavender-200); border-radius: 3px; }

.select-item {
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255, 252, 240, 0.7);
  border: 1px solid rgba(180, 158, 110, 0.15);
  color: var(--ink);
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  cursor: pointer;
  text-align: center;
  transition: all 180ms ease;
}
.select-item:hover {
  background: rgba(245, 232, 145, 0.4);
  border-color: rgba(220, 195, 90, 0.4);
}
.select-item.active {
  background: linear-gradient(180deg, var(--yellow-pill-soft) 0%, var(--yellow-pill) 100%);
  border-color: rgba(220, 195, 90, 0.5);
  color: #6e5b1f;
  font-weight: 600;
  box-shadow: 0 0 14px -4px rgba(245, 232, 145, 0.8);
}

/* ---------- dropdown ---------- */
.dropdown-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 20px;
  border-radius: 999px;
  background: rgba(255, 252, 240, 0.92);
  border: 1px solid rgba(180, 158, 110, 0.4);
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
  transition: all 220ms ease;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.5),
    0 2px 8px -4px rgba(110,95,140,0.15);
}
.dropdown-trigger:hover {
  background: rgba(255, 253, 240, 1);
  border-color: rgba(220, 195, 90, 0.45);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.6),
    0 6px 16px -6px rgba(110,95,140,0.25),
    0 0 18px -4px rgba(245, 232, 145, 0.4);
}
.dropdown-menu {
  z-index: 9999;
  background: rgba(255, 252, 240, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(180, 158, 110, 0.3);
  border-radius: 22px;
  padding: 8px;
  overflow-y: auto;
  box-shadow:
    0 18px 40px -10px rgba(110, 95, 140, 0.3),
    0 0 24px -6px rgba(245, 232, 145, 0.35);
  animation: ddIn 200ms cubic-bezier(.2,.8,.2,1);
  scrollbar-width: thin;
  scrollbar-color: var(--lavender-200) transparent;
}
.dropdown-menu::-webkit-scrollbar { width: 6px; }
.dropdown-menu::-webkit-scrollbar-thumb { background: var(--lavender-200); border-radius: 3px; }

@keyframes ddIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.dropdown-item {
  padding: 8px 16px;
  border-radius: 999px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: all 160ms ease;
  text-align: left;
}
.dropdown-item:hover {
  background: rgba(245, 232, 145, 0.4);
}
.dropdown-item.active {
  background: linear-gradient(180deg, var(--yellow-pill-soft) 0%, var(--yellow-pill) 100%);
  color: #6e5b1f;
  font-weight: 600;
  box-shadow: 0 0 10px -3px rgba(245, 232, 145, 0.7);
}

.date-group {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.date-col { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.date-col-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- nav button (the 5 main category buttons) ---------- */
.nav-btn {
  width: 100%;
  text-align: center;
  position: relative;
}
.nav-btn .glow {
  position: absolute;
  inset: -8px;
  border-radius: 999px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(245, 232, 145, 0.6) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 400ms ease;
  pointer-events: none;
  z-index: -1;
}
.nav-btn:hover .glow { opacity: 1; }

/* ---------- ornamental nav-card (new aesthetic section buttons) ---------- */
.nav-card {
  position: relative;
  display: grid;
  grid-template-columns: 34px 28px 1fr 38px;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 22px;
  border-radius: 18px;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: 'Cormorant Garamond', serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 252, 235, 0.92) 0%, rgba(248, 238, 212, 0.88) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 0 0 1px rgba(220, 195, 130, 0.45),
    0 14px 30px -18px rgba(110, 95, 140, 0.35),
    0 0 0 1px rgba(220, 195, 130, 0.18);
  transition: transform 380ms cubic-bezier(.2,.8,.2,1),
              box-shadow 380ms ease,
              background 380ms ease;
  overflow: hidden;
}
.nav-card::before {
  /* soft gold shimmer that emerges on hover */
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(120% 80% at 0% 50%, rgba(245, 232, 145, 0.45) 0%, transparent 55%),
    radial-gradient(120% 80% at 100% 50%, rgba(217, 230, 240, 0.4) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 420ms ease;
  pointer-events: none;
}
.nav-card::after {
  /* subtle dotted parchment texture */
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: radial-gradient(rgba(180, 158, 110, 0.18) 0.6px, transparent 1px);
  background-size: 14px 14px;
  opacity: 0.35;
  pointer-events: none;
  mix-blend-mode: multiply;
}
.nav-card:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 0 0 1px rgba(220, 195, 90, 0.6),
    0 22px 40px -18px rgba(110, 95, 140, 0.45),
    0 0 38px -8px rgba(245, 232, 145, 0.55);
}
.nav-card:hover::before { opacity: 1; }
.nav-card:active { transform: translateY(-1px); }

.nav-card__numeral {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 18px;
  color: var(--lavender-500);
  letter-spacing: 0.04em;
  text-align: center;
  opacity: 0.75;
  border-right: 1px solid rgba(180, 158, 110, 0.3);
  padding-right: 10px;
  line-height: 1;
  position: relative;
  z-index: 1;
}
.nav-card__glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #b89a4c;
  transition: transform 420ms cubic-bezier(.2,.8,.2,1), color 320ms ease;
  position: relative;
  z-index: 1;
}
.nav-card:hover .nav-card__glyph {
  transform: rotate(-8deg) scale(1.08);
  color: #8a6e2a;
}
.nav-card__label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #3d2f55;
  position: relative;
  z-index: 1;
}
.nav-card__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  color: var(--lavender-500);
  transform: translateX(-6px);
  opacity: 0.45;
  transition: transform 380ms cubic-bezier(.2,.8,.2,1), opacity 320ms ease, color 320ms ease;
  position: relative;
  z-index: 1;
}
.nav-card:hover .nav-card__arrow {
  transform: translateX(0);
  opacity: 1;
  color: var(--lavender-600);
}

/* tiny filigree corners */
.nav-card__corner {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 1px solid rgba(180, 158, 110, 0.55);
  pointer-events: none;
  opacity: 0;
  transition: opacity 380ms ease;
}
.nav-card:hover .nav-card__corner { opacity: 0.9; }
.nav-card__corner--tl { top: 8px;    left: 8px;    border-right: 0; border-bottom: 0; border-top-left-radius: 6px; }
.nav-card__corner--tr { top: 8px;    right: 8px;   border-left: 0;  border-bottom: 0; border-top-right-radius: 6px; }
.nav-card__corner--bl { bottom: 8px; left: 8px;    border-right: 0; border-top: 0;    border-bottom-left-radius: 6px; }
.nav-card__corner--br { bottom: 8px; right: 8px;   border-left: 0;  border-top: 0;    border-bottom-right-radius: 6px; }

/* ---------- ghost button (secondary actions: volver, inicio, sugerencias) ---------- */
.ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  background: rgba(255, 252, 240, 0.55);
  border: 1px solid rgba(180, 158, 110, 0.4);
  color: var(--ink-soft);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: all 260ms ease;
}
.ghost-btn:hover {
  background: rgba(255, 252, 240, 0.95);
  border-color: rgba(220, 195, 90, 0.6);
  color: var(--ink);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -10px rgba(110, 95, 140, 0.4),
              0 0 18px -6px rgba(245, 232, 145, 0.5);
}

/* ---------- CTA button (ornamental, on form submit) ---------- */
.cta-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 38px 18px 30px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fdfbf3;
  background:
    linear-gradient(180deg, #a596c8 0%, #7a6aa3 60%, #6f5f99 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    0 14px 30px -10px rgba(110, 95, 140, 0.55),
    0 0 0 1px rgba(220, 195, 130, 0.45),
    0 0 0 5px rgba(245, 232, 145, 0.18);
  transition: all 320ms cubic-bezier(.2,.8,.2,1);
  overflow: hidden;
}
.cta-btn::before {
  /* gold filigree inner ring */
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 999px;
  border: 1px dashed rgba(245, 232, 145, 0.35);
  pointer-events: none;
}
.cta-btn__glow {
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: radial-gradient(60% 100% at 50% 50%, rgba(245, 232, 145, 0.65) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 380ms ease;
  pointer-events: none;
  z-index: -1;
}
.cta-btn__star {
  display: inline-flex;
  color: #f5e891;
  filter: drop-shadow(0 0 6px rgba(245, 232, 145, 0.85));
  animation: shimmer 2.4s ease-in-out infinite;
  position: relative;
  z-index: 1;
}
.cta-btn__label { position: relative; z-index: 1; }
.cta-btn__arrow {
  display: inline-flex;
  color: #f5e891;
  transform: translateX(-4px);
  transition: transform 360ms cubic-bezier(.2,.8,.2,1);
  position: relative;
  z-index: 1;
}
.cta-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #b3a5d3 0%, #8676ad 60%, #6f5f99 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.22),
    0 22px 40px -12px rgba(110, 95, 140, 0.7),
    0 0 0 1px rgba(220, 195, 130, 0.6),
    0 0 36px -8px rgba(245, 232, 145, 0.65);
}
.cta-btn:hover:not(:disabled) .cta-btn__glow { opacity: 1; }
.cta-btn:hover:not(:disabled) .cta-btn__arrow { transform: translateX(4px); }
.cta-btn:active:not(:disabled) { transform: translateY(0); }
.cta-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: saturate(0.7);
}

/* ---------- form row grid ---------- */
.row-forms {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px 28px;
  align-items: start;
  max-width: 1000px;
  margin: 0 auto;
}

/* ---------- suggestions view ---------- */
.suggest-card {
  background: linear-gradient(180deg, rgba(255, 252, 235, 0.92) 0%, rgba(248, 238, 212, 0.88) 100%);
  border-radius: 28px;
  padding: 38px 36px 34px;
  position: relative;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 0 0 1px rgba(220, 195, 130, 0.4),
    0 18px 40px -18px rgba(110, 95, 140, 0.4),
    0 0 0 1px rgba(220, 195, 130, 0.18);
  overflow: hidden;
}
.suggest-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: radial-gradient(rgba(180, 158, 110, 0.16) 0.6px, transparent 1px);
  background-size: 14px 14px;
  opacity: 0.35;
  pointer-events: none;
  mix-blend-mode: multiply;
}
.suggest-card > * { position: relative; z-index: 1; }

.suggest-intro {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
  text-align: center;
  margin: 0 auto 28px;
  max-width: 440px;
}

.suggest-field {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 22px;
}

.suggest-input,
.suggest-textarea {
  width: 100%;
  max-width: 480px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  color: var(--ink);
  background: rgba(255, 252, 240, 0.85);
  border: 1px solid rgba(180, 158, 110, 0.35);
  border-radius: 16px;
  padding: 14px 18px;
  outline: none;
  transition: all 240ms ease;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 0 0 0 rgba(220, 195, 90, 0);
  resize: none;
}
.suggest-input::placeholder,
.suggest-textarea::placeholder {
  color: var(--ink-mute);
  font-style: italic;
}
.suggest-input:focus,
.suggest-textarea:focus {
  border-color: rgba(220, 195, 90, 0.7);
  background: rgba(255, 252, 240, 1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 0 0 3px rgba(245, 232, 145, 0.35),
    0 6px 18px -8px rgba(110, 95, 140, 0.3);
}

.suggest-textarea {
  min-height: 140px;
  line-height: 1.5;
}

.suggest-counter {
  width: 100%;
  max-width: 480px;
  text-align: right;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 13px;
  color: var(--ink-mute);
  margin-top: 6px;
  letter-spacing: 0.04em;
}

.suggest-error {
  margin-top: 18px;
  padding: 12px 18px;
  border-radius: 14px;
  background: rgba(220, 95, 95, 0.08);
  border: 1px solid rgba(220, 95, 95, 0.3);
  color: #8a3a3a;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 15px;
  text-align: center;
}

.suggest-cooldown {
  margin-top: 18px;
  padding: 12px 18px;
  border-radius: 14px;
  background: rgba(220, 195, 130, 0.12);
  border: 1px solid rgba(220, 195, 130, 0.4);
  color: var(--ink-soft);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 15px;
  text-align: center;
}

.suggest-input.has-error,
.suggest-textarea.has-error {
  border-color: rgba(200, 85, 85, 0.55);
  background: rgba(255, 248, 246, 0.92);
}
.suggest-input.has-error:focus,
.suggest-textarea.has-error:focus {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 0 0 3px rgba(220, 95, 95, 0.18);
}

.suggest-field-hint {
  width: 100%;
  max-width: 480px;
  margin-top: 6px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 13px;
  color: #a3514e;
  letter-spacing: 0.02em;
  text-align: left;
  padding-left: 6px;
}

/* ---------- thank-you state ---------- */
.suggest-thanks {
  text-align: center;
  padding: 48px 36px 40px;
}
.suggest-thanks__icon {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
  animation: shimmer 3s ease-in-out infinite;
}
.suggest-thanks__title {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 12px;
  background: linear-gradient(180deg, #4a3f5c 0%, #6f5f99 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.suggest-thanks__body {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 420px;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .suggest-card { padding: 28px 22px 26px; border-radius: 22px; }
  .suggest-intro { font-size: 16px; margin-bottom: 22px; }
  .suggest-input, .suggest-textarea { font-size: 16px; padding: 12px 14px; }
  .suggest-thanks { padding: 36px 22px 30px; }
}
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px 28px;
  align-items: start;
  max-width: 1000px;
  margin: 0 auto;
}
.form-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  width: 100%;
  text-align: center;
}
/* Ensure direct children center even if they have inline-flex display */
.form-cell > * {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- logo plate ---------- */
.logo-plate {
  position: relative;
  width: 520px;
  max-width: 100%;
  aspect-ratio: 3 / 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- result card ---------- */
.result-card {
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(217, 230, 240, 0.55) 0%, transparent 65%),
    linear-gradient(180deg, rgba(255, 252, 238, 0.85) 0%, rgba(247, 238, 215, 0.85) 100%);
  border: 1px solid rgba(220, 195, 130, 0.35);
  border-radius: 36px;
  padding: 64px 60px;
  position: relative;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 30px 80px -30px rgba(110, 95, 140, 0.3),
    0 0 60px -20px rgba(245, 232, 145, 0.5);
  overflow: hidden;
}

.result-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 245, 200, 0.7) 1px, transparent 1.5px);
  background-size: 28px 28px;
  background-position: 0 0;
  opacity: 0.25;
  pointer-events: none;
}

.result-prose p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.6;
  color: #3d2f55;
  margin: 0 0 18px;
}
.result-prose p:first-child::first-letter {
  font-size: 60px;
  float: left;
  line-height: 0.9;
  padding-right: 10px;
  padding-top: 6px;
  color: var(--lavender-600);
  font-weight: 700;
}

.divider-celestial {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 28px 0;
  color: var(--lavender-400);
  opacity: 0.6;
}
.divider-celestial::before, .divider-celestial::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(156, 143, 191, 0.4), transparent);
  max-width: 120px;
}

/* loading shimmer */
.loading-orb {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 250, 220, 0.95), rgba(245, 232, 145, 0.6) 40%, rgba(200, 217, 232, 0.4) 80%);
  box-shadow:
    0 0 60px 10px rgba(245, 232, 145, 0.4),
    0 0 100px 20px rgba(200, 217, 232, 0.3);
  animation: drift 4s ease-in-out infinite, pulse 2.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.2); }
}

/* ---------- form header (breadcrumb row in form + result views) ---------- */
.form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.form-header__brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  flex: 1;
}
.form-header__spacer { width: 120px; }

/* ---------- CTA wrap (dropdowns float over via z-index, so spacing can be tight) ---------- */
.cta-wrap {
  display: flex;
  justify-content: center;
  margin-top: 64px;
}

/* utility */
.hidden-mobile { }
@media (max-width: 900px) {
  .row-forms {
    grid-template-columns: 1fr 1fr !important;
    gap: 32px !important;
  }
  .pill { font-size: 18px; padding: 12px 26px; }
  .result-card { padding: 36px 26px; }
  .result-prose p { font-size: 17px; }
  .nav-card { padding: 14px 18px; grid-template-columns: 30px 26px 1fr 32px; gap: 10px; }
  .nav-card__label { font-size: 18px; }
  .nav-card__numeral { font-size: 17px; padding-right: 8px; }
  .cta-wrap { margin-top: 56px; }
  .form-header__spacer { display: none; }
}
@media (max-width: 640px) {
  .row-forms {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  .form-header { flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
  .form-header__brand { font-size: 13px; letter-spacing: 0.16em; flex: 1 1 100%; order: -1; text-align: center; }
  .ghost-btn { font-size: 13px; padding: 7px 14px; }
  .section-title { margin-bottom: 36px; }
  .section-title__text { font-size: clamp(26px, 8vw, 36px) !important; }
  .section-title__line { width: 50px; }
  .field-label-ornate { font-size: 16px; margin-bottom: 16px; }
  .nav-card {
    padding: 14px 16px;
    grid-template-columns: 28px 24px 1fr 28px;
    gap: 10px;
    border-radius: 18px;
  }
  .nav-card__label { font-size: 17px; line-height: 1.2; }
  .nav-card__numeral { font-size: 16px; padding-right: 8px; }
  .nav-card__glyph svg { width: 18px; height: 18px; }
  .nav-card__arrow svg { width: 22px; height: 11px; }
  .nav-card__corner { width: 9px; height: 9px; }
  .cta-btn { font-size: 16px; padding: 14px 26px 14px 22px; gap: 10px; }
  .cta-btn__arrow svg { width: 22px; height: 11px; }
  .cta-wrap { margin-top: 44px; }
  .result-card { padding: 28px 20px; border-radius: 24px; }
  .result-prose p { font-size: 16px; }
  .result-prose p:first-child::first-letter { font-size: 44px; }
  .logo-plate { width: 360px; }
  .date-group { gap: 8px; width: 100%; max-width: 320px; }
  .date-col { flex: 1; min-width: 0; }
  .date-col > div { width: 100% !important; }
  .date-col .dropdown-trigger { padding: 10px 14px; }
  .date-col-label { font-size: 12px; letter-spacing: 0.14em; }
  /* Reduce horizontal padding on view sections */
  body section { padding-left: 18px !important; padding-right: 18px !important; }
}
@media (max-width: 420px) {
  .nav-card__numeral { display: none; }
  .nav-card { grid-template-columns: 24px 1fr 24px; }
  .section-title__text { font-size: clamp(24px, 9vw, 32px) !important; }
  .cta-wrap { margin-top: 36px; }
  .form-header__brand { font-size: 12px; }
  .logo-plate { width: 280px; }
  .field-label-ornate { font-size: 15px; }
  .field-label-ornate__tick { width: 14px; }
}
