/* ============================================================
   Wedding Venue Package Calculator — White-label stylesheet
   Override --primary, --primary-dark, --dark via config.json
   ============================================================ */

:root {
  --primary:       #b8965a;
  --primary-dark:  #8c6e3d;
  --primary-light: #f0e4cc;
  --primary-pale:  #faf5ec;
  --dark:          #2c2420;
  --text:          #4a3f3a;
  --muted:         #9e8e84;
  --cream:         #fdf9f4;
  --white:         #ffffff;
  --border:        #e8ddd4;
  --success:       #5a8c6e;
  --error:         #c0392b;
  --radius:        10px;
  --shadow:        0 2px 16px rgba(44,36,32,0.08);
  --shadow-md:     0 4px 32px rgba(44,36,32,0.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--dark);
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

/* ── Header ─────────────────────────────────────────────────── */
.site-header {
  background: var(--dark);
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.header-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 16px;
}

.site-logo {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.03em;
}

.header-phone a {
  color: var(--primary-light);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ── Hero Band ──────────────────────────────────────────────── */
.hero-band {
  background: var(--dark);
  padding: 48px 24px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(184,150,90,0.15) 0%, transparent 60%);
  pointer-events: none;
}

.hero-eyebrow {
  display: block;
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--white);
  margin-bottom: 10px;
  font-style: italic;
  font-weight: 400;
}

.hero-subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  max-width: 480px;
  margin: 0 auto;
  font-weight: 300;
}

/* ── Progress Bar ───────────────────────────────────────────── */
.step-progress {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  position: sticky;
  top: 60px;
  z-index: 90;
}

.step-progress-inner {
  max-width: 580px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  background: var(--white);
  transition: all 0.3s ease;
}

.step-item.active .step-circle {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--white);
}

.step-item.completed .step-circle {
  border-color: var(--primary);
  background: var(--primary-pale);
  color: var(--primary-dark);
}

.step-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  transition: color 0.3s;
  white-space: nowrap;
}

.step-item.active .step-label { color: var(--primary-dark); }
.step-item.completed .step-label { color: var(--primary); }

.step-connector {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin: 0 6px;
  margin-bottom: 16px;
  position: relative;
  min-width: 24px;
}

/* ── Main ───────────────────────────────────────────────────── */
.page-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

/* ── Steps ──────────────────────────────────────────────────── */
.step-section {
  display: none;
  animation: fadeIn 0.3s ease;
}

.step-section.active { display: block; }

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

.step-header {
  text-align: center;
  margin-bottom: 32px;
}

.step-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}

.step-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--dark);
  margin-bottom: 10px;
}

.step-desc {
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto;
  font-size: 0.95rem;
}

/* ── Card ───────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 32px;
  box-shadow: var(--shadow);
}

/* ── Form Fields ────────────────────────────────────────────── */
.field-group {
  margin-bottom: 20px;
}

.field-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 6px;
}

.field-group input[type="text"],
.field-group input[type="email"],
.field-group input[type="tel"],
.field-group input[type="date"] {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: 'Lato', sans-serif;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}

.field-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(184,150,90,0.15);
}

.field-group input.has-error { border-color: var(--error); }

.field-error {
  display: none;
  font-size: 0.8rem;
  color: var(--error);
  margin-top: 4px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.optional-label {
  font-weight: 400;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.75rem;
}

/* ── Guest Counter ──────────────────────────────────────────── */
.counter-field { margin-bottom: 20px; }

.counter-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 6px;
}

.counter-row {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
}

.counter-btn {
  width: 44px;
  height: 46px;
  border: none;
  background: none;
  font-size: 1.3rem;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  font-weight: 600;
  line-height: 1;
}

.counter-btn:hover:not(:disabled) { background: var(--primary-pale); }
.counter-btn:disabled { cursor: not-allowed; opacity: 0.35; }

.counter-value {
  min-width: 72px;
  width: 72px;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  font-family: 'Lato', sans-serif;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-radius: 0;
  padding: 0 8px;
  height: 46px;
  line-height: 46px;
  background: var(--white);
  outline: none;
  -moz-appearance: textfield;
}

.counter-value::-webkit-outer-spin-button,
.counter-value::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.counter-value:focus {
  background: var(--primary-pale);
  color: var(--primary-dark);
}

.counter-hint {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 5px;
}

/* ── Trust Strip ────────────────────────────────────────────── */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary-dark);
  background: var(--primary-pale);
  border: 1px solid var(--primary-light);
  border-radius: 20px;
  padding: 5px 12px;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn-next {
  width: 100%;
  padding: 15px 24px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 9999px;
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(184,150,90,0.3);
}

