:root {
  --rc-green: #173b2b;
  --rc-green-deep: #0f291e;
  --rc-gold: #846223;
  --rc-gold-soft: #c49a3c;
  --rc-bg: #f7f4ee;
  --rc-bg-warm: #f1eadc;
  --rc-card: #fffdfa;
  --rc-border: #dfd0b2;
  --rc-border-soft: #eadfcb;
  --rc-text: #22352a;
  --rc-muted: #5a6c60;
  --rc-danger: #9f2d20;
  --rc-danger-bg: #fdf2f0;
  --rc-ok: #1d5b3a;
  --rc-ok-bg: #edf7f1;
  --rc-serif: 'Cormorant Garamond', Georgia, serif;
  --rc-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--rc-bg);
  color: var(--rc-text);
  font-family: var(--rc-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--rc-green); }

.rc-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(250, 247, 240, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rc-border-soft);
}

.rc-header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.rc-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--rc-green);
}

.rc-logo {
  height: 36px;
  width: auto;
  display: block;
}

.rc-brand-text {
  font-family: var(--rc-serif);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.rc-header-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.rc-badge-secure {
  font-size: 12px;
  font-weight: 600;
  color: var(--rc-gold);
  background: #f5eedf;
  border: 1px solid var(--rc-border);
  border-radius: 999px;
  padding: 5px 12px;
}

.rc-portal-top {
  font-size: 13px;
  font-weight: 500;
  color: var(--rc-green);
  text-decoration: none;
}
.rc-portal-top:hover { text-decoration: underline; }

.rc-main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 20px 64px;
  min-height: calc(100vh - 180px);
}

.rc-loading {
  text-align: center;
  padding: 72px 16px;
  color: var(--rc-muted);
}

.rc-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rc-gold);
  margin: 0 0 8px;
}

h1, h2, h3 {
  font-family: var(--rc-serif);
  color: var(--rc-green);
  font-weight: 500;
  margin: 0 0 12px;
}
h1 { font-size: clamp(32px, 4.5vw, 44px); line-height: 1.08; letter-spacing: -0.02em; }
h2 { font-size: clamp(25px, 3vw, 32px); line-height: 1.15; }
h3 { font-size: 21px; font-weight: 600; }

.rc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(290px, 0.95fr);
  gap: 28px;
  align-items: start;
}

.rc-card {
  background: var(--rc-card);
  border: 1px solid var(--rc-border);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 4px 18px rgba(23, 59, 43, 0.04);
}

.rc-summary {
  position: sticky;
  top: 84px;
}

.rc-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--rc-ok-bg);
  color: var(--rc-ok);
  border: 1px solid #c3e2cf;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 14px;
}

.rc-pill-sync {
  background: #f5eedf;
  color: var(--rc-gold);
  border-color: var(--rc-border);
}

.rc-price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--rc-border-soft);
  font-size: 14px;
}
.rc-price-row.total {
  border-bottom: none;
  padding-top: 14px;
  font-weight: 700;
  font-size: 17px;
  color: var(--rc-green);
}

.rc-hold-steps {
  margin: 18px 0 0;
  padding: 16px;
  background: var(--rc-bg);
  border: 1px solid var(--rc-border-soft);
  border-radius: 12px;
  font-size: 13px;
}
.rc-hold-steps ol {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--rc-muted);
}
.rc-hold-steps li { margin-bottom: 5px; }

.rc-stepper {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.rc-step-tag {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--rc-border-soft);
  color: var(--rc-muted);
  background: var(--rc-bg);
}
.rc-step-tag.is-active {
  background: var(--rc-green);
  border-color: var(--rc-green);
  color: #fffdfa;
}
.rc-step-tag.is-done {
  background: var(--rc-ok-bg);
  border-color: #c3e2cf;
  color: var(--rc-ok);
}

.rc-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.rc-full { grid-column: 1 / -1; }

.rc-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--rc-green);
}

.text-input, .rc-input, .rc-select {
  width: 100%;
  min-height: 44px;
  padding: 10px 13px;
  font-family: var(--rc-sans);
  font-size: 15px;
  color: var(--rc-text);
  background: #ffffff;
  border: 1px solid var(--rc-border);
  border-radius: 10px;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.text-input:focus, .rc-input:focus, .rc-select:focus {
  border-color: var(--rc-green);
  box-shadow: 0 0 0 3px rgba(23, 59, 43, 0.12);
}
textarea.text-input { min-height: 92px; resize: vertical; }

.rc-card-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}
.rc-collect-slot {
  height: 46px;
  padding: 0 12px;
  background: #ffffff;
  border: 1px solid var(--rc-border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.rc-collect-slot iframe {
  width: 100% !important;
  height: 44px !important;
  border: none !important;
  outline: none !important;
  background: transparent !important;
}
.rc-collect-slot.rc-full { grid-column: 1 / -1; }

.rc-promo-row {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.rc-promo-row input { flex: 1; }

.primary, .secondary, .text-button {
  font-family: var(--rc-sans);
  font-size: 15px;
  font-weight: 600;
  border-radius: 11px;
  padding: 12px 20px;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, opacity 150ms ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}
.primary {
  background: var(--rc-green);
  color: #fffdfa;
  border: 1px solid var(--rc-green);
}
.primary:hover:not(:disabled) { background: var(--rc-green-deep); }
.primary:disabled { opacity: 0.55; cursor: not-allowed; }

.secondary {
  background: var(--rc-bg);
  color: var(--rc-green);
  border: 1px solid var(--rc-border);
  font-size: 13px;
  padding: 9px 14px;
}
.secondary:hover:not(:disabled) { background: var(--rc-bg-warm); border-color: var(--rc-gold); }

.text-button {
  background: transparent;
  color: var(--rc-muted);
  border: 1px solid transparent;
  padding: 10px 12px;
}
.text-button:hover { color: var(--rc-green); }

.rc-actions, .actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
}

.error {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--rc-danger-bg);
  border: 1px solid #ecc6c0;
  color: var(--rc-danger);
  font-size: 14px;
  font-weight: 500;
}

.info {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f5eedf;
  border: 1px solid var(--rc-border);
  color: var(--rc-green);
  font-size: 14px;
}

.rc-auth-progress {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--rc-bg);
  border: 1px solid var(--rc-border);
}
.rc-auth-bar {
  height: 6px;
  border-radius: 999px;
  background: var(--rc-border-soft);
  overflow: hidden;
  margin-top: 8px;
}
.rc-auth-bar-fill {
  height: 100%;
  background: var(--rc-green);
  transition: width 350ms ease;
}

