/* ============================================================
   FAMILYVO — calculator-r9.css
   Round 9 calculator visual design — single-screen instant quote.
   Brand colors: #0e4ccc primary, #ff7a18 orange CTA.
   ============================================================ */

/* Overlay + container --------------------------------------- */
.calc-r9-overlay {
  position: fixed; inset: 0;
  background: rgba(8, 22, 56, 0.72);
  backdrop-filter: blur(3px);
  z-index: 9999;
  display: none;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 24px 16px;
}
.calc-r9-overlay.active { display: flex; }

.calc-r9-container {
  width: min(1100px, 100%);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 48px);
  overflow: hidden;
  font-family: var(--font-body, system-ui, -apple-system, sans-serif);
  color: #1d2237;
}

/* Header ---------------------------------------------------- */
.calc-r9-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: linear-gradient(135deg, #0e4ccc 0%, #1a5fe6 100%);
  color: #fff;
}
.calc-r9-header h2 {
  margin: 0;
  font-family: var(--font-h, 'Rise of Kingdom', serif);
  font-size: 1.6rem;
  letter-spacing: .5px;
}
.calc-r9-close {
  background: rgba(255,255,255,.16);
  border: 0;
  color: #fff;
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  transition: background .15s;
}
.calc-r9-close:hover { background: rgba(255,255,255,.32); }