.btn-next:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 20px rgba(184,150,90,0.4);
  transform: translateY(-1px);
}

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

.step-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.btn-back {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 9999px;
  padding: 12px 24px;
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}

.btn-back:hover { border-color: var(--primary); color: var(--primary-dark); }

.btn-nav-next {
  flex: 1;
  padding: 14px 24px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 9999px;
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(184,150,90,0.3);
}

.btn-nav-next:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 20px rgba(184,150,90,0.4);
}

/* ── Alert ──────────────────────────────────────────────────── */
#alert-box {
  display: none;
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 24px;
  font-size: 0.9rem;
  color: #856404;
}

/* ── Category Section ───────────────────────────────────────── */
.category-section { margin-bottom: 36px; }

.category-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.category-title::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 1.2em;
  background: var(--primary);
  border-radius: 2px;
  flex-shrink: 0;
}

/* ── Package Grid ───────────────────────────────────────────── */
.package-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

/* ── Package Card ───────────────────────────────────────────── */
.pkg-check.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.pkg-label {
  display: block;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  position: relative;
  user-select: none;
}

.pkg-label:hover {
  border-color: var(--primary-light);
  box-shadow: 0 2px 12px rgba(184,150,90,0.1);
}

.pkg-check:checked + .pkg-label {
  border-color: var(--primary);
  background: var(--primary-pale);
  box-shadow: 0 2px 12px rgba(184,150,90,0.15);
}

.pkg-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.pkg-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  line-height: 1.2;
  margin-top: 2px;
}

.pkg-title-wrap {
  flex: 1;
  min-width: 0;
}

.pkg-name {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--dark);
  line-height: 1.3;
}

.pkg-price-wrap {
  flex-shrink: 0;
  text-align: right;
}

.pkg-price {
  display: block;
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary-dark);
  line-height: 1.2;
  white-space: nowrap;
}

.pkg-price small {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
}

.pkg-price.poa {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  font-style: italic;
  text-align: right;
  line-height: 1.4;
}

.pkg-desc {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.5;
}

.pkg-check-mark {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  transition: all 0.2s;
}

.pkg-check:checked + .pkg-label .pkg-check-mark {
  background: var(--primary);
  color: var(--white);
}

.bespoke-badge,
.addon-badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  border-radius: 20px;
  margin-top: 3px;
}

.bespoke-badge {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.addon-badge {
  background: #e8f5e9;
  color: #2e7d32;
}

/* ── Step 3 add-on intro ─────────────────────────────────────── */
.addon-intro {
  background: var(--primary-pale);
  border: 1px solid var(--primary-light);
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 28px;
  font-size: 0.88rem;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── Quote Section ──────────────────────────────────────────── */
.quote-summary-bar {
  background: var(--dark);
  color: var(--white);
  border-radius: var(--radius);
  padding: 16px 24px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  font-size: 0.88rem;
}

.quote-summary-bar strong {
  color: var(--primary-light);
}

.quote-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 24px;
}

.quote-cat-section {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.quote-cat-section:last-child { border-bottom: none; }

.quote-cat-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 12px;
}

.poa-section .quote-cat-name { color: var(--muted); }

.poa-label {
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  font-style: italic;
}

.quote-item-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0;
}

.quote-item-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.quote-item-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
}

.quote-unit-note {
  font-size: 0.75rem;
  color: var(--muted);
}

.quote-item-total {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-dark);
  white-space: nowrap;
}

.quote-item-poa {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  font-style: italic;
  white-space: nowrap;
}

.quote-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: var(--primary-pale);
  border-top: 2px solid var(--primary-light);
}

.quote-total-label {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--dark);
}

.quote-total-note {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 400;
  display: block;
}

.quote-total-value {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
}

.poa-note {
  display: none;
  font-size: 0.8rem;
  color: var(--muted);
  font-style: italic;
  padding: 12px 24px;
  border-top: 1px solid var(--border);
  background: #fafafa;
}

.empty-quote {
  padding: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.link-btn {
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
  padding: 0;
  text-decoration: underline;
}

/* ── Quote Actions ──────────────────────────────────────────── */
.quote-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.btn-download,
.btn-email {
  flex: 1;
  min-width: 160px;
  padding: 14px 20px;
  border-radius: 9999px;
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn-download {
  background: var(--dark);
  color: var(--white);
}

.btn-download:hover {
  background: #3d3330;
  box-shadow: 0 4px 16px rgba(44,36,32,0.2);
}

.btn-email {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(184,150,90,0.3);
}

.btn-email:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 20px rgba(184,150,90,0.4);
}

/* ── Email Form ─────────────────────────────────────────────── */
.email-form-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  overflow: hidden;
  animation: fadeIn 0.25s ease;
}