/* Custom Intake Runner */
.section-note {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rc-gold);
  margin: 0 0 8px;
}
.progress-copy {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--rc-muted);
  margin-bottom: 6px;
}
.progress meter {
  width: 100%;
  height: 8px;
  display: block;
  margin-bottom: 20px;
}
.question {
  border: none;
  padding: 0;
  margin: 0 0 18px;
}
.question legend {
  font-family: var(--rc-serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--rc-green);
  line-height: 1.25;
  margin-bottom: 10px;
  padding: 0;
}
.help, .subtle, .intro-copy {
  color: var(--rc-muted);
  font-size: 14px;
  margin: 0 0 14px;
}
.choices {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.choice {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 12px 14px;
  border: 1px solid var(--rc-border);
  border-radius: 11px;
  background: #fff;
  cursor: pointer;
  transition: border-color 140ms ease, background-color 140ms ease;
}
.choice:hover {
  border-color: var(--rc-green);
  background: var(--rc-bg);
}
.choice input {
  width: auto !important;
  min-height: 0 !important;
  margin-top: 3px;
  accent-color: var(--rc-green);
  flex-shrink: 0;
}
.ci-bmi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.ci-bmi-grid label, .profile-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--rc-green);
}
.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

/* Consent Cards */
.ci-consent-bar { margin: 14px 0; }
.ci-consent-section {
  background: #fff;
  border: 1px solid var(--rc-border);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 14px;
}
.ci-consent-section h3 {
  font-size: 20px;
  margin: 0 0 10px;
}
.richtext {
  font-size: 14px;
  line-height: 1.6;
  color: var(--rc-text);
}
.ci-consent-copy {
  font-size: 14px;
  color: var(--rc-text);
  margin: 8px 0;
}
.ci-consent-ack {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 11px 13px;
  margin: 8px 0;
  border: 1px solid var(--rc-border-soft);
  border-radius: 10px;
  background: var(--rc-bg);
  cursor: pointer;
  font-size: 14px;
  transition: border-color 140ms ease, background-color 140ms ease;
}
.ci-consent-ack:hover {
  border-color: var(--rc-green);
  background: var(--rc-bg-warm);
}
.ci-consent-ack input {
  width: auto !important;
  min-height: 0 !important;
  margin-top: 3px;
  accent-color: var(--rc-green);
  flex-shrink: 0;
}
.ci-consent-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 12px 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--rc-green);
}

/* Identity Upload Cards */
.ci-upload-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  margin-bottom: 12px;
  border: 1px solid var(--rc-border);
  border-radius: 14px;
  background: #fff;
}
.ci-upload-card.is-done {
  border-color: #b7dcc4;
  background: var(--rc-ok-bg);
}
.ci-upload-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ci-upload-thumb {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--rc-border);
}
.ci-upload-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--rc-green);
  color: #fffdfa;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 140ms ease;
}
.ci-upload-btn:hover { background: var(--rc-green-deep); }
.ci-upload-btn.is-disabled { opacity: 0.5; pointer-events: none; }
.ci-upload-done {
  font-size: 13px;
  font-weight: 700;
  color: var(--rc-ok);
}

/* Catalog Picker */
.rc-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.rc-cat-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--rc-border);
  border-radius: 14px;
  background: var(--rc-card);
  text-decoration: none;
  color: inherit;
  transition: border-color 140ms ease, transform 140ms ease;
}
.rc-cat-card:hover {
  border-color: var(--rc-green);
  transform: translateY(-1px);
}
.rc-cat-price {
  font-family: var(--rc-serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--rc-green);
}

.rc-visit-box {
  margin-top: 22px;
  padding: 20px;
  border: 1px solid var(--rc-border);
  border-radius: 14px;
  background: var(--rc-bg);
}

.rc-footer {
  border-top: 1px solid var(--rc-border-soft);
  background: var(--rc-bg-warm);
  padding: 24px 20px;
  font-size: 13px;
  color: var(--rc-muted);
}
.rc-footer-inner {
  max-width: 1080px;
  margin: 0 auto;
}
.rc-footer p { margin: 0 0 6px; }
.rc-footer-note { font-size: 12px; opacity: 0.85; }

@media (max-width: 820px) {
  .rc-grid { grid-template-columns: 1fr; }
  .rc-summary { position: static; order: -1; }
  .rc-form-grid, .ci-bmi-grid, .profile-grid, .rc-card-box { grid-template-columns: 1fr; }
  .rc-card { padding: 20px; }
  .rc-badge-secure { display: none; }
}
