/* ══════════════════════════════════════════════════════════════
   RDmoving — Public Form  (Premium / Apple-quality)
   ══════════════════════════════════════════════════════════════ */

/* ── Hide theme header & footer when a full-screen step is active ── */
body.rdm-fullscreen-active > header,
body.rdm-fullscreen-active > footer,
/* Generic WordPress theme structures */
body.rdm-fullscreen-active #masthead,
body.rdm-fullscreen-active #colophon,
body.rdm-fullscreen-active .site-header,
body.rdm-fullscreen-active .site-footer,
body.rdm-fullscreen-active .page-header,
/* Elementor */
body.rdm-fullscreen-active .elementor-location-header,
body.rdm-fullscreen-active .elementor-location-footer,
/* Astra */
body.rdm-fullscreen-active #ast-fixed-header,
body.rdm-fullscreen-active .ast-above-header-wrap,
body.rdm-fullscreen-active .ast-header-break-point,
body.rdm-fullscreen-active #ast-desktop-header,
body.rdm-fullscreen-active .ast-footer-overlay,
body.rdm-fullscreen-active #ast-scroll-top,
/* Divi */
body.rdm-fullscreen-active #main-header,
body.rdm-fullscreen-active #top-header,
body.rdm-fullscreen-active #footer-widgets,
body.rdm-fullscreen-active #main-footer,
/* Beaver Builder */
body.rdm-fullscreen-active .fl-page-header,
body.rdm-fullscreen-active .fl-page-nav-wrap,
body.rdm-fullscreen-active .fl-page-footer-wrap,
/* OceanWP */
body.rdm-fullscreen-active #site-header-fixed,
body.rdm-fullscreen-active #site-navigation-wrap,
body.rdm-fullscreen-active #footer-inner,
/* GeneratePress */
body.rdm-fullscreen-active .site-header,
body.rdm-fullscreen-active .site-footer,
/* Kadence */
body.rdm-fullscreen-active #masthead,
body.rdm-fullscreen-active .wp-block-template-part[class*="header"],
body.rdm-fullscreen-active .wp-block-template-part[class*="footer"] {
  display: none !important;
}

:root {
  --rdm-primary:       #16a34a;
  --rdm-primary-dark:  #15803d;
  --rdm-primary-pale:  #f0fdf4;
  --rdm-primary-ring:  rgba(22,163,74,.18);
  --rdm-radius:        12px;
  --rdm-radius-sm:     8px;
  --rdm-border:        #d1d1d6;
  --rdm-border-focus:  var(--rdm-primary);
  --rdm-text:          #1d1d1f;
  --rdm-text-muted:    #6e6e73;
  --rdm-text-faint:    #aeaeb2;
  --rdm-bg:            #f5f5f7;
  --rdm-surface:       #ffffff;
  --rdm-error:         #dc2626;
  --rdm-shadow-card:   0 2px 8px rgba(0,0,0,.06), 0 0 0 1px rgba(0,0,0,.04);
  --rdm-shadow-lg:     0 8px 30px rgba(0,0,0,.12);
  --rdm-focus-ring:    0 0 0 3px var(--rdm-primary-ring);
}

/* Step View design tokens at :root so portaled elements keep them */
:root {
  --sv-bg:         #F4F1EC;
  --sv-paper:      #FBFAF7;
  --sv-line:       #E4E0D7;
  --sv-line-2:     #EDE9E0;
  --sv-ink:        #13140F;
  --sv-ink-2:      #3F4239;
  --sv-ink-3:      #737568;
  --sv-sage:       #3F5A3A;
  --sv-gold:       #B8893E;
}

/* ══════════════════════════════════════════════════════════════
   CSS ISOLATION — keeps theme styles out of the plugin.

   Strategy: scope everything to #rdm-form-wrap (ID = specificity
   1,0,0), which beats any class-based or element-based theme rule.
   The full-screen steps (#rdm-step-service, #rdm-step-2,
   #rdm-step-appt) are DOM children of #rdm-form-wrap, so these
   rules apply to them too even though they are position:fixed.
   ══════════════════════════════════════════════════════════════ */

/* 1. Box model */
#rdm-form-wrap *,
#rdm-form-wrap *::before,
#rdm-form-wrap *::after {
  box-sizing: border-box;
}

/* 2. Base typography — explicit font prevents theme body inheritance */
#rdm-form-wrap {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--rdm-text, #1d1d1f);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 3. Buttons — safe resets that don't conflict with styled plugin buttons */
#rdm-form-wrap button {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  line-height: normal;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  text-transform: none;
  text-shadow: none;
}
/* Visual resets only for unstyled (non-plugin) buttons */
#rdm-form-wrap button:not([class*="rdm-"]) {
  background: transparent;
  border: none;
  margin: 0;
  padding: 0;
  letter-spacing: normal;
  box-shadow: none;
  outline: none;
}

/* 4. Inputs / selects / textareas */
#rdm-form-wrap input,
#rdm-form-wrap select,
#rdm-form-wrap textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  letter-spacing: normal;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}

/* 5. Links — themes set color and underline globally */
#rdm-form-wrap a {
  color: inherit;
  text-decoration: none;
  background: transparent;
}

/* 6. Lists — themes often add list-style and margins */
#rdm-form-wrap ul,
#rdm-form-wrap ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* 7. Headings — themes add font-size, margin, line-height, color */
#rdm-form-wrap h1,
#rdm-form-wrap h2,
#rdm-form-wrap h3,
#rdm-form-wrap h4,
#rdm-form-wrap h5,
#rdm-form-wrap h6 {
  margin: 0;
  padding: 0;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
  text-transform: none;
  letter-spacing: normal;
}
/* font-size reset only for headings without plugin classes */
#rdm-form-wrap h1:not([class*="rdm-"]),
#rdm-form-wrap h2:not([class*="rdm-"]),
#rdm-form-wrap h3:not([class*="rdm-"]),
#rdm-form-wrap h4:not([class*="rdm-"]),
#rdm-form-wrap h5:not([class*="rdm-"]),
#rdm-form-wrap h6:not([class*="rdm-"]) { font-size: inherit; }

/* 8. Images & SVG */
#rdm-form-wrap img { max-width: 100%; height: auto; vertical-align: middle; }
#rdm-form-wrap svg { display: block; overflow: visible; }

/* ── Legacy box-model reset (kept for compat) ── */
.rdm-wrap *, .rdm-wrap *::before, .rdm-wrap *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Page wrapper ─────────────────────────────────────────────── */
.rdm-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 36px 20px 120px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--rdm-text);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* ── Step dot indicator (inside sticky bar on step 2) ─────────── */
.rdm-bar-steps {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}
.rdm-bar-step {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  transition: background .25s, width .25s, border-radius .25s;
}
.rdm-bar-step--done { background: rgba(255,255,255,.65); }
.rdm-bar-step--active {
  width: 20px;
  border-radius: 4px;
  background: #fff;
}

/* ── Inventory section heading ───────────────────────────────── */
.rdm-inventory-heading {
  padding: 20px 0 6px;
  border-top: 1px solid var(--rdm-border);
  margin-top: 8px;
}
.rdm-inventory-heading__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--rdm-text);
  letter-spacing: -.3px;
  margin-bottom: 4px;
}
.rdm-inventory-heading__sub {
  font-size: 13px;
  color: var(--rdm-text-muted);
}

/* ── Step visibility ──────────────────────────────────────────── */
.rdm-step { display: block; }
.rdm-step--hidden { display: none !important; }

/* ── Step subtitle (kept for thank-you step) ──────────────────── */
.rdm-step__subtitle {
  font-size: 15px;
  color: var(--rdm-text-muted);
  line-height: 1.5;
}

/* ── Section cards ────────────────────────────────────────────── */
.rdm-section-card {
  background: var(--rdm-surface);
  border-radius: 16px;
  box-shadow: var(--rdm-shadow-card);
  padding: 24px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.rdm-section-card__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--rdm-text-muted);
  padding-bottom: 14px;
  border-bottom: 1px solid #f0f0f3;
}
.rdm-section-card__title svg {
  color: var(--rdm-primary);
  flex-shrink: 0;
}