/* Body grid ------------------------------------------------- */
.calc-r9-body {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0;
  flex: 1;
  overflow-y: auto;
}
.calc-r9-form {
  padding: 24px 28px;
  border-right: 1px solid #e6e9f4;
  overflow-y: auto;
}
.calc-r9-summary {
  background: linear-gradient(180deg, #f7f9ff 0%, #eef3ff 100%);
  padding: 24px 24px 28px;
  overflow-y: auto;
}

/* Form rows ------------------------------------------------- */
.r9-row {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px dashed #e0e4f0;
}
.r9-row:last-child { border-bottom: 0; padding-bottom: 0; }

.r9-label {
  display: block;
  font-weight: 600;
  font-size: .95rem;
  color: #0e4ccc;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.r9-label em {
  font-style: normal;
  font-weight: 400;
  color: #6c7188;
  text-transform: none;
  letter-spacing: 0;
  font-size: .85rem;
}
.r9-hint {
  margin: 6px 0 0;
  color: #6c7188;
  font-size: .85rem;
  line-height: 1.4;
}
.r9-input, .r9-select, .r9-textarea {
  width: 100%;
  border: 2px solid #d8dcec;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 1rem;
  background: #fff;
  color: #1d2237;
  transition: border-color .15s, box-shadow .15s;
}
.r9-input:focus, .r9-select:focus, .r9-textarea:focus {
  outline: 0;
  border-color: #0e4ccc;
  box-shadow: 0 0 0 3px rgba(14,76,204,.15);
}
.r9-textarea { resize: vertical; min-height: 70px; }

/* Usage tier buttons --------------------------------------- */
.r9-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 4px;
}
.r9-tier {
  position: relative;
  background: #fff;
  border: 2px solid #d8dcec;
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: all .15s;
}
.r9-tier:hover:not(:disabled) { border-color: #1a5fe6; transform: translateY(-1px); }
.r9-tier.is-active {
  border-color: #ff7a18;
  background: #fff8f0;
  box-shadow: 0 4px 14px rgba(255,122,24,.18);
}
.r9-tier:disabled { opacity: .45; cursor: not-allowed; }
.r9-tier-label {
  font-weight: 700;
  color: #0e4ccc;
  font-size: .95rem;
}
.r9-tier-mult {
  position: absolute;
  top: 8px; right: 10px;
  font-size: .8rem;
  color: #ff7a18;
  font-weight: 700;
}
.r9-tier-blurb {
  color: #6c7188;
  font-size: .8rem;
  line-height: 1.3;
}
.r9-tiers-row.is-locked .r9-tier { pointer-events: none; }

/* Actor face circles --------------------------------------- */
.r9-actors {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 10px;
  margin-top: 6px;
}
.r9-actor {
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 4px 2px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border-radius: 10px;
  transition: transform .15s, background .15s;
  position: relative;
}
.r9-actor:hover { background: #eef3ff; transform: translateY(-1px); }
.r9-actor-circle {
  width: 56px; height: 56px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #d8dcec;
  background: #fff;
  display: block;
  transition: border-color .15s, box-shadow .15s;
}
.r9-actor-circle img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.r9-actor.is-selected .r9-actor-circle {
  border-color: #ff7a18 !important;
  box-shadow: 0 0 0 3px rgba(255,122,24,.18);
}
.r9-actor.is-selected {
  background: #fff8f0;
}
.r9-actor-name {
  font-size: .78rem;
  color: #1d2237;
  font-weight: 600;
  text-align: center;
  line-height: 1.1;
}
.r9-actor-badge {
  position: absolute;
  top: -2px; right: 4px;
  background: #ffd54f;
  color: #5d4400;
  font-size: .65rem;
  padding: 1px 5px;
  border-radius: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.r9-actor.is-child .r9-actor-circle { border-color: #ffd54f; }
.r9-actor.is-child.is-selected .r9-actor-circle { border-color: #ff7a18 !important; }

/* Rush + addons -------------------------------------------- */
.r9-rush {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff8f0;
  border: 2px solid #ffd6b3;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
}
.r9-rush input { width: 18px; height: 18px; }
.r9-rush span { font-weight: 600; color: #b85b00; }

.r9-addons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}
.r9-addon {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #d8dcec;
  border-radius: 6px;
  cursor: pointer;
  font-size: .9rem;
  background: #fff;
  user-select: none;
  transition: border-color .15s, background .15s;
}
.r9-addon:hover { border-color: #0e4ccc; background: #f7f9ff; }
.r9-addon input { width: 16px; height: 16px; flex-shrink: 0; }
.r9-addon span { flex: 1; color: #1d2237; }
.r9-addon em { color: #ff7a18; font-style: normal; font-weight: 600; }
.r9-addon:has(input:checked) {
  border-color: #ff7a18;
  background: #fff8f0;
}

/* Summary panel -------------------------------------------- */
.r9-quote-id {
  font-size: .8rem;
  color: #6c7188;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  margin-bottom: 12px;
  letter-spacing: .5px;
}
.r9-summary-block {
  background: #fff;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.r9-summary-block.r9-warn {
  background: #fff7e6;
  color: #8a5a00;
  font-size: .9rem;
  font-style: italic;
}
.r9-summary-block.r9-fineprint {
  background: transparent;
  box-shadow: none;
  padding: 8px 4px 0;
  color: #6c7188;
  font-size: .78rem;
  line-height: 1.45;
}
.r9-summary-block.r9-fineprint p { margin: 0 0 4px; }
.r9-summary-block.r9-fineprint a { color: #0e4ccc; }

.r9-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: .9rem;
  color: #1d2237;
  padding: 4px 0;
}
.r9-line small { color: #6c7188; font-weight: 400; }
.r9-line-strong {
  font-weight: 700;
  color: #0e4ccc;
  border-bottom: 1px solid #e6e9f4;
  margin-bottom: 4px;
  padding-bottom: 6px;
}
.r9-line-discount { color: #2e8540; font-weight: 600; }
.r9-line-total {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 2px solid #ff7a18;
  font-size: 1.1rem;
  font-weight: 800;
  color: #b85b00;
}
.r9-line-total span:last-child { color: #ff7a18; }

.r9-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.r9-chip {
  display: inline-block;
  background: #eef3ff;
  color: #0e4ccc;
  border: 1px solid #cdd6f0;
  padding: 3px 9px;
  border-radius: 12px;
  font-size: .8rem;
  font-weight: 600;
}
.r9-chip.is-kid { background: #fff7e6; color: #8a5a00; border-color: #ffd54f; }

/* Footer ---------------------------------------------------- */
.calc-r9-footer {
  display: flex;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid #e6e9f4;
  background: #f7f9ff;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.r9-btn {
  border: 0;
  border-radius: 8px;
  padding: 11px 22px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: transform .12s, box-shadow .12s, background .12s;
}
.r9-btn-primary {
  background: linear-gradient(135deg, #ff7a18, #ff9a3a);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255,122,24,.35);
}
.r9-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(255,122,24,.5); }
.r9-btn-secondary {
  background: #fff;
  color: #0e4ccc;
  border: 2px solid #0e4ccc;
}
.r9-btn-secondary:hover { background: #eef3ff; }

/* Responsive ----------------------------------------------- */
@media (max-width: 900px) {
  .calc-r9-body { grid-template-columns: 1fr; }
  .calc-r9-form { border-right: 0; border-bottom: 1px solid #e6e9f4; }
  .r9-tiers { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .calc-r9-overlay { padding: 0; }
  .calc-r9-container { border-radius: 0; max-height: 100vh; height: 100vh; }
  .calc-r9-form, .calc-r9-summary { padding: 18px 16px; }
  .calc-r9-footer { padding: 12px 16px; }
  .r9-btn { flex: 1; padding: 11px 14px; font-size: .9rem; }
  .r9-actors { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); }
  .r9-actor-circle { width: 48px; height: 48px; }
}

/* Round 10: Stripe checkout details form ----------------- */
.r9-btn-ghost {
  background: #f3f4f8;
  color: #333;
  border: 1px solid #d6d9e2;
}
.r9-btn-ghost:hover { background: #e8eaf2; }

.r9-field {
  margin-bottom: 12px;
}
.r9-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #4a5168;
  margin-bottom: 4px;
  letter-spacing: .02em;
}
.r9-field input,
.r9-field textarea {
  width: 100%;
  font: inherit;
  font-size: 14px;
  padding: 9px 11px;
  border: 1px solid #d6d9e2;
  border-radius: 7px;
  background: #fff;
  color: #1a1f33;
  box-sizing: border-box;
  transition: border-color .12s, box-shadow .12s;
}
.r9-field input:focus,
.r9-field textarea:focus {
  outline: none;
  border-color: #0e4ccc;
  box-shadow: 0 0 0 3px rgba(14, 76, 204, .15);
}
.r9-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 480px) {
  .r9-field-row { grid-template-columns: 1fr; }
}

body.r9-modal-open { overflow: hidden; }

/* ============================================================
   ROUND 13 — Calculator Overhaul
   - Calculate gating, pulse animations, GVAA tagline, tooltip,
     license length, blue email btn, runtime input, helpers.
   ============================================================ */

/* --- Section helper text below labels --- */
.r9-helper {
  margin: 4px 0 8px;
  color: #6c7188;
  font-size: .82rem;
  line-height: 1.45;
  font-style: italic;
}

/* --- Tooltip (info ⓘ) --- */
.r9-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #0e4ccc;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  font-style: normal;
  font-family: Georgia, serif;
  cursor: help;
  margin-left: 6px;
  position: relative;
  vertical-align: middle;
  transition: background .12s, transform .12s;
}
.r9-info:hover { background: #ff7a18; transform: scale(1.1); }
.r9-info-bubble {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #1d2237;
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 400;
  font-style: normal;
  line-height: 1.5;
  white-space: normal;
  width: 280px;
  text-align: left;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: 0 6px 22px rgba(0,0,0,.35);
  z-index: 10001;
  pointer-events: none;
}
.r9-info-bubble::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -6px;
  border: 6px solid transparent;
  border-top-color: #1d2237;
}
.r9-info:hover .r9-info-bubble,
.r9-info:focus .r9-info-bubble { display: block; }

/* --- Pulse animations for missing-info nudge & ready-to-order --- */
@keyframes r9-pulse-green {
  0%, 100% { box-shadow: 0 0 0 0 rgba(46, 133, 64, .55); border-color: #2e8540; }
  50%      { box-shadow: 0 0 0 6px rgba(46, 133, 64, 0);    border-color: #4caf50; }
}
.r9-pulse-green {
  animation: r9-pulse-green 1s ease-in-out 3;
  border-color: #2e8540 !important;
}

@keyframes r9-pulse-blue {
  0%, 100% { box-shadow: 0 0 0 0 rgba(14, 76, 204, .55), 0 4px 14px rgba(14,76,204,.35); }
  50%      { box-shadow: 0 0 0 8px rgba(14, 76, 204, 0),  0 4px 14px rgba(14,76,204,.45); }
}
.r9-pulse-blue {
  animation: r9-pulse-blue 1.4s ease-in-out infinite;
}

/* --- Disabled / pending button states --- */
.r9-btn[disabled],
.r9-btn.is-disabled {
  background: #cdd2dd !important;
  color: #6c7188 !important;
  border-color: #cdd2dd !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  transform: none !important;
}
.r9-btn[disabled]:hover,
.r9-btn.is-disabled:hover {
  transform: none !important;
  box-shadow: none !important;
}

/* --- The big "Calculate the quote..." button --- */
.r9-calc-btn-wrap {
  margin: 18px 0 6px;
  text-align: center;
}
.r9-calc-btn {
  background: linear-gradient(135deg, #ff7a18, #ff9a3a);
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 14px 32px;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: .3px;
  box-shadow: 0 5px 18px rgba(255,122,24,.4);
  transition: transform .12s, box-shadow .12s, background .12s;
}
.r9-calc-btn:hover:not([disabled]):not(.is-disabled) {
  transform: translateY(-1px);
  box-shadow: 0 7px 22px rgba(255,122,24,.55);
}

/* --- Solid-blue Email Quote button (Round 13) --- */
.r9-btn-bluefill {
  background: #0e4ccc;
  color: #fff;
  border: 2px solid #0e4ccc;
}
.r9-btn-bluefill:hover { background: #0b3ea8; border-color: #0b3ea8; }

/* --- Place Order pending text (small thank-you line) --- */
.r9-btn .r9-btn-thanks {
  display: block;
  font-size: .72rem;
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0;
  text-transform: none;
  margin-top: 2px;
  opacity: .92;
}

/* --- Hidden-prices state in summary (R13-rev: blur removed for testing) --- */
.r9-summary-block.is-prelock .r9-line span:last-child,
.r9-summary-block.is-prelock .r9-line-total span:last-child {
  /* prices visible during testing — no blur */
}
.r9-prelock-banner {
  text-align: center;
  padding: 14px 12px;
  background: #fff3e0;
  color: #8a5a00;
  border: 2px dashed #ffd6b3;
  border-radius: 10px;
  font-weight: 600;
  font-size: .92rem;
  margin-bottom: 12px;
}

/* --- GVAA estimate row + red strikethrough animation --- */
.r9-gvaa-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: .92rem;
  color: #6c7188;
  padding: 6px 0;
  position: relative;
}
.r9-gvaa-row .r9-gvaa-amt {
  position: relative;
  display: inline-block;
  font-weight: 700;
}
.r9-gvaa-row .r9-gvaa-amt::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  height: 2.5px;
  background: #d32f2f;
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .9s cubic-bezier(.55,.1,.25,1);
}
.r9-gvaa-row.is-struck .r9-gvaa-amt::after {
  transform: scaleX(1);
}

/* --- Math-style ticker animation for total --- */
.r9-line-total span:last-child.is-rolling {
  font-variant-numeric: tabular-nums;
  letter-spacing: .5px;
}

/* --- 38% undercut tagline beneath total --- */
.r9-undercut-tagline {
  margin-top: 10px;
  padding: 12px 14px;
  background: linear-gradient(135deg, #fff8f0, #fff3e0);
  border: 1px solid #ffd6b3;
  border-left: 4px solid #ff7a18;
  border-radius: 8px;
  font-size: .98rem;
  line-height: 1.5;
  color: #8a4a00;
  font-weight: 600;
}
.r9-undercut-tagline strong { color: #d32f2f; font-weight: 800; }

/* --- License length picker --- */
.r9-license-row {
  margin-top: 12px;
  /* R13-rev: divider above license length removed */
}
.r9-license-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 6px;
}
.r9-license-opt {
  background: #fff;
  border: 2px solid #d8dcec;
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  text-align: center;
  font-family: inherit;
  font-size: .85rem;
  transition: all .15s;
}
.r9-license-opt:hover { border-color: #1a5fe6; }
.r9-license-opt.is-active {
  border-color: #ff7a18;
  background: #fff8f0;
  color: #b85b00;
  font-weight: 700;
}
.r9-license-opt-mult {
  display: block;
  font-size: .72rem;
  color: #6c7188;
  margin-top: 2px;
  font-weight: 400;
}
.r9-license-opt.is-active .r9-license-opt-mult { color: #ff7a18; }
.r9-license-locked-msg {
  background: #f0f7ff;
  border: 1px solid #cbd9f2;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: .85rem;
  color: #0e4ccc;
  font-style: italic;
  margin-top: 6px;
}

@media (max-width: 600px) {
  .r9-license-options { grid-template-columns: 1fr; }
}

/* --- Split-files dropdown --- */
.r9-split-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.r9-split-row select {
  flex: 1;
  min-width: 200px;
  padding: 9px 11px;
  border: 2px solid #d8dcec;
  border-radius: 8px;
  font-family: inherit;
  font-size: .92rem;
  background: #fff;
  color: #1d2237;
}
.r9-split-row select:focus {
  outline: 0;
  border-color: #0e4ccc;
}
.r9-actor-count-pill {
  background: #eef3ff;
  color: #0e4ccc;
  font-weight: 700;
  font-size: .82rem;
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid #cdd6f0;
}

/* --- Reveal-on-checkbox boxes (sync minutes, source connect) --- */
.r9-reveal {
  margin-top: 8px;
  padding: 10px 12px;
  background: #f7f9ff;
  border: 1px dashed #cdd6f0;
  border-radius: 8px;
  display: none;
}
.r9-reveal.is-shown { display: block; }
.r9-reveal label {
  font-size: .85rem;
  color: #0e4ccc;
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}
.r9-reveal input[type=number] {
  width: 100%;
  padding: 8px 10px;
  border: 2px solid #d8dcec;
  border-radius: 6px;
  font-size: .95rem;
}
.r9-reveal input[type=number]:focus {
  outline: 0; border-color: #0e4ccc;
}

/* --- Combined delivery row (checkmark + bracket) --- */
.r9-delivery-combo {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.r9-delivery-combo .r9-delivery-bracket {
  font-size: .82rem;
  color: #6c7188;
  padding-left: 4px;
}

/* --- Email/Name input field validation states --- */
.r9-input.is-invalid,
.r9-input.is-required-empty {
  border-color: #d8dcec;
}
.r9-contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 600px) {
  .r9-contact-row { grid-template-columns: 1fr; }
}

/* --- The new "Get a Quote here!" title bar --- */
.main-row-title.is-quote-title h1 {
  font-family: 'Rise of Kingdom', Georgia, serif;
  color: #fff !important;
  text-shadow: 0 2px 8px rgba(0,0,0,.35);
  letter-spacing: 1px;
}
.main-row-title.is-quote-title p {
  color: #fff !important;
  text-shadow: 0 1px 4px rgba(0,0,0,.25);
}
.main-row-title.is-quote-title {
  background: linear-gradient(135deg, #0e4ccc 0%, #1a5fe6 50%, #ff7a18 110%);
}

/* ============================================================
   ROUND 13 REVISION — additional UI
   ============================================================ */

/* --- Actor selected green checkmark --- */
.r9-actor-check {
  position: absolute;
  bottom: 16px;
  right: -2px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #2e8540;
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
  pointer-events: none;
  line-height: 1;
}
.r9-actor.is-selected .r9-actor-check { display: flex; }

/* --- Actor grid: tighter 6px gap --- */
.r9-actors {
  gap: 6px !important;
}

/* --- Add-ons collapsible section --- */
/* Round 15: 3pt blue border around the entire ADD-ONS pulldown */
.r9-addons-section {
  /* Round 20: 4px GREEN outline so people notice the Add-Ons section. */
  border: 4px solid #15a35a;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 0 0 0 rgba(21,163,90,.0);
  transition: box-shadow .25s ease;
}
.r9-addons-section:hover,
.r9-addons-section.is-open {
  box-shadow: 0 0 0 4px rgba(21,163,90,.18);
}
.r9-addons-toggle {
  width: 100%;
  background: #f0fbf4;
  border: 0;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-family: inherit;
  font-size: .95rem;
  font-weight: 700;
  color: #15a35a;
  letter-spacing: .3px;
  text-transform: uppercase;
}
.r9-addons-toggle:hover { background: #e2f6ea; }
.r9-addons-toggle .r9-addons-toggle-sub {
  font-weight: 400;
  font-size: .82rem;
  color: #6c7188;
  text-transform: none;
  letter-spacing: 0;
  margin-left: 10px;
  flex: 1;
  text-align: left;
}
.r9-addons-toggle .r9-chev {
  display: inline-block;
  transition: transform .2s;
  color: #0e4ccc;
  font-size: 1rem;
}
.r9-addons-section.is-open .r9-chev { transform: rotate(180deg); }
.r9-addons-body {
  display: none;
  padding: 12px 14px;
  border-top: 1px solid #e6e9f4;
}
.r9-addons-section.is-open .r9-addons-body { display: block; }
.r9-addons-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 0 14px 12px;
}
.r9-addons-chip {
  background: #fff8f0;
  color: #b85b00;
  border: 1px solid #ffd6b3;
  padding: 3px 9px;
  border-radius: 12px;
  font-size: .76rem;
  font-weight: 600;
}

/* --- Single-row addon checkbox buttons --- */
.r9-addons-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.r9-addon-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #d8dcec;
  border-radius: 8px;
  cursor: pointer;
  background: #fff;
  user-select: none;
  transition: border-color .12s, background .12s;
}
.r9-addon-row:hover { border-color: #0e4ccc; background: #f7f9ff; }
.r9-addon-row:has(input:checked) {
  border-color: #ff7a18;
  background: #fff8f0;
}
.r9-addon-row input[type=checkbox] { width: 16px; height: 16px; flex-shrink: 0; margin: 0; }
.r9-addon-row .r9-addon-label {
  flex: 1;
  font-size: .92rem;
  font-weight: 600;
  color: #1d2237;
}
.r9-addon-row .r9-addon-sub {
  display: block;
  font-weight: 400;
  font-size: .78rem;
  color: #6c7188;
  margin-top: 1px;
}
.r9-addon-row .r9-addon-price {
  font-size: .9rem;
  font-weight: 700;
  color: #ff7a18;
  white-space: nowrap;
}

/* --- Nested addon (Source Connect inside Live Direction) --- */
.r9-addon-nested {
  margin: 0 12px 6px 38px;
  display: none;
  border: 1px dashed #cdd6f0;
  background: #f7f9ff;
}
.r9-addon-nested.is-shown { display: flex; }

/* --- Project-specific addon-row inputs (chapter/line/character counters) --- */
.r9-addon-counter {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  color: #6c7188;
}
.r9-addon-counter input[type=number] {
  width: 76px;
  padding: 4px 8px;
  border: 1px solid #d8dcec;
  border-radius: 6px;
  font-size: .85rem;
  text-align: right;
}
.r9-addon-counter.is-disabled {
  opacity: .55;
  pointer-events: none;
}

/* --- "What's included" trust block --- */
.r9-included-block {
  background: #f0f7ff;
  border: 1px solid #cbd9f2;
  border-radius: 10px;
  padding: 14px 16px;
  margin-top: 10px;
}
.r9-included-block h4 {
  margin: 0 0 8px;
  color: #0e4ccc;
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .3px;
  text-transform: uppercase;
}
.r9-included-block ul {
  margin: 0;
  padding-left: 18px;
  font-size: .85rem;
  color: #1d2237;
  line-height: 1.55;
}
.r9-included-block li { margin-bottom: 3px; }
.r9-included-block li::marker { color: #2e8540; content: '✓ '; }

/* --- Family bundle callout (shows when 2+ actors selected) ---
   Round 20: removed the ~5px top gap (margin-top: 10px → 0) so the callout
   sits flush under the "Voice Actors" group header. Added margin-bottom
   to keep gap BELOW the callout instead. */
.r9-family-bundle-callout {
  background: linear-gradient(135deg, #fff8f0 0%, #fff0e0 100%);
  border: 2px solid #ff7a18;
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: 0;
  margin-bottom: 14px;
  font-size: .88rem;
  line-height: 1.5;
  color: #8a4a00;
}
.r9-family-bundle-callout strong { color: #d32f2f; }

/* --- Series checkbox row --- */
.r9-series-row {
  margin-top: 10px;
  padding: 10px 12px;
  background: #f7f9ff;
  border: 1px solid #cdd6f0;
  border-radius: 8px;
  font-size: .88rem;
}
.r9-series-row label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.r9-series-row .r9-series-note {
  font-size: .78rem;
  color: #0e4ccc;
  margin-top: 4px;
  font-style: italic;
  display: none;
}
.r9-series-row.is-checked .r9-series-note { display: block; }

/* --- Split files dynamic counter row --- */
.r9-split-counter-row {
  display: none;
  margin-top: 8px;
  padding: 10px 12px;
  background: #f7f9ff;
  border: 1px dashed #cdd6f0;
  border-radius: 8px;
}
.r9-split-counter-row.is-shown { display: block; }
.r9-split-counter-row label {
  display: block;
  font-size: .85rem;
  color: #0e4ccc;
  font-weight: 600;
  margin-bottom: 6px;
}
.r9-split-counter-row input[type=number] {
  width: 100%;
  padding: 8px 10px;
  border: 2px solid #d8dcec;
  border-radius: 6px;
  font-size: .95rem;
}
.r9-split-counter-row input[type=number]:focus { outline: 0; border-color: #0e4ccc; }
.r9-split-naming-sub {
  margin-top: 8px;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid #d8dcec;
  border-radius: 6px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: .85rem;
}
.r9-split-naming-sub input { width: 16px; height: 16px; margin-top: 2px; flex-shrink: 0; }
.r9-split-naming-sub .r9-split-naming-text { flex: 1; }
.r9-split-naming-sub .r9-split-naming-note {
  display: block;
  font-size: .75rem;
  color: #6c7188;
  margin-top: 2px;
  font-style: italic;
}
.r9-split-counter-disabled {
  opacity: .55;
  pointer-events: none;
}

/* --- Animal/Creature actor — no coaching badge --- */
.r9-actor.is-creature .r9-actor-circle { border-color: #6c7188; }
.r9-actor.is-creature.is-selected .r9-actor-circle { border-color: #ff7a18 !important; }
.r9-actor-badge.is-creature {
  background: #6c7188;
  color: #fff;
}

/* --- Pulse-highlight for missing-info nudge on email button --- */
@keyframes r9-pulse-amber {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 122, 24, .7); border-color: #ff7a18; }
  50%      { box-shadow: 0 0 0 8px rgba(255, 122, 24, 0); border-color: #ffa760; }
}
.r9-pulse-amber {
  animation: r9-pulse-amber 1s ease-in-out 4;
  border-color: #ff7a18 !important;
  border-width: 2px !important;
}

/* --- Delivery row in summary --- */
.r9-delivery-summary-rush {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #fff8f0;
  border: 1px solid #ffd6b3;
  border-radius: 6px;
  font-size: .85rem;
}
.r9-delivery-summary-rush input { width: 16px; height: 16px; }
.r9-delivery-summary-rush span { color: #b85b00; font-weight: 600; }

/* ============================================================
   Round 14: Place-Order modal — character-name rows + helpers
   ------------------------------------------------------------ */
.r9-charnames {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.r9-charname-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  background: #f7f9ff;
  border: 1px solid #e0e6f5;
  border-radius: 8px;
}
.r9-charname-icon {
  flex: 0 0 36px;
  width: 36px; height: 36px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #aedaf1;
  background: #fff;
}
.r9-charname-icon img { width: 100%; height: 100%; object-fit: cover; }
.r9-charname-actor {
  flex: 0 0 78px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #0e4ccc;
}
.r9-charname-row input[type="text"] {
  flex: 1 1 auto;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid #cdd6e6;
  border-radius: 6px;
  font-size: 0.9rem;
}

/* File / textarea inputs inside the place-order modal */
#r9-checkout-modal textarea,
#r9-checkout-modal input[type="text"],
#r9-checkout-modal input[type="email"],
#r9-checkout-modal input[type="tel"],
#r9-checkout-modal input[type="file"] {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid #cdd6e6;
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: inherit;
}
#r9-checkout-modal textarea { resize: vertical; min-height: 70px; }

@media (max-width: 760px) {
  #r9-checkout-modal .calc-r9-body { grid-template-columns: 1fr; }
  .r9-charname-row { flex-wrap: wrap; }
  .r9-charname-actor { flex: 0 0 auto; }
  .r9-charname-row input[type="text"] { flex: 1 1 100%; }
}

/* ============================================================
   Round 15: INLINE calculator mount (no modal/overlay).
   Used on /QUOTE/ page so the calculator IS the page content
   instead of being hidden behind a "Launch" button.
   ------------------------------------------------------------ */
.calc-r9-inline {
  display: block;
  width: min(1100px, 100%);
  margin: 28px auto;
  padding: 0 16px;
}
.calc-r9-container--inline {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  max-height: none;        /* let it expand naturally */
  overflow: visible;
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0,0,0,.18);
}
.calc-r9-container--inline .calc-r9-body {
  overflow: visible;
}
.calc-r9-container--inline .calc-r9-form,
.calc-r9-container--inline .calc-r9-summary {
  overflow: visible;
  max-height: none;
}
.quote-inline-wrap {
  padding: 8px 16px 48px;
}
@media (max-width: 760px) {
  .calc-r9-inline { padding: 0; margin: 16px auto; }
  .calc-r9-container--inline { border-radius: 0; box-shadow: 0 4px 14px rgba(0,0,0,.10); }
}

/* ============================================================
   Round 15: ADD-ONS pulldown — 3pt blue border (applied to
   the actual .r9-addons-section above; this block is intentionally
   left blank for backward compat with any external selectors).
   ------------------------------------------------------------ */

/* Inbox-respect notice under name/email */
.r9-inbox-respect {
  margin: -6px 0 8px;
  font-size: 0.78rem;
  color: #5a6276;
  font-style: italic;
}

/* ============================================================
   Round 15: Undercuts notice — restyle "familyVO" with
   Rise Kingdom dark-blue and match Family-cast border style.
   ------------------------------------------------------------ */
.r9-undercut-note,
.r9-undercut {
  background: linear-gradient(135deg, #fff8f0 0%, #fff0e0 100%);
  border: 2px solid #ff7a18;
  border-radius: 10px;
  padding: 12px 14px;
  margin: 12px 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #8a4a00;
}
.r9-undercut-note strong,
.r9-undercut strong { color: #d32f2f; }
.r9-undercut .r9-fvo-brand,
.r9-undercut-note .r9-fvo-brand {
  font-family: 'Rise of Kingdom', 'Rise Kingdom', Georgia, serif;
  color: #0a3aa8;
  font-size: 1.55em;
  font-weight: 700;
  letter-spacing: 0.5px;
  vertical-align: -0.05em;
  display: inline-block;
  line-height: 1;
}
/* Override the older r9-undercut-tagline if the same element has both classes */
.r9-undercut-tagline.r9-undercut-note {
  background: linear-gradient(135deg, #fff8f0 0%, #fff0e0 100%) !important;
  border: 2px solid #ff7a18 !important;
  color: #8a4a00 !important;
}

/* ============================================================
   Round 16 — Inline calc rendered "bare" (no box-in-box).
   ============================================================ */
.calc-r9-inline.calc-r9-inline--bare {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  width: min(1200px, 100%);
  margin: 0 auto;
}
.calc-r9-inline.calc-r9-inline--bare .calc-r9-body {
  /* keep existing 2-column layout from .calc-r9-body */
}

/* Round 16: nudge inbox-respect line down so it clears
   the inputs above. (Used to overlap by ~5px.) */
.r9-inbox-respect {
  margin-top: 12px !important;     /* was -6px */
  padding-top: 4px;
  font-size: 0.78rem;
  color: #5a6276;
  font-style: italic;
}

/* Round 16: STICKY scroll of summary column ----------------
   On wide screens, the summary (col 2) follows the user as
   they scroll through the form (col 1).  Disabled on mobile
   where the layout is single-column. */
@media (min-width: 900px) {
  .calc-r9-inline--bare .calc-r9-body {
    align-items: start;        /* prevent stretch so sticky works */
  }
  .calc-r9-inline--bare .calc-r9-summary {
    position: sticky;
    top: 90px;                 /* clears the fixed site header */
    align-self: start;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
  }
}

/* Round 16 — Place Order step header: white text on dark blue.
   The h2 was already white via .calc-r9-header h2, but the
   .r9-quote-id subline (#6c7188 gray) was nearly invisible
   on the same gradient. Force white inside the gradient header. */
.calc-r9-header .r9-quote-id,
.calc-r9-header h2,
.r9-place-order .r9-stage-title,
.r9-po-step-title {
  color: #ffffff !important;
}
.calc-r9-header .r9-quote-id {
  color: rgba(255,255,255,.92) !important;
}

/* Round 16 — File-size error box (5MB Web3Forms Pro limit) */
.r9-file-error {
  margin-top: 8px;
  padding: 10px 14px;
  background: #fff3f3;
  border: 2px solid #d32f2f;
  border-radius: 8px;
  color: #8b0000;
  font-size: .88rem;
  line-height: 1.5;
}
.r9-file-error strong { color: #d32f2f; }
.r9-file-error em { color: #5a6276; font-style: italic; }

/* ====================================================================
 * Round 19 — Newsletter opt-in checkbox in the calculator + checkout
 * ==================================================================== */
.r9-newsletter-opt {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 8px 0 4px;
  padding: 8px 10px;
  background: #f5f9ff;
  border: 1px solid #d5e0f5;
  border-radius: 6px;
  font-size: 0.85rem;
  color: #2a3140;
  line-height: 1.4;
  cursor: pointer;
}
.r9-newsletter-opt input[type="checkbox"] {
  margin-top: 3px;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  accent-color: #0e4ccc;
}
.r9-newsletter-opt span { flex: 1; }
.r9-newsletter-opt:hover { background: #eef5ff; border-color: #b8c8eb; }

/* Round 20: spec tooltip in "What's Included" + questions line */
.r9-spec-tooltip {
  position: relative;
  display: inline-block;
  color: #0e4ccc;
  border-bottom: 1px dotted #0e4ccc;
  cursor: help;
  font-weight: 600;
}
.r9-spec-tooltip:focus { outline: 2px solid #0e4ccc; outline-offset: 2px; }
.r9-spec-tooltip__pop {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  width: 280px;
  background: #fff;
  border: 2px solid #0e4ccc;
  border-radius: 10px;
  padding: 10px 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,.15);
  font-size: .82rem;
  line-height: 1.45;
  color: #333;
  font-weight: normal;
  text-align: left;
  z-index: 10;
  display: none;
  white-space: normal;
}
.r9-spec-tooltip__pop strong {
  display: block;
  margin-bottom: 4px;
  color: #0e4ccc;
  font-size: .9rem;
}
.r9-spec-tooltip__pop ul {
  margin: 0;
  padding-left: 18px;
}
.r9-spec-tooltip__pop li { padding: 1px 0; }
.r9-spec-tooltip:hover .r9-spec-tooltip__pop,
.r9-spec-tooltip:focus .r9-spec-tooltip__pop,
.r9-spec-tooltip:focus-within .r9-spec-tooltip__pop {
  display: block;
}

/* Questions footer line below "What's Included" */
.r9-questions-line {
  margin: 14px 0 6px;
  padding: 12px 14px;
  background: #f7f9ff;
  border-left: 3px solid #0e4ccc;
  border-radius: 6px;
  font-size: .9rem;
  line-height: 1.55;
  color: #2e3a4a;
}
.r9-questions-line a {
  color: #0e4ccc;
  font-weight: 700;
  text-decoration: none;
}
.r9-questions-line a:hover { text-decoration: underline; }

/* ====================================================================
 * ROUND 20 — Place Order goes INLINE (no longer a modal overlay)
 *
 * The #r9-checkout-modal element keeps its id (JS still references it)
 * but is now a normal block-flow panel placed right after the
 * calculator host. Single page scrollbar throughout.
 * ==================================================================== */
#r9-checkout-modal.calc-r9-overlay {
  position: static !important;
  inset: auto !important;
  background: transparent !important;
  backdrop-filter: none !important;
  z-index: auto !important;
  display: block;
  align-items: stretch;
  justify-content: stretch;
  overflow: visible !important;
  padding: 24px 0;
}
#r9-checkout-modal.calc-r9-overlay .calc-r9-container {
  width: 100%;
  max-width: none;
  max-height: none;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0,0,0,.18);
  border: 2px solid #0e4ccc;
}
@media (max-width: 760px) {
  #r9-checkout-modal.calc-r9-overlay .calc-r9-container {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }
}

/* Quote calculator collapsed state — show a thin "Editing quote · click to
   reopen" reminder bar; hide the full form below. */
.r9-quote-collapsed > * {
  display: none !important;
}
.r9-quote-collapsed::before {
  content: "Quote captured ✓ — scroll down to complete your order";
  display: block !important;
  background: linear-gradient(135deg, #f0f6ff, #e7efff);
  border: 2px dashed #0e4ccc;
  border-radius: 10px;
  color: #0e4ccc;
  font-weight: 700;
  text-align: center;
  padding: 14px 16px;
  margin: 8px 0;
  font-size: .98rem;
}

/* Round 20: Order Summary itemized prices in Place Order panel */
.r9-co-itemized {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed #cdd6e0;
}
.r9-co-li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: .88rem;
  padding: 3px 0;
  color: #2a3340;
}
.r9-co-li--total {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #0e4ccc;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0e4ccc;
}

/* Direction file upload micro-styling */
.r9-direction-file {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 8px 10px;
  background: #f7f9ff;
  border: 1px dashed #b9c8e6;
  border-radius: 8px;
  font-size: .85rem;
  color: #506080;
}
.r9-direction-file input[type=file] { flex: 1 1 auto; }