.email-form-inner { padding: 28px; }

.email-form-inner h3 {
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.email-form-inner > p {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 20px;
}

.error-msg {
  display: none;
  background: #fdf2f2;
  border: 1px solid #f5c6c6;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 0.85rem;
  color: var(--error);
  margin-bottom: 16px;
}

.btn-submit {
  width: 100%;
  padding: 14px 24px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 9999px;
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(184,150,90,0.3);
  margin-top: 8px;
}

.btn-submit:hover { background: var(--primary-dark); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.submit-success {
  display: none;
  align-items: center;
  gap: 16px;
  background: #f0f9f4;
  border: 1px solid #a8d5b8;
  border-radius: 8px;
  padding: 20px;
}

.submit-success svg { flex-shrink: 0; color: var(--success); }

.submit-success strong {
  display: block;
  color: var(--success);
  font-size: 1rem;
  margin-bottom: 4px;
}

.submit-success p {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
}

/* ── Disclaimer ─────────────────────────────────────────────── */
.disclaimer {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 16px;
}

/* ── Empty state ────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  padding: 32px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--dark);
  padding: 24px;
  text-align: center;
}

.site-footer p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}

/* ── Loading spinner ────────────────────────────────────────── */
.loading-indicator {
  text-align: center;
  padding: 48px;
  color: var(--muted);
}

.spin {
  display: inline-block;
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 12px;
}

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

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 600px) {
  .card { padding: 20px; }
  .form-row { grid-template-columns: 1fr; }
  .package-grid { grid-template-columns: 1fr; }
  .quote-actions { flex-direction: column; }
  .btn-download, .btn-email { flex: none; width: 100%; }
  .step-progress-inner { gap: 0; }
  .step-label { display: none; }
  .step-connector { min-width: 12px; }
  .hero-band { padding: 32px 20px; }
  .step-nav { flex-direction: column; }
  .btn-back, .btn-nav-next { width: 100%; text-align: center; }
}

/* ── Print styles ───────────────────────────────────────────── */
@media print {
  .site-header,
  .hero-band,
  .step-progress,
  .step-nav,
  .quote-actions,
  .email-form-wrap,
  #alert-box,
  .step-summary,
  .btn-back,
  .btn-nav-next,
  .step-eyebrow,
  .site-footer { display: none !important; }

  body { background: white; color: #222; font-size: 12pt; }

  .step-section { display: none !important; }
  #step-4 { display: block !important; }

  .step-header { margin-bottom: 16pt; }
  .step-title { font-size: 20pt; }

  .quote-card { box-shadow: none; border: 1px solid #ccc; }

  .quote-total-value { font-size: 18pt; }

  .print-venue-name {
    display: block !important;
    font-size: 16pt;
    font-weight: bold;
    margin-bottom: 4pt;
  }

  .page-main { padding: 0; max-width: 100%; }

  .disclaimer { font-size: 8pt; }
}

.print-venue-name { display: none; }

/* ── Sub-options Panel ──────────────────────────────────────── */
.package-card.has-suboptions .pkg-label {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.suboptions-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.3s ease, opacity 0.25s ease;
  padding: 0 16px;
  opacity: 0;
  border: 1.5px solid transparent;
  border-top: none;
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
}

.suboptions-panel.open {
  max-height: 600px;
  padding: 14px 16px 16px;
  opacity: 1;
  border-color: var(--border);
  background: var(--white);
}

.pkg-check:checked ~ .suboptions-panel.open {
  border-color: var(--primary);
  background: var(--primary-pale);
}

.suboptions-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}

.suboptions-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.suboption-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  color: var(--dark);
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: var(--white);
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  user-select: none;
  white-space: nowrap;
}

.suboption-item:hover {
  border-color: var(--primary);
  background: var(--primary-pale);
}

.suboption-check {
  accent-color: var(--primary);
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.suboption-item:has(.suboption-check:checked) {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
}

.suboption-item:has(.suboption-check:checked) .suboption-check {
  accent-color: var(--white);
}

.suboptions-max-note {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 8px;
  font-style: italic;
}

/* Quote sub-preferences */
.quote-sub-note {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 2px;
  font-style: italic;
}