/* ── Form layout ──────────────────────────────────────────────── */
.rdm-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.rdm-form__row { display: grid; gap: 14px; }
.rdm-form__row--2 { grid-template-columns: 1fr 1fr; }
.rdm-form__row--3 { grid-template-columns: 1fr 1fr 1fr; }
.rdm-form__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ── Labels ───────────────────────────────────────────────────── */
.rdm-label {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: var(--rdm-text-muted, #6e6e73) !important;
  letter-spacing: .025em !important;
  text-transform: uppercase !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}
.rdm-required { color: var(--rdm-error); }

/* ── Inputs ───────────────────────────────────────────────────── */
.rdm-input,
.rdm-select,
.rdm-textarea {
  width: 100% !important;
  box-sizing: border-box !important;
  height: 44px !important;
  padding: 0 14px !important;
  border: 1.5px solid var(--rdm-border, #d1d1d6) !important;
  border-radius: 10px !important;
  font-size: 15px !important;
  color: var(--rdm-text, #1d1d1f) !important;
  background: var(--rdm-surface, #fff) !important;
  transition: border-color .18s, box-shadow .18s;
  outline: none !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  box-shadow: none !important;
}
.rdm-input::placeholder { color: var(--rdm-text-faint); }
.rdm-input:focus,
.rdm-select:focus,
.rdm-textarea:focus {
  border-color: var(--rdm-border-focus);
  box-shadow: var(--rdm-focus-ring);
}
.rdm-input.rdm-input--error { border-color: var(--rdm-error); }

.rdm-textarea {
  height: auto;
  min-height: 88px;
  padding: 12px 14px;
  resize: vertical;
  line-height: 1.5;
}

.rdm-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23aeaeb2'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 36px;
  cursor: pointer;
}

/* ── Fieldsets → styled as section cards ──────────────────────── */
.rdm-fieldset {
  background: var(--rdm-surface);
  border-radius: 16px;
  box-shadow: var(--rdm-shadow-card);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: none;
}
.rdm-fieldset__legend {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--rdm-text-muted);
  padding-bottom: 14px;
  border-bottom: 1px solid #f0f0f3;
  margin-bottom: 4px;
  width: 100%;
}
.rdm-fieldset__legend svg { color: var(--rdm-primary); flex-shrink: 0; }

/* ── Error message ────────────────────────────────────────────── */
.rdm-form__error {
  background: #fef2f2;
  border: 1.5px solid #fecaca;
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--rdm-error);
  font-size: 13px;
  font-weight: 500;
}

.rdm-form__actions { margin-top: 6px; }

/* ── Honeypot (bot trap) ──────────────────────────────────────── */
.rdm-hp-wrap {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* ── Buttons ──────────────────────────────────────────────────── */
.rdm-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px;
  padding: 0 24px !important;
  height: 48px !important;
  border-radius: 12px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  border: none !important;
  cursor: pointer !important;
  font-family: inherit !important;
  letter-spacing: -.01em !important;
  transition: background .15s, box-shadow .15s, transform .1s;
  white-space: nowrap !important;
  text-decoration: none !important;
  line-height: 1 !important;
  box-shadow: none;
}
.rdm-btn:active { transform: scale(.97); }
.rdm-btn:disabled { opacity: .55; cursor: not-allowed; pointer-events: none; }

.rdm-btn--primary {
  background: var(--rdm-primary) !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(22,163,74,.25) !important;
}
.rdm-btn--primary:hover {
  background: var(--rdm-primary-dark) !important;
  box-shadow: 0 6px 20px rgba(22,163,74,.35) !important;
}

.rdm-btn--ghost {
  background: #f5f5f7 !important;
  color: var(--rdm-text-muted) !important;
  border: 1.5px solid var(--rdm-border) !important;
}
.rdm-btn--ghost:hover {
  background: #ebebed !important;
  color: var(--rdm-text) !important;
}

.rdm-btn--lg {
  width: 100% !important;
  height: 52px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  border-radius: 14px !important;
  letter-spacing: -.02em !important;
}

/* ── Step 2: Inventory ────────────────────────────────────────── */
.rdm-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 22px;
  border-bottom: 2px solid #f0f0f3;
  padding-bottom: 0;
  -webkit-overflow-scrolling: touch;
}
.rdm-tabs::-webkit-scrollbar { display: none; }
.rdm-tab {
  flex-shrink: 0;
  padding: 8px 16px;
  border: none;
  background: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--rdm-text-muted);
  cursor: pointer;
  border-bottom: 2.5px solid transparent;
  margin-bottom: -2px;
  transition: color .15s, border-color .15s;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.rdm-tab svg { width: 15px; height: 15px; }
.rdm-tab--active { color: var(--rdm-primary); border-bottom-color: var(--rdm-primary); }
.rdm-tab:hover:not(.rdm-tab--active) { color: var(--rdm-text); }

.rdm-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  padding-bottom: 110px;
}

.rdm-item-card {
  background: var(--rdm-surface);
  border: 1.5px solid var(--rdm-border);
  border-radius: 14px;
  padding: 16px 10px 12px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .15s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  user-select: none;
}
.rdm-item-card:hover {
  border-color: #b0d4bf;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  transform: translateY(-1px);
}
.rdm-item-card--active {
  border-color: var(--rdm-primary);
  background: var(--rdm-primary-pale);
  box-shadow: 0 0 0 3px var(--rdm-primary-ring);
  transform: translateY(-1px);
}
.rdm-item-card__icon {
  width: 44px;
  height: 44px;
  color: var(--rdm-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}
.rdm-item-card--active .rdm-item-card__icon { color: var(--rdm-primary); }
.rdm-item-card__icon svg { width: 100%; height: 100%; }
.rdm-item-card__icon img { width: 100%; height: 100%; object-fit: contain; }

.rdm-item-card__name {
  font-size: 12px;
  font-weight: 600;
  color: var(--rdm-text);
  line-height: 1.3;
}
.rdm-item-card__cf {
  font-size: 10px;
  color: var(--rdm-text-faint);
}

.rdm-qty-control {
  display: flex;
  align-items: center;
  gap: 8px;
}
.rdm-qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--rdm-border);
  background: var(--rdm-surface);
  font-size: 18px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .1s, border-color .1s;
  padding: 0;
  color: var(--rdm-text-muted);
}
.rdm-qty-btn:hover { background: #f0f0f3; }
.rdm-qty-btn--add {
  border-color: var(--rdm-primary);
  background: var(--rdm-primary);
  color: #fff;
}
.rdm-qty-btn--add:hover { background: var(--rdm-primary-dark); border-color: var(--rdm-primary-dark); }
.rdm-qty-num {
  font-size: 14px;
  font-weight: 700;
  min-width: 22px;
  text-align: center;
  color: var(--rdm-text);
}

.rdm-item-card--custom {
  border-style: dashed;
  cursor: pointer;
  color: var(--rdm-text-faint);
  background: #fafafa;
}
.rdm-item-card--custom:hover {
  border-color: var(--rdm-primary);
  color: var(--rdm-primary);
  background: var(--rdm-primary-pale);
}

/* ── Sticky inventory bar ─────────────────────────────────────── */
.rdm-inventory-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 -1px 0 rgba(0,0,0,.06), 0 -8px 30px rgba(0,0,0,.08);
  z-index: 100;
  padding: 12px 20px;
}
.rdm-inventory-bar__inner {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.rdm-inventory-bar__info {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  color: var(--rdm-text-muted);
}
.rdm-inventory-bar__count strong,
.rdm-inventory-bar__cf strong {
  font-size: 20px;
  font-weight: 700;
  color: var(--rdm-text);
  display: block;
  line-height: 1.1;
}
.rdm-inventory-bar__size {
  display: inline-block;
  background: var(--rdm-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: .02em;
}
.rdm-inventory-bar__size:empty { display: none; }
.rdm-inventory-bar__actions { display: flex; gap: 10px; flex-shrink: 0; }

/* ── Step 3: Thank you — full redesign ────────────────────── */
#rdm-step-3:not(.rdm-step--hidden) {
  position: fixed;
  inset: 0;
  z-index: 99990;
  display: flex;
  overflow: hidden;
}
.rdm-ty {
  width: 100%; min-height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 50%, #e0e7ff 100%);
  position: relative; padding: 40px 20px; overflow: hidden;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.rdm-ty__particles { position: absolute; inset: 0; pointer-events: none; }
.rdm-ty__p {
  position: absolute; border-radius: 50%;
  animation: rdm-ty-float linear infinite; opacity: 0;
}
.rdm-ty__p--1  { width:12px;height:12px;background:#3b82f6;left:10%;animation-duration:6s;  animation-delay:0s;   bottom:-20px; }
.rdm-ty__p--2  { width:8px; height:8px; background:#60a5fa;left:20%;animation-duration:8s;  animation-delay:.5s;  bottom:-20px; }
.rdm-ty__p--3  { width:16px;height:16px;background:#2563eb;left:30%;animation-duration:7s;  animation-delay:1s;   bottom:-20px; }
.rdm-ty__p--4  { width:6px; height:6px; background:#93c5fd;left:40%;animation-duration:9s;  animation-delay:.3s;  bottom:-20px; }
.rdm-ty__p--5  { width:10px;height:10px;background:#6366f1;left:55%;animation-duration:6.5s;animation-delay:.8s;  bottom:-20px; }
.rdm-ty__p--6  { width:14px;height:14px;background:#3b82f6;left:65%;animation-duration:8.5s;animation-delay:.2s;  bottom:-20px; }
.rdm-ty__p--7  { width:8px; height:8px; background:#bfdbfe;left:75%;animation-duration:7.5s;animation-delay:1.2s; bottom:-20px; }
.rdm-ty__p--8  { width:12px;height:12px;background:#2563eb;left:85%;animation-duration:6.8s;animation-delay:.6s;  bottom:-20px; }
.rdm-ty__p--9  { width:6px; height:6px; background:#60a5fa;left:90%;animation-duration:9.2s;animation-delay:1.5s; bottom:-20px; }
.rdm-ty__p--10 { width:10px;height:10px;background:#a5b4fc;left:5%; animation-duration:7.8s;animation-delay:2s;   bottom:-20px; }
.rdm-ty__p--11 { width:14px;height:14px;background:#3b82f6;left:50%;animation-duration:6.2s;animation-delay:.9s;  bottom:-20px; }
.rdm-ty__p--12 { width:8px; height:8px; background:#818cf8;left:15%;animation-duration:8.8s;animation-delay:1.8s; bottom:-20px; }
@keyframes rdm-ty-float {
  0%   { transform: translateY(0) rotate(0deg);     opacity: 0; }
  10%  { opacity: .7; }
  90%  { opacity: .4; }
  100% { transform: translateY(-110vh) rotate(720deg); opacity: 0; }
}
.rdm-ty__card {
  background: #fff; border-radius: 28px; padding: 56px 48px 48px;
  max-width: 520px; width: 100%; text-align: center;
  box-shadow: 0 20px 60px rgba(37,99,235,.15), 0 0 0 1px rgba(37,99,235,.08);
  position: relative;
  animation: rdm-ty-card-in .6s cubic-bezier(.34,1.2,.64,1) both;
}
@keyframes rdm-ty-card-in {
  from { opacity: 0; transform: translateY(40px) scale(.95); }
  to   { opacity: 1; transform: none; }
}
.rdm-ty__check { width: 90px; height: 90px; margin: 0 auto 28px; }
.rdm-ty__check-svg { width: 100%; height: 100%; }
.rdm-ty__check-circle {
  stroke: #2563eb; stroke-width: 2.5;
  stroke-dasharray: 166; stroke-dashoffset: 166;
  animation: rdm-ty-circle .8s ease forwards .2s;
}
@keyframes rdm-ty-circle { to { stroke-dashoffset: 0; } }
.rdm-ty__check-mark {
  stroke: #2563eb; stroke-width: 3;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 48; stroke-dashoffset: 48;
  animation: rdm-ty-check .4s ease forwards 1s;
}
@keyframes rdm-ty-check { to { stroke-dashoffset: 0; } }
.rdm-ty__title {
  font-size: 30px; font-weight: 800; color: #1e3a5f;
  letter-spacing: -.5px; margin-bottom: 12px;
  animation: rdm-ty-fade-up .5s ease both .4s;
}
.rdm-ty__message {
  font-size: 16px; color: #64748b; line-height: 1.6; margin-bottom: 32px;
  animation: rdm-ty-fade-up .5s ease both .55s;
}
@keyframes rdm-ty-fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.rdm-ty__summary {
  text-align: left; background: #f8faff; border: 1.5px solid #dbeafe;
  border-radius: 16px; padding: 20px 24px; margin-bottom: 28px;
  animation: rdm-ty-fade-up .5s ease both .7s;
}
.rdm-ty__summary h3 {
  font-size: 11px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .1em; color: #94a3b8; margin-bottom: 14px;
}
.rdm-summary-row {
  display: flex; justify-content: space-between;
  align-items: flex-start; gap: 12px;
  padding: 8px 0; border-bottom: 1px solid #e2eafc; font-size: 14px;
}
.rdm-summary-row:last-child { border-bottom: none; }
.rdm-summary-row span  { color: #64748b; }
.rdm-summary-row strong { color: #1e3a5f; text-align: right; }
.rdm-ty__home-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; background: #2563eb; color: #fff;
  border-radius: 12px; font-size: 15px; font-weight: 700;
  text-decoration: none; box-shadow: 0 4px 16px rgba(37,99,235,.35);
  transition: background .15s, transform .12s, box-shadow .15s;
  animation: rdm-ty-fade-up .5s ease both .85s;
}
.rdm-ty__home-btn:hover { background: #1d4ed8; transform: translateY(-2px); box-shadow: 0 6px 24px rgba(37,99,235,.45); color: #fff; }
.rdm-ty__home-btn i { font-size: 18px; }

/* ── Appointment confirmation card (thank-you step) ───────── */
.rdm-ty__appt-card {
  background: #fff;
  border: 2px solid #2563eb;
  border-radius: 16px;
  padding: 24px 20px 20px;
  margin-bottom: 20px;
  animation: rdm-ty-fade-up .5s ease both .7s;
  text-align: center;
}
.rdm-ty__appt-badge {
  display: inline-block;
  background: #2563eb;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 4px 16px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.rdm-ty__appt-dt {
  margin-bottom: 16px;
}
.rdm-ty__appt-date {
  font-size: 20px;
  font-weight: 700;
  color: #1e3a5f;
  line-height: 1.2;
}
.rdm-ty__appt-time {
  font-size: 26px;
  font-weight: 800;
  color: #2563eb;
  margin-top: 4px;
}
.rdm-ty__appt-route {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: #64748b;
  border-top: 1px solid #e2eafc;
  padding-top: 14px;
  text-align: left;
}
.rdm-ty__appt-addr { flex: 1; min-width: 0; }
.rdm-ty__appt-addr--from { color: #15803d; }
.rdm-ty__appt-addr--to   { color: #1d4ed8; }
.rdm-ty__appt-arrow { color: #94a3b8; flex-shrink: 0; padding-top: 1px; }

/* ── "Add to Google Calendar" pill button ─────────────────── */
.rdm-ty__cal-wrap {
  text-align: center;
  margin: 16px 0 4px;
}
.rdm-ty__summary-rows {
  margin-bottom: 16px;
}
.rdm-ty__summary-title {
  font-size: 15px; font-weight: 700; color: #1e3a5f;
  margin: 0 0 12px; padding: 0;
}
.rdm-ty__cal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 24px;
  background: #2563eb;
  border-radius: 22px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  animation: rdm-ty-fade-up .5s ease both .8s;
  transition: background .15s;
}
.rdm-ty__cal-btn:hover { background: #1d4ed8; }
.rdm-ty__cal-label {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .04em;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.rdm-ty__cal-icon { flex-shrink: 0; }
.rdm-ty__cal-btn:hover .rdm-ty__cal-icon {
  animation: rdm-cal-wobble 1s linear infinite;
}
@keyframes rdm-cal-wobble {
  0%, 100% { transform: none; }
  50%       { transform: rotate(12deg); }
}

@media (max-width: 480px) {
  .rdm-ty__card { padding: 40px 24px 36px; border-radius: 20px; }
  .rdm-ty__title { font-size: 24px; }
  .rdm-ty__appt-date { font-size: 17px; }
  .rdm-ty__appt-time { font-size: 22px; }
  .rdm-ty__appt-route { flex-direction: column; align-items: center; text-align: center; }
}

/* ── Submission truck loader overlay ──────────────────────── */
.rdm-submit-loader {
  position: fixed; inset: 0; z-index: 99995;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; flex-direction: column;
}
.rdm-submit-loader[hidden] { display: none !important; }
.rdm-submit-loader__box {
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  animation: rdm-ty-card-in .4s ease both;
}
.rdm-submit-loader__text {
  font-family: 'Inter', sans-serif; font-size: 20px; font-weight: 700;
  color: #1e3a5f; letter-spacing: -.3px;
}
.rdm-submit-loader__sub {
  font-family: 'Inter', sans-serif; font-size: 14px; color: #64748b; margin-top: -10px;
}
/* Truck (UIverse vinodjangid07/popular-owl-27) */
.rdm-truck-loader { display: flex; align-items: center; justify-content: center; }
.rdm-truck-wrapper {
  width: 200px; height: 100px; display: flex; flex-direction: column;
  position: relative; align-items: center; justify-content: flex-end; overflow-x: hidden;
}
.rdm-truck-body { width: 130px; height: fit-content; margin-bottom: 6px; animation: rdm-truck-motion 1s linear infinite; }
.rdm-truck-svg  { width: 100%; }
@keyframes rdm-truck-motion {
  0%   { transform: translateY(0px); }
  50%  { transform: translateY(3px); }
  100% { transform: translateY(0px); }
}
.rdm-truck-tires {
  width: 130px; height: fit-content; display: flex;
  align-items: center; justify-content: space-between;
  padding: 0 10px 0 15px; position: absolute; bottom: 0;
}
.rdm-tire-svg { width: 24px; }
.rdm-truck-road {
  width: 100%; height: 1.5px; background-color: #282828;
  position: relative; bottom: 0; align-self: flex-end; border-radius: 3px;
}
.rdm-truck-road::before {
  content: ""; position: absolute; width: 20px; height: 100%;
  background-color: #282828; right: -50%; border-radius: 3px;
  animation: rdm-road-anim 1.4s linear infinite; border-left: 10px solid white;
}
.rdm-truck-road::after {
  content: ""; position: absolute; width: 10px; height: 100%;
  background-color: #282828; right: -65%; border-radius: 3px;
  animation: rdm-road-anim 1.4s linear infinite; border-left: 4px solid white;
}
.rdm-truck-lamp {
  position: absolute; bottom: 0; right: -90%; height: 90px;
  animation: rdm-road-anim 1.4s linear infinite;
}
@keyframes rdm-road-anim {
  0%   { transform: translateX(0px); }
  100% { transform: translateX(-350px); }
}

/* Admin bar offsets for all full-screen steps */
.admin-bar #rdm-step-service:not(.rdm-step--hidden),
.admin-bar #rdm-step-appt:not(.rdm-step--hidden),
.admin-bar #rdm-step-2:not(.rdm-step--hidden),
.admin-bar #rdm-step-3:not(.rdm-step--hidden) { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar #rdm-step-service:not(.rdm-step--hidden),
  .admin-bar #rdm-step-appt:not(.rdm-step--hidden),
  .admin-bar #rdm-step-2:not(.rdm-step--hidden),
  .admin-bar #rdm-step-3:not(.rdm-step--hidden) { top: 46px; }
}

/* ── Custom item modal ────────────────────────────────────────── */
.rdm-modal {
  position: fixed;
  inset: 0;
  z-index: 99993;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.rdm-modal[hidden] { display: none !important; }
.rdm-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: pointer;
}
.rdm-modal__box {
  position: relative;
  background: #ffffff;
  border-radius: 20px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 24px 60px rgba(0,0,0,.22), 0 0 0 1px rgba(0,0,0,.06);
  animation: rdm-modal-in .22s cubic-bezier(.34,1.56,.64,1);
  overflow: hidden;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1d1d1f;
}
@keyframes rdm-modal-in {
  from { opacity: 0; transform: scale(.92) translateY(10px); }
  to   { opacity: 1; transform: none; }
}
.rdm-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px 0;
}
.rdm-modal__title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.2px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1d1d1f;
}
.rdm-modal__close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #f0f0f3;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6e6e73;
  transition: background .12s;
  flex-shrink: 0;
}
.rdm-modal__close:hover { background: #e0e0e5; color: #1d1d1f; }
.rdm-modal__body {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.rdm-modal__footer {
  padding: 0 24px 22px;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
/* All modal fields stack full-width so they share the same visual width */
.rdm-modal__body .rdm-form__row--2 {
  grid-template-columns: 1fr;
}
.rdm-modal__body .rdm-form__group { width: 100%; }

/* ── Flatpickr theme override ─────────────────────────────────── */
.flatpickr-calendar {
  border-radius: 16px !important;
  box-shadow: 0 16px 48px rgba(0,0,0,.16), 0 0 0 1px rgba(0,0,0,.06) !important;
  border: none !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  overflow: hidden;
}
.flatpickr-calendar.open { animation: rdm-pop .18s ease; }
.flatpickr-months { background: var(--rdm-primary) !important; border-radius: 16px 16px 0 0 !important; padding: 4px 0; }
.flatpickr-month { color: #fff !important; }
.flatpickr-current-month { font-size: 14px !important; font-weight: 700 !important; }
.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year { color: #fff !important; font-weight: 700 !important; }
.flatpickr-prev-month svg, .flatpickr-next-month svg { fill: #fff !important; }
.flatpickr-prev-month:hover svg, .flatpickr-next-month:hover svg { fill: rgba(255,255,255,.7) !important; }
.flatpickr-weekday { color: var(--rdm-text-muted) !important; font-weight: 600 !important; font-size: 11px !important; text-transform: uppercase !important; }
.flatpickr-day { border-radius: 8px !important; font-size: 13px !important; font-weight: 500 !important; }
.flatpickr-day.selected, .flatpickr-day.selected:hover {
  background: var(--rdm-primary) !important;
  border-color: var(--rdm-primary) !important;
  box-shadow: 0 2px 8px rgba(22,163,74,.35) !important;
}
.flatpickr-day:hover { background: var(--rdm-primary-pale) !important; border-color: transparent !important; }
.flatpickr-day.today { border-color: var(--rdm-primary) !important; color: var(--rdm-primary) !important; font-weight: 700 !important; }
.flatpickr-day.today.selected { color: #fff !important; }
.flatpickr-day.flatpickr-disabled { color: var(--rdm-text-faint) !important; }

/* Make the alt input look like a regular rdm-input */
.flatpickr-input.flatpickr-input.flatpickr-mobile,
.flatpickr-input[readonly] {
  cursor: pointer;
}

/* ── Google Places autocomplete ───────────────────────────────── */
.pac-container {
  z-index: 99999;
  border-radius: 12px !important;
  box-shadow: 0 8px 30px rgba(0,0,0,.12), 0 0 0 1px rgba(0,0,0,.06) !important;
  border: none !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  margin-top: 4px;
  overflow: hidden;
}
.pac-item {
  padding: 8px 14px !important;
  font-size: 14px !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  cursor: pointer;
  transition: background .1s;
}
.pac-item:hover { background: var(--rdm-primary-pale) !important; }
.pac-icon { display: none !important; }
.pac-item-query {
  font-weight: 600 !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  color: var(--rdm-text) !important;
}
.pac-matched { font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important; }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 680px) {
  .rdm-wrap { padding: 20px 12px 110px; }
  .rdm-section-card { padding: 18px; }
  .rdm-fieldset { padding: 18px; }
}
@media (max-width: 520px) {
  .rdm-form__row--2 { grid-template-columns: 1fr; }
  .rdm-form__row--3 { grid-template-columns: 1fr 1fr; }
  .rdm-form__row--3 > :last-child { grid-column: 1 / -1; }
  .rdm-inventory-heading__title { font-size: 16px; }
  .rdm-items-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .rdm-item-card { padding: 12px 6px; }
  .rdm-item-card__icon { width: 36px; height: 36px; }
  .rdm-item-card__name { font-size: 11px; }
}
@media (max-width: 420px) {
  .rdm-items-grid { grid-template-columns: repeat(2, 1fr); }
  .rdm-inventory-bar__cf { display: none; }
  .rdm-form__row--3 { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════
   STEP 2 — Full-screen 3-column layout
   ══════════════════════════════════════════════════════════════ */

#rdm-step-2:not(.rdm-step--hidden) {
  position: fixed;
  inset: 0;
  z-index: 99990;
  display: flex;
  flex-direction: column;
  background: transparent;
  overflow: hidden;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  color: var(--sv-ink, #13140F);
  -webkit-font-smoothing: antialiased;
}

/* ── CSS variables for step 2 ─────────────────────────────── */
#rdm-step-2 {
  --s2-blue-50:  #eff6ff;
  --s2-blue-100: #dbeafe;
  --s2-blue-200: #bfdbfe;
  --s2-blue-300: #93c5fd;
  --s2-blue-400: #60a5fa;
  --s2-blue-500: #3b82f6;
  --s2-blue-600: #2563eb;
  --s2-blue-700: #1d4ed8;
  --s2-text:     #1e3a5f;
  --s2-muted:    #64748b;
  --s2-faint:    #94a3b8;
  --s2-border:   #c7d9f8;
  --s2-border-lt:#dbeafe;
  --s2-radius:   14px;
  --s2-shadow-sm: 0 1px 3px rgba(37,99,235,.08), 0 4px 12px rgba(37,99,235,.06);
  --s2-shadow:    0 2px 8px rgba(37,99,235,.1), 0 8px 24px rgba(37,99,235,.08);
}

/* ── Topbar ───────────────────────────────────────────────── */
.rdm-s2-topbar {
  height: 58px;
  background: #fff;
  border-bottom: 1.5px solid var(--s2-border-lt);
  display: flex;
  align-items: center;
  padding: 0 32px;
  gap: 20px;
  flex-shrink: 0;
  z-index: 100;
  box-shadow: 0 1px 0 var(--s2-border-lt);
}

.rdm-s2-logo {
  font-weight: 800;
  font-size: 20px;
  color: var(--s2-blue-600);
  letter-spacing: -.5px;
}

.rdm-s2-steps {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.rdm-s2-tstep {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--s2-muted);
}
.rdm-s2-tstep--done   { color: var(--s2-blue-600); }
.rdm-s2-tstep--active { background: var(--s2-blue-50); color: var(--s2-blue-700); font-weight: 700; }

.rdm-s2-tstep-num {
  width: 24px; height: 24px;
  border-radius: 50%;
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  background: var(--s2-border-lt); color: var(--s2-muted);
  flex-shrink: 0;
}
.rdm-s2-tstep--done .rdm-s2-tstep-num   { background: var(--s2-blue-500); color: #fff; }
.rdm-s2-tstep--active .rdm-s2-tstep-num { background: var(--s2-blue-600); color: #fff; }
.rdm-s2-tstep-sep { color: var(--s2-border); font-size: 18px; }

/* ── Three-column body ────────────────────────────────────── */
.rdm-s2-body {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* ── LEFT SIDEBAR ─────────────────────────────────────────── */
.rdm-s2-sidebar {
  width: 380px;
  flex-shrink: 0;
  background: #f8f9fa;
  border-right: 1.5px solid #e5e7eb;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.rdm-s2-sidebar::-webkit-scrollbar { width: 4px; }
.rdm-s2-sidebar::-webkit-scrollbar-thumb { background: var(--s2-blue-200); border-radius: 4px; }

.rdm-s2-sidebar-inner {
  padding: 28px 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.rdm-s2-sec-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--s2-blue-400);
  margin-bottom: 16px;
}

/* Route nodes */
.rdm-s2-route-node { display: flex; flex-direction: column; }

.rdm-s2-rn-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.rdm-s2-rn-icon {
  width: 38px; height: 38px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.rdm-s2-rn-icon--from { background: #dbeafe; color: var(--s2-blue-600); }
.rdm-s2-rn-icon--to   { background: #e0e7ff; color: #4f46e5; }
.rdm-s2-rn-icon i { font-size: 20px; }

.rdm-s2-rn-label {
  font-size: 16px;
  font-weight: 700;
  color: var(--s2-text);
  line-height: 1.2;
}
.rdm-s2-rn-label small {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--s2-muted);
  margin-top: 1px;
}

.rdm-s2-rn-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Fields */
.rdm-s2-field {
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  border: 1.5px solid var(--s2-border);
  border-radius: 10px;
  padding: 13px 16px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 16px;
  color: var(--s2-text);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
  appearance: none;
}
.rdm-s2-field:focus {
  border-color: var(--s2-blue-400);
  box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}
.rdm-s2-field::placeholder { color: var(--s2-faint); font-size: 15px; }

.rdm-s2-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2394a3b8'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 36px;
  cursor: pointer;
}

.rdm-s2-textarea {
  min-height: 90px;
  resize: none;
  line-height: 1.55;
}

.rdm-s2-field-wrap label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--s2-muted);
  margin-bottom: 5px;
  letter-spacing: .02em;
}

/* Chips */
.rdm-s2-chips { display: flex; flex-direction: column; gap: 10px; }

.rdm-s2-chip {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1.5px solid var(--s2-border-lt);
  border-radius: 12px;
  padding: 13px 16px;
  box-shadow: var(--s2-shadow-sm);
  transition: transform .15s;
}
.rdm-s2-chip:hover { transform: translateX(3px); }

.rdm-s2-chip-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--s2-blue-50);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--s2-blue-600);
  transition: transform .2s, background .2s;
}
.rdm-s2-chip:hover .rdm-s2-chip-icon { background: var(--s2-blue-100); transform: scale(1.08); }
.rdm-s2-chip-icon i { font-size: 20px; }

.rdm-s2-chip-name {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--s2-faint);
}
.rdm-s2-chip-val {
  font-size: 16px;
  font-weight: 700;
  color: var(--s2-text);
  margin-top: 2px;
}

/* CTA */
.rdm-s2-cta {
  padding: 20px 26px 24px;
  border-top: 1.5px solid var(--s2-border);
  background: rgba(255,255,255,.6);
  backdrop-filter: blur(10px);
  flex-shrink: 0;
}

.rdm-s2-cta-meta {
  margin-bottom: 14px;
}
.rdm-s2-cta-count { font-size: 16px; color: var(--s2-muted); }
.rdm-s2-cta-count strong {
  color: var(--s2-blue-700);
  font-size: 26px;
  font-weight: 800;
  margin-right: 4px;
}

.rdm-s2-btn-submit {
  width: 100%;
  padding: 15px;
  border-radius: 12px;
  border: none;
  background: var(--rdm-primary, #D9542B);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 18px rgba(0,0,0,.25);
  transition: background .15s, transform .12s, box-shadow .15s;
}
.rdm-s2-btn-submit:hover  { background: var(--rdm-primary-dark, #7A2A12); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,0,0,.3); }
.rdm-s2-btn-submit:active { transform: translateY(0); }
.rdm-s2-btn-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.rdm-s2-btn-submit i { font-size: 20px; transition: transform .2s; }
.rdm-s2-btn-submit:hover i { transform: translateX(4px); }

.rdm-s2-btn-back {
  width: 100% !important;
  margin-top: 10px;
  padding: 11px !important;
  border-radius: 10px !important;
  border: none !important;
  background: transparent !important;
  color: var(--s2-muted, #64748b) !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  font-family: inherit !important;
  transition: all .15s;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px;
  text-decoration: none !important;
}
.rdm-s2-btn-back:hover { background: #fff !important; color: var(--s2-text, #1e293b) !important; border-color: var(--s2-blue-300, #93c5fd) !important; }
.rdm-s2-btn-back i { font-size: 18px; }

/* ── CENTER CATEGORY RAIL ─────────────────────────────────── */
.rdm-s2-cat-rail {
  width: 210px;
  flex-shrink: 0;
  background: #fff;
  border-right: 1.5px solid var(--s2-border-lt);
  overflow-y: auto;
  padding: 24px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rdm-s2-cat-rail::-webkit-scrollbar { width: 3px; }
.rdm-s2-cat-rail::-webkit-scrollbar-thumb { background: var(--s2-border); border-radius: 3px; }

.rdm-s2-cat-rail-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--s2-faint);
  padding: 0 10px;
  margin-bottom: 12px;
}

.rdm-s2-cat-btn {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border-radius: 11px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--s2-muted);
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: all .14s;
  position: relative;
}
.rdm-s2-cat-btn:hover { background: var(--s2-blue-50); color: var(--s2-text); }
.rdm-s2-cat-btn.active {
  background: var(--s2-blue-50);
  color: var(--s2-blue-700);
  font-weight: 700;
}
.rdm-s2-cat-btn.active::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 22px;
  background: var(--s2-blue-600);
  border-radius: 0 3px 3px 0;
}
.rdm-s2-cat-btn i {
  font-size: 22px;
  flex-shrink: 0;
  transition: transform .2s, color .15s;
  color: var(--s2-faint);
}
.rdm-s2-cat-btn:hover i  { transform: scale(1.15); color: var(--s2-blue-500); }
.rdm-s2-cat-btn.active i { color: var(--s2-blue-600); transform: scale(1.1); }

.rdm-s2-cat-badge {
  margin-left: auto;
  background: var(--s2-blue-600);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  min-width: 20px; height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  display: none;
  align-items: center;
  justify-content: center;
}
.rdm-s2-cat-btn.has-items .rdm-s2-cat-badge { display: flex; }

.rdm-s2-cat-divider { height: 1px; background: var(--s2-border-lt); margin: 8px 0; }

/* ── RIGHT ITEMS PANEL ────────────────────────────────────── */
.rdm-s2-items-panel {
  flex: 1;
  overflow-y: auto;
  padding: 28px 32px 50px;
  background: #f2f3f5;
}
.rdm-s2-items-panel::-webkit-scrollbar { width: 5px; }
.rdm-s2-items-panel::-webkit-scrollbar-thumb { background: var(--s2-border); border-radius: 5px; }

.rdm-s2-panel-header { margin-bottom: 26px; }
.rdm-s2-panel-header h1 {
  font-size: 24px;
  font-weight: 800;
  color: var(--s2-text);
  letter-spacing: -.5px;
}
.rdm-s2-panel-header p {
  font-size: 16px;
  color: var(--s2-muted);
  margin-top: 4px;
}

/* ── Popular Items strip ────────────────────────────────────────────────── */
.rdm-pop-strip { margin-bottom: 20px; }

.rdm-pop-strip__header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--s2-blue-500, #3b82f6);
  margin-bottom: 10px;
}
.rdm-pop-strip__header i { font-size: 14px; }

.rdm-pop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 8px;
}

.rdm-pop-chip {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px 8px 8px;
  border-radius: 14px;
  background: var(--s2-bg, #f8fafc);
  border: 2px solid #e2e8f0;
  transition: border-color .15s, background .15s, transform .15s;
}
.rdm-pop-chip--selected {
  border-color: var(--s2-blue-400, #60a5fa);
  background: var(--s2-blue-50, #eff6ff);
}
.rdm-pop-just-selected { animation: rdm-s2-icon-bounce .35s ease; }

.rdm-pop-badge {
  position: absolute;
  top: -7px; right: -7px;
  min-width: 20px; height: 20px;
  padding: 0 4px;
  border-radius: 10px;
  background: var(--s2-blue-500, #3b82f6);
  color: #fff;
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}
.rdm-pop-badge:empty { display: none; }

.rdm-pop-icon-box {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--s2-blue-50, #eff6ff);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .15s;
  overflow: hidden;
}
.rdm-pop-chip--selected .rdm-pop-icon-box { background: var(--s2-blue-100, #dbeafe); }
.rdm-pop-icon-box i { font-size: 24px; color: var(--s2-blue-500, #3b82f6); }
.rdm-pop-img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; display: block; }

.rdm-pop-name {
  font-size: 11px;
  font-weight: 500;
  color: var(--s2-text, #1e293b);
  text-align: center;
  line-height: 1.3;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rdm-pop-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}
.rdm-pop-btn {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1.5px solid #cbd5e1;
  background: #fff;
  color: var(--s2-blue-600, #2563eb);
  font-size: 15px; line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .1s, border-color .1s;
}
.rdm-pop-btn:hover { background: var(--s2-blue-50, #eff6ff); border-color: var(--s2-blue-400, #60a5fa); }
.rdm-pop-qty {
  min-width: 16px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--s2-blue-700, #1d4ed8);
}

.rdm-pop-divider {
  height: 1px;
  background: #e2e8f0;
  margin-top: 16px;
}

/* Items grid */
.rdm-s2-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 14px;
}

/* Item cards */
.rdm-s2-item-card {
  background: #fff;
  border: 2px solid var(--s2-border-lt);
  border-radius: var(--s2-radius);
  padding: 22px 14px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: all .18s ease;
  position: relative;
  cursor: default;
}
.rdm-s2-item-card:hover {
  border-color: var(--s2-blue-300);
  box-shadow: var(--s2-shadow);
  transform: translateY(-3px);
}
.rdm-s2-item-card.selected {
  border-color: var(--s2-blue-500);
  background: var(--s2-blue-50);
  box-shadow: 0 0 0 3px rgba(59,130,246,.15), var(--s2-shadow);
}

.rdm-s2-item-check {
  position: absolute;
  top: 10px; right: 10px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--s2-blue-600);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(37,99,235,.4);
  animation: rdm-s2-pop .22s cubic-bezier(.34,1.56,.64,1);
}
.rdm-s2-item-card.selected .rdm-s2-item-check { display: flex; }

@keyframes rdm-s2-pop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.rdm-s2-item-icon-box {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: var(--s2-blue-50);
  display: flex; align-items: center; justify-content: center;
  transition: background .18s, transform .2s ease;
  flex-shrink: 0;
  overflow: hidden;
}
.rdm-s2-item-card:hover .rdm-s2-item-icon-box { transform: scale(1.08) rotate(-2deg); background: var(--s2-blue-100); }
.rdm-s2-item-card.selected .rdm-s2-item-icon-box { background: #dbeafe; transform: scale(1.06); }

.rdm-s2-item-icon-box i {
  font-size: 32px;
  color: var(--s2-blue-500);
  transition: color .15s, transform .2s ease;
}
.rdm-s2-item-card:hover .rdm-s2-item-icon-box i { color: var(--s2-blue-600); }
.rdm-s2-item-card.selected .rdm-s2-item-icon-box i { color: var(--s2-blue-700); }

.rdm-s2-item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  transition: transform .2s ease;
}
.rdm-s2-item-card:hover .rdm-s2-item-img { transform: scale(1.08) rotate(-2deg); }
.rdm-s2-item-card.just-selected .rdm-s2-item-img { animation: rdm-s2-icon-bounce .35s ease; }

@keyframes rdm-s2-icon-bounce {
  0%   { transform: scale(1) rotate(0); }
  30%  { transform: scale(1.3) rotate(-5deg); }
  60%  { transform: scale(.95) rotate(3deg); }
  100% { transform: scale(1) rotate(0); }
}
.rdm-s2-item-card.just-selected .rdm-s2-item-icon-box i { animation: rdm-s2-icon-bounce .35s ease; }

.rdm-s2-item-name {
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  color: var(--s2-text);
  line-height: 1.3;
  min-height: 2.6em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rdm-s2-qty-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}

.rdm-s2-qty-btn {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--s2-border);
  background: #fff;
  font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--s2-muted);
  transition: all .14s;
  line-height: 1;
  font-family: inherit;
  flex-shrink: 0;
  font-weight: 400;
  padding: 0;
}
.rdm-s2-qty-btn:hover { border-color: var(--s2-blue-500); color: var(--s2-blue-600); background: var(--s2-blue-50); transform: scale(1.1); }
.rdm-s2-item-card.selected .rdm-s2-qty-btn { border-color: var(--s2-blue-300); color: var(--s2-blue-600); }

.rdm-s2-qty-val {
  font-size: 16px;
  font-weight: 800;
  min-width: 20px;
  text-align: center;
  color: var(--s2-text);
  transition: color .15s;
}
.rdm-s2-item-card.selected .rdm-s2-qty-val { color: var(--s2-blue-700); }

/* Custom item button */
.rdm-s2-custom-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 18px;
  border-radius: var(--s2-radius);
  border: 2px dashed var(--s2-border);
  background: transparent;
  color: var(--s2-muted);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  grid-column: 1 / -1;
}
.rdm-s2-custom-btn i { font-size: 22px; transition: transform .2s ease; }
.rdm-s2-custom-btn:hover {
  border-color: var(--s2-blue-400);
  color: var(--s2-blue-600);
  background: var(--s2-blue-50);
}
.rdm-s2-custom-btn:hover i { transform: rotate(90deg) scale(1.15); }

/* Error inside step 2 (shown outside the fixed layout at the bottom) */
#rdm-step-2 .rdm-form__error {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99994;
  max-width: 500px;
  width: calc(100% - 40px);
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}

/* ── Step 2 responsive ────────────────────────────────────── */
@media (max-width: 1200px) {
  .rdm-s2-sidebar   { width: 320px; }
  .rdm-s2-cat-rail  { width: 185px; }
  .rdm-s2-sidebar-inner { padding: 22px 18px; gap: 22px; }
}

@media (max-width: 1024px) {
  .rdm-s2-sidebar   { width: 270px; }
  .rdm-s2-cat-rail  { width: 165px; }
  .rdm-s2-sidebar-inner { padding: 18px 16px; gap: 18px; }
  .rdm-s2-items-panel  { padding: 20px 20px 40px; }
  .rdm-s2-items-grid   { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
  .rdm-s2-field        { font-size: 14px; padding: 9px 12px; }
  .rdm-s2-chip-val     { font-size: 14px; }
  .rdm-s2-btn-submit   { font-size: 15px; padding: 12px; }
}

@media (max-width: 900px) {
  .rdm-s2-body {
    display: grid;
    grid-template-columns: 240px 1fr;
    grid-template-rows: auto 1fr;
    grid-template-areas:
      "sidebar cats"
      "sidebar items";
    overflow: hidden;
  }
  .rdm-s2-sidebar {
    grid-area: sidebar;
    width: 100%;
    overflow-y: auto;
    border-right: 1.5px solid var(--s2-border);
  }
  .rdm-s2-sidebar-inner { padding: 18px 14px; gap: 18px; }
  .rdm-s2-cta { padding: 14px 14px 18px; }

  .rdm-s2-cat-rail {
    grid-area: cats;
    width: 100%;
    height: auto;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 14px;
    gap: 6px;
    border-right: none;
    border-bottom: 1.5px solid var(--s2-border-lt);
  }
  .rdm-s2-cat-rail::-webkit-scrollbar { display: none; }
  .rdm-s2-cat-rail-title { display: none; }
  .rdm-s2-cat-btn {
    white-space: nowrap;
    flex-shrink: 0;
    width: auto;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 14px;
  }
  .rdm-s2-cat-btn.active::before { display: none; }
  .rdm-s2-cat-divider { display: none; }

  .rdm-s2-items-panel {
    grid-area: items;
    overflow-y: auto;
    padding: 16px 18px 40px;
  }
  .rdm-s2-items-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
  .rdm-s2-panel-header h1 { font-size: 20px; }
}

@media (max-width: 700px) {
  #rdm-step-2:not(.rdm-step--hidden) { overflow-y: auto; overflow-x: hidden; }

  .rdm-s2-topbar { position: sticky; top: 0; z-index: 200; }
  .rdm-s2-steps .rdm-s2-tstep-sep,
  .rdm-s2-tstep:not(.rdm-s2-tstep--active) .rdm-s2-tstep-num ~ * { display: none; }
  .rdm-s2-tstep { padding: 5px 10px; font-size: 13px; }

  .rdm-s2-body {
    display: flex;
    flex-direction: column;
    overflow: visible;
    height: auto;
  }

  .rdm-s2-cat-rail {
    order: 1;
    width: 100%;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 14px;
    gap: 6px;
    border-right: none;
    border-bottom: 1.5px solid var(--s2-border-lt);
    position: sticky;
    top: 54px;
    z-index: 100;
    background: #fff;
    height: auto;
    grid-area: unset;
  }
  .rdm-s2-cat-rail::-webkit-scrollbar { display: none; }
  .rdm-s2-cat-rail-title { display: none; }
  .rdm-s2-cat-btn { white-space: nowrap; flex-shrink: 0; width: auto; padding: 8px 13px; border-radius: 999px; font-size: 14px; }
  .rdm-s2-cat-btn.active::before { display: none; }
  .rdm-s2-cat-divider { display: none; }

  .rdm-s2-items-panel {
    order: 2;
    overflow: visible;
    padding: 16px 14px 20px;
    grid-area: unset;
  }
  .rdm-s2-items-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
  .rdm-s2-panel-header h1 { font-size: 20px; }
  .rdm-s2-panel-header p  { font-size: 14px; }

  .rdm-s2-sidebar {
    order: 3;
    width: 100%;
    height: auto;
    overflow: visible;
    border-right: none;
    border-top: 1.5px solid var(--s2-border);
    grid-area: unset;
  }
  .rdm-s2-sidebar-inner { padding: 20px 16px; gap: 20px; }
  .rdm-s2-cta { position: static; padding: 16px 16px 24px; }
}

@media (max-width: 480px) {
  .rdm-s2-topbar { padding: 0 16px; }
  .rdm-s2-steps  { display: none; }
  .rdm-s2-logo   { font-size: 18px; }
  .rdm-s2-cat-btn { padding: 7px 11px; font-size: 13px; }
  .rdm-s2-items-panel { padding: 14px 10px 16px; }
  .rdm-s2-items-grid  { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .rdm-s2-item-icon-box { width: 48px; height: 48px; }
  .rdm-s2-item-icon-box i { font-size: 26px; }
  .rdm-s2-item-name { font-size: 12px; }
  .rdm-s2-item-card { padding: 16px 10px 12px; }
  .rdm-s2-btn-submit { font-size: 15px; padding: 13px; }
  .rdm-s2-field { font-size: 15px; }
  .rdm-s2-chip-val { font-size: 15px; }
  .rdm-s2-sec-label { font-size: 10px; }
}

/* ══════════════════════════════════════════════════════════════
   STEP 2 — Estimate Method Selection  (full-screen premium overlay)
   Design tokens from design_handoff_estimate_selection/README.md
   ══════════════════════════════════════════════════════════════ */

/* Design tokens — available to the form wrap and all portaled step overlays */
#rdm-form-wrap,
#rdm-step-service,
#rdm-step-appt,
#rdm-step-3,
#rdm-step-2 {
  --sv-bg:         #F4F1EC;
  --sv-paper:      #FBFAF7;
  --sv-line:       #E4E0D7;
  --sv-line-2:     #EDE9E0;
  --sv-ink:        #13140F;
  --sv-ink-2:      #3F4239;
  --sv-ink-3:      #737568;
  --sv-accent:     var(--rdm-primary, #D9542B);
  --sv-accent-ink: var(--rdm-primary-dark, #7A2A12);
  --sv-sage:       #3F5A3A;
  --sv-gold:       #B8893E;
}

#rdm-step-service:not(.rdm-step--hidden) {
  position: fixed;
  inset: 0;
  z-index: 99990;
  background: transparent;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--sv-ink);
}

/* ── Shared animated background — hidden by default, shown via :has() ── */
.rdm-sv-bg {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: var(--sv-bg);
}
/* Show when any full-screen step is active */
body:has(#rdm-step-service:not(.rdm-step--hidden)) .rdm-sv-bg,
body:has(#rdm-step-2:not(.rdm-step--hidden)) .rdm-sv-bg,
body:has(#rdm-step-appt:not(.rdm-step--hidden)) .rdm-sv-bg {
  display: block;
}
.rdm-sv-bg__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .55;
  will-change: transform;
}
.rdm-sv-bg__orb--1 {
  width: 55vw; height: 55vw;
  background: radial-gradient(circle, rgba(217,84,43,0.32), rgba(217,84,43,0) 70%);
  top: -15vw; left: -10vw;
  animation: rdmSvDrift1 28s ease-in-out infinite;
}
.rdm-sv-bg__orb--2 {
  width: 48vw; height: 48vw;
  background: radial-gradient(circle, rgba(63,90,58,0.30), rgba(63,90,58,0) 70%);
  bottom: -18vw; right: -12vw;
  animation: rdmSvDrift2 34s ease-in-out infinite;
}
.rdm-sv-bg__orb--3 {
  width: 38vw; height: 38vw;
  background: radial-gradient(circle, rgba(184,137,62,0.22), rgba(184,137,62,0) 70%);
  top: 30%; left: 45%;
  animation: rdmSvDrift3 40s ease-in-out infinite;
}
.rdm-sv-bg__grain {
  position: absolute; inset: -20%;
  background-image:
    linear-gradient(to right, rgba(19,20,15,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(19,20,15,0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  animation: rdmSvGrid 60s linear infinite;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,.55), rgba(0,0,0,0) 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,.55), rgba(0,0,0,0) 75%);
}
.rdm-sv-bg__specks {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(19,20,15,0.06) 1px, transparent 1.4px);
  background-size: 7px 7px;
  opacity: .35;
  mix-blend-mode: multiply;
  animation: rdmSvSpecks 24s linear infinite;
}
@keyframes rdmSvDrift1 {
  0%,100% { transform: translate3d(0,0,0) scale(1) }
  50%     { transform: translate3d(8vw,6vw,0) scale(1.08) }
}
@keyframes rdmSvDrift2 {
  0%,100% { transform: translate3d(0,0,0) scale(1) }
  50%     { transform: translate3d(-7vw,-5vw,0) scale(1.12) }
}
@keyframes rdmSvDrift3 {
  0%,100% { transform: translate3d(-50%,-50%,0) scale(1) }
  33%     { transform: translate3d(-58%,-44%,0) scale(1.1) }
  66%     { transform: translate3d(-42%,-56%,0) scale(.95) }
}
@keyframes rdmSvGrid {
  from { transform: translate3d(0,0,0) }
  to   { transform: translate3d(44px,44px,0) }
}
@keyframes rdmSvSpecks {
  from { background-position: 0 0 }
  to   { background-position: 140px 90px }
}

/* Clouds */
.rdm-sv-cloud {
  position: absolute;
  opacity: .18;
  color: var(--sv-ink);
  will-change: transform;
}
.rdm-sv-cloud--1 { top: 8%;  left: -15%; animation: rdmSvCloud 90s linear infinite; }
.rdm-sv-cloud--2 { top: 18%; left: -25%; animation: rdmSvCloud 130s linear infinite 20s; transform: scale(.7); }
.rdm-sv-cloud--3 { top: 4%;  left: -35%; animation: rdmSvCloud 160s linear infinite 50s; transform: scale(1.2); opacity: .12; }
@keyframes rdmSvCloud {
  from { transform: translateX(0) }
  to   { transform: translateX(140vw) }
}

/* Route dashed line */
.rdm-sv-route {
  position: absolute; top: 18%; left: 0; right: 0; height: 140px;
  pointer-events: none; opacity: .5;
}
.rdm-sv-route svg { width: 100%; height: 100%; display: block; }
.rdm-sv-route-dash {
  stroke: var(--sv-accent);
  stroke-width: 1.6;
  stroke-dasharray: 6 8;
  fill: none;
  animation: rdmSvDash 6s linear infinite;
  opacity: .45;
}
@keyframes rdmSvDash {
  from { stroke-dashoffset: 0 }
  to   { stroke-dashoffset: -140 }
}
.rdm-sv-route-pin {
  fill: var(--sv-accent);
  animation: rdmSvPin 2.4s ease-in-out infinite;
  transform-box: fill-box; transform-origin: center;
}
@keyframes rdmSvPin {
  0%,100% { transform: scale(1); opacity: .9 }
  50%     { transform: scale(1.3); opacity: .55 }
}

/* Floating boxes */
.rdm-sv-boxes { position: absolute; inset: 0; pointer-events: none; }
.rdm-sv-box {
  position: absolute;
  width: 46px; height: 42px;
  color: #B8893E;
  opacity: 0;
  will-change: transform, opacity;
}
.rdm-sv-box svg { display: block; width: 100%; height: 100%; }
.rdm-sv-box--1 { left: 8%;  bottom: -60px; animation: rdmSvBox 14s ease-in infinite 0s; }
.rdm-sv-box--2 { left: 78%; bottom: -60px; animation: rdmSvBox 18s ease-in infinite 4s; transform: scale(.8); }
.rdm-sv-box--3 { left: 30%; bottom: -60px; animation: rdmSvBox 22s ease-in infinite 9s; transform: scale(1.15); }
.rdm-sv-box--4 { left: 55%; bottom: -60px; animation: rdmSvBox 16s ease-in infinite 13s; transform: scale(.7); }
.rdm-sv-box--5 { left: 90%; bottom: -60px; animation: rdmSvBox 20s ease-in infinite 6s; transform: scale(.9); }
@keyframes rdmSvBox {
  0%   { opacity: 0;   transform: translateY(0) rotate(0) }
  8%   { opacity: .35 }
  50%  { opacity: .30; transform: translateY(-55vh) rotate(8deg) }
  92%  { opacity: .10 }
  100% { opacity: 0;   transform: translateY(-110vh) rotate(-6deg) }
}

/* Skyline silhouette */
.rdm-sv-skyline {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 140px; opacity: .07; color: var(--sv-ink); pointer-events: none;
}
.rdm-sv-skyline svg { display: block; width: 100%; height: 100%; }

/* Moving truck */
.rdm-sv-truck {
  position: absolute;
  bottom: 42px; left: -340px;
  width: 300px; height: 120px;
  color: var(--sv-accent);
  opacity: .55;
  will-change: transform;
  animation: rdmSvTruck 38s linear infinite;
}
.rdm-sv-truck svg { display: block; width: 100%; height: 100%; }
.rdm-sv-wheel {
  transform-box: fill-box; transform-origin: center;
  animation: rdmSvWheel 1.5s linear infinite;
}
@keyframes rdmSvTruck {
  0%  { transform: translateX(0) }
  48% { transform: translateX(50vw) }
  52% { transform: translateX(50vw) }
  100% { transform: translateX(calc(100vw + 340px)) }
}
@keyframes rdmSvWheel {
  from { transform: rotate(0) }
  to   { transform: rotate(360deg) }
}
.rdm-sv-puff {
  transform-box: fill-box; transform-origin: center;
  animation: rdmSvPuff 2s ease-out infinite; opacity: 0;
}
.rdm-sv-puff--2 { animation-delay: .6s }
.rdm-sv-puff--3 { animation-delay: 1.2s }
@keyframes rdmSvPuff {
  0%   { opacity: 0; transform: translate(0,0) scale(.4) }
  25%  { opacity: .45 }
  100% { opacity: 0; transform: translate(-22px,-26px) scale(1.6) }
}

/* Disable all motion for prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .rdm-sv-bg__orb, .rdm-sv-bg__grain, .rdm-sv-bg__specks,
  .rdm-sv-truck, .rdm-sv-box, .rdm-sv-route-dash, .rdm-sv-route-pin,
  .rdm-sv-skyline, .rdm-sv-cloud { animation: none !important; }
}

/* ── Content shell ── */
.rdm-sv-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 32px 64px;
}

/* ── Topbar ── */
.rdm-sv-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0 28px;
  flex-wrap: wrap;
  gap: 12px;
}
.rdm-sv-brand { display: flex; align-items: center; gap: 12px; }
.rdm-sv-brand-mark {
  width: 36px; height: 36px; border-radius: 9px;
  background: var(--sv-ink); color: #FBFAF7;
  display: grid; place-items: center;
  font-weight: 600; font-size: 18px; line-height: 1; letter-spacing: -0.02em;
  transform: translateY(-1px);
}
.rdm-sv-brand-name { font-weight: 600; font-size: 15px; letter-spacing: -0.01em; color: var(--sv-ink); }
.rdm-sv-help {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--sv-ink-2);
  background: transparent; border: 1px solid var(--sv-line);
  padding: 8px 14px; border-radius: 99px;
  text-decoration: none; cursor: pointer;
  transition: background .15s; white-space: nowrap; flex: 0 0 auto;
}
.rdm-sv-help:hover { background: #fff; }
.rdm-sv-help b { color: var(--sv-ink); }

/* Green status dot */
.rdm-sv-dot-green {
  display: inline-block;
  width: 6px; height: 6px; border-radius: 99px;
  background: #3F8C57;
  box-shadow: 0 0 0 3px rgba(63,140,87,.18);
  flex-shrink: 0;
}

/* Hide progress stepper on the inventory step (online estimate path) */
#rdm-step-2 .rdm-sv-step-header { display: none; }

/* ── Shared step header bar (steps 3 & 4) ── */
.rdm-sv-step-header {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 200;
  background: transparent;
  flex-shrink: 0;
}
/*
 * Match the stepper to the exact same position as on step 2:
 * Step 2 shell: max-width 1180px, margin auto, padding 32px sides.
 * Stepper left = (vw − 1180)/2 + 32 = (vw − 1116)/2
 * So max-width: 1116px + margin: auto gives the same left edge.
 */
.rdm-sv-step-header .rdm-sv-stepper {
  max-width: 1116px;
  margin: 32px auto 0;
}
@media (max-width: 720px) {
  .rdm-sv-step-header .rdm-sv-stepper {
    margin: 20px 16px 0;
    max-width: none;
  }
}

/* ── Stepper ── */
.rdm-sv-stepper {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 22px;
  background: var(--sv-paper);
  border: 1px solid var(--sv-line);
  border-radius: 16px;
  margin-bottom: 28px;
}
.rdm-sv-step { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.rdm-sv-step-num {
  width: 26px; height: 26px; border-radius: 99px;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 600;
  background: #fff; color: var(--sv-ink-3);
  border: 1px solid var(--sv-line);
}
.rdm-sv-step--done .rdm-sv-step-num  { background: var(--sv-ink); color: #FBFAF7; border-color: var(--sv-ink); }
.rdm-sv-step--active .rdm-sv-step-num { background: var(--sv-accent); color: #fff; border-color: var(--sv-accent); box-shadow: 0 0 0 4px rgba(217,84,43,.14); }
.rdm-sv-step-label { font-size: 13px; color: var(--sv-ink-3); }
.rdm-sv-step--done .rdm-sv-step-label,
.rdm-sv-step--active .rdm-sv-step-label { color: var(--sv-ink); }
.rdm-sv-step--active .rdm-sv-step-label { font-weight: 600; }
.rdm-sv-step-bar { flex: 1; height: 1px; background: var(--sv-line); min-width: 20px; }
.rdm-sv-step-bar--done { background: var(--sv-ink); }

/* ── Hero ── */
.rdm-sv-hero {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 22px; padding: 0 4px;
}
.rdm-sv-h1 {
  margin: 0;
  font-weight: 600; font-size: 44px;
  line-height: 1.1; letter-spacing: -0.035em;
  white-space: nowrap; color: var(--sv-ink);
}
.rdm-sv-h1 em { font-style: italic; color: var(--sv-accent); font-weight: 600; }
.rdm-sv-h1-sub {
  margin: 8px 0 0; color: var(--sv-ink-2); font-size: 15px;
  max-width: 520px; line-height: 1.5; white-space: nowrap;
}
.rdm-sv-hero-meta {
  flex: 0 0 auto; text-align: right; font-size: 12px;
  color: var(--sv-ink-3); line-height: 1.5; min-width: 220px;
}
.rdm-sv-hero-meta b { display: block; color: var(--sv-ink); font-size: 13px; font-weight: 600; margin-bottom: 2px; }

/* ── Card grid ── */
.rdm-sv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}

/* ── Estimate card ── */
.rdm-sv-card {
  position: relative;
  background: var(--sv-paper);
  border: 1px solid var(--sv-line);
  border-radius: 20px;
  padding: 24px 22px 22px;
  display: flex; flex-direction: column;
  cursor: pointer;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s, border-color .15s;
  outline: none;
}
.rdm-sv-card:hover {
  border-color: #D6CFC0;
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 18px 40px -22px rgba(19,20,15,.18);
  transform: translateY(-2px);
}
.rdm-sv-card:focus-visible {
  box-shadow: 0 0 0 3px rgba(217,84,43,.35);
}
.rdm-sv-card.rdm-sv-card--selected {
  border-color: var(--sv-ink);
  background: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 22px 50px -28px rgba(19,20,15,.30);
}
.rdm-sv-card:active { transform: translateY(0); }

/* Featured (on-site) card */
.rdm-sv-card--featured { background: #FFFDF9; border-color: #E6DDC8; }
.rdm-sv-card--featured.rdm-sv-card--selected { border-color: var(--sv-ink); }

/* Ribbon */
.rdm-sv-ribbon {
  position: absolute; top: 14px; right: 14px;
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--sv-accent); color: #fff;
  font-size: 11px; font-weight: 600; letter-spacing: 0.02em;
  padding: 5px 10px 5px 8px; border-radius: 99px;
  box-shadow: 0 6px 14px -6px rgba(217,84,43,.6);
}
.rdm-sv-ribbon::before { content: ""; width: 5px; height: 5px; border-radius: 99px; background: #fff; }

/* Icon tile */
.rdm-sv-card__icon {
  width: 46px; height: 46px; border-radius: 13px;
  background: var(--sv-bg);
  display: grid; place-items: center;
  margin-bottom: 18px; color: var(--sv-ink);
}
.rdm-sv-card--featured .rdm-sv-card__icon { background: #F2EBD9; color: var(--sv-accent-ink); }

/* Eyebrow */
.rdm-sv-eyebrow {
  font-size: 11px; color: var(--sv-ink-3);
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 6px; font-weight: 500;
}

/* Card title & desc */
.rdm-sv-card__title {
  margin: 0 0 6px;
  font-size: 22px; font-weight: 600; line-height: 1.2;
  letter-spacing: -0.025em; color: var(--sv-ink);
}
.rdm-sv-card__desc {
  margin: 0 0 16px;
  font-size: 14px; color: var(--sv-ink-2); line-height: 1.5;
}

/* Meta pill */
.rdm-sv-meta {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: var(--sv-bg);
  border-radius: 11px;
  margin-bottom: 14px;
  font-size: 12.5px; color: var(--sv-ink-2);
}
.rdm-sv-card--featured .rdm-sv-meta { background: #F5EFDF; }
.rdm-sv-meta b { color: var(--sv-ink); font-weight: 600; }

/* Feature list */
.rdm-sv-feats {
  list-style: none; padding: 0; margin: 0 0 20px;
  display: flex; flex-direction: column; gap: 9px;
  flex: 1;
}
.rdm-sv-feats li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13.5px; color: var(--sv-ink-2); line-height: 1.4;
}
.rdm-sv-feats li svg { flex: 0 0 auto; margin-top: 2px; color: var(--sv-sage); }
.rdm-sv-feats li b { color: var(--sv-ink); font-weight: 600; }

/* Card footer */
.rdm-sv-foot {
  margin-top: auto;
  display: flex; flex-direction: column; gap: 8px;
}

/* Price row */
.rdm-sv-price-row {
  display: flex; align-items: baseline; justify-content: space-between;
  padding-top: 14px; border-top: 1px dashed var(--sv-line-2);
  margin-bottom: 6px;
}
.rdm-sv-price {
  font-weight: 600; font-size: 22px;
  color: var(--sv-ink); line-height: 1; letter-spacing: -0.025em;
}
.rdm-sv-strike {
  font-size: 13px; color: var(--sv-ink-3);
  text-decoration: line-through; text-decoration-thickness: 1px;
  margin-left: 8px;
}
.rdm-sv-when {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; color: var(--sv-ink-3);
}

/* CTA buttons */
.rdm-sv-btn {
  appearance: none !important; border: 0; cursor: pointer !important;
  width: 100% !important;
  padding: 14px 18px !important; border-radius: 12px !important;
  font-family: inherit !important; font-weight: 600 !important; font-size: 14.5px !important;
  letter-spacing: -0.005em !important;
  display: inline-flex !important; align-items: center !important; justify-content: center !important; gap: 8px;
  transition: transform .12s, background .15s, box-shadow .15s;
  text-decoration: none !important;
}
.rdm-sv-btn--ghost {
  background: transparent !important; color: var(--sv-ink, #13140F) !important;
  border: 1px solid var(--sv-line, #E4E0D7) !important;
}
.rdm-sv-btn--ghost:hover { background: #fff !important; border-color: #D6CFC0 !important; }
.rdm-sv-btn--accent {
  background: var(--sv-accent, #16a34a) !important; color: #fff !important;
  box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--sv-accent) 60%, transparent);
}
.rdm-sv-btn--accent:hover { background: var(--sv-accent-ink, #15803d) !important; transform: translateY(-1px); }

/* Microcopy under button */
.rdm-sv-micro {
  text-align: center; font-size: 11.5px; color: var(--sv-ink-3);
  margin-top: 2px; letter-spacing: 0.01em;
}
.rdm-sv-micro b { color: var(--sv-ink-2); font-weight: 600; }

/* ── Trust strip ── */
.rdm-sv-trust {
  margin-top: 28px; padding: 18px 22px;
  background: var(--sv-paper); border: 1px solid var(--sv-line);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: nowrap;
}
.rdm-sv-trust-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: var(--sv-ink-2); flex: 1 1 0; min-width: 0;
}
.rdm-sv-ti-icon {
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--sv-bg); display: grid; place-items: center;
  color: var(--sv-ink); flex: 0 0 auto;
}
.rdm-sv-ti-icon--gold { color: #D9A53B; }
.rdm-sv-ti-text { min-width: 0; overflow: hidden; }
.rdm-sv-ti-text b {
  display: block; color: var(--sv-ink); font-weight: 600;
  font-size: 12.5px; letter-spacing: -0.005em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rdm-sv-ti-text span {
  color: var(--sv-ink-3); display: block;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11.5px;
}

/* ── Nav row ── */
.rdm-sv-nav {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 28px;
}
.rdm-sv-back-btn {
  display: inline-flex !important; align-items: center !important; gap: 8px;
  background: transparent !important; color: var(--sv-ink-2) !important;
  border: 1px solid var(--sv-line) !important;
  padding: 10px 16px !important; border-radius: 99px !important;
  font-size: 13.5px !important; cursor: pointer !important; font-family: inherit !important;
  transition: background .15s;
  text-decoration: none !important;
}
.rdm-sv-back-btn:hover { background: var(--sv-paper) !important; }
.rdm-sv-save-note { font-size: 12px; color: var(--sv-ink-3); }
.rdm-sv-save-note b { color: var(--sv-sage); font-weight: 600; }

/* ── Responsive ── */
@media (max-width: 980px) {
  .rdm-sv-grid { grid-template-columns: 1fr; }
  .rdm-sv-h1 { font-size: 34px; white-space: normal; }
  .rdm-sv-h1-sub { white-space: normal; }
}
@media (max-width: 880px) {
  .rdm-sv-hero { flex-direction: column; align-items: flex-start; }
  .rdm-sv-h1 { font-size: 30px; }
  .rdm-sv-hero-meta { text-align: left; }
  .rdm-sv-trust { flex-wrap: wrap; }
  .rdm-sv-trust-item { flex: 1 1 45%; min-width: 180px; }
}
@media (max-width: 720px) {
  .rdm-sv-shell { padding: 20px 16px 40px; }
  .rdm-sv-step-label { display: none; }
  .rdm-sv-stepper { padding: 14px; }
}

/* ══════════════════════════════════════════════════════════════
   STEP 4 — Appointment Booking  (full-screen overlay)
   ══════════════════════════════════════════════════════════════ */

#rdm-step-appt:not(.rdm-step--hidden) {
  position: fixed;
  inset: 0;
  z-index: 99990;
  background: transparent;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--rdm-text, #1d1d1f);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.rdm-appt-wrap {
  width: 100%;
  max-width: 720px;
  margin: auto;
  padding: 40px 24px;
  position: relative;
  z-index: 1;
}

.rdm-appt-hd {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 24px;
}
.rdm-appt-hd__back {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px;
  padding: 7px 16px !important;
  border-radius: 10px !important;
  border: 1.5px solid var(--rdm-border, #d1d1d6) !important;
  background: var(--rdm-surface, #fff) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--rdm-text-muted, #6e6e73) !important;
  cursor: pointer !important;
  transition: border-color .15s, color .15s, background .15s;
  flex-shrink: 0;
  text-decoration: none !important;
}
.rdm-appt-hd__back:hover {
  border-color: var(--rdm-primary) !important;
  color: var(--rdm-primary) !important;
  background: var(--rdm-primary-pale, #f0fdf4) !important;
}
.rdm-appt-hd__text h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--rdm-text);
  letter-spacing: -.4px;
  margin-bottom: 4px;
}
.rdm-appt-hd__text p {
  font-size: 14px;
  color: var(--rdm-text-muted);
}

.rdm-appt-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

/* Date input styled like rdm-input */
.rdm-appt-calendar-wrap { margin-bottom: 4px; }
.rdm-appt-date-input {
  width: 100%;
  box-sizing: border-box;
  height: 44px;
  padding: 0 14px;
  border: 1.5px solid var(--rdm-border);
  border-radius: 10px;
  font-size: 15px;
  color: var(--rdm-text);
  background: var(--rdm-surface);
  cursor: pointer;
  font-family: inherit;
  outline: none;
  transition: border-color .18s, box-shadow .18s;
  -webkit-appearance: none;
  appearance: none;
}
.rdm-appt-date-input:focus,
.rdm-appt-date-input.flatpickr-input.active {
  border-color: var(--rdm-primary);
  box-shadow: var(--rdm-focus-ring);
}

/* Time slot section */
.rdm-appt-slots-section { padding-top: 4px; }
.rdm-appt-slots-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--rdm-text-muted);
  margin-bottom: 10px;
}

.rdm-slot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
@media (max-width: 500px) {
  .rdm-slot-grid { grid-template-columns: repeat(3, 1fr); }
}

.rdm-appt-slot {
  padding: 11px 8px;
  border: 1.5px solid var(--rdm-border);
  border-radius: 10px;
  background: var(--rdm-surface);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--rdm-text);
  cursor: pointer;
  text-align: center;
  transition: border-color .15s, background .15s, color .15s, transform .12s;
  font-family: inherit;
}
.rdm-appt-slot:hover {
  border-color: var(--rdm-primary);
  color: var(--rdm-primary);
  background: var(--rdm-primary-pale);
  transform: translateY(-1px);
}
.rdm-appt-slot--selected {
  border-color: var(--rdm-primary);
  background: var(--rdm-primary);
  color: #fff;
  font-weight: 600;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(22,163,74,.3);
}

.rdm-appt-footer {
  display: flex;
  justify-content: center;
  padding-top: 12px;
}
