/* ============================================================
   ROADWAY MOVING QUOTE FORM — single-page
   Inherits site header/footer.
   ============================================================ */

:root {
  --rwmf-green: #1e22aa;
  --rwmf-green-border: #8f92f0;
  --rwmf-green-deep: #171a8a;
  --rwmf-mint-bg: #eeeffb;
  --rwmf-mint-tint: #f6f7fe;
  --rwmf-orange-grad: linear-gradient(90deg, #f9008a 0, #1e22aa 100%);
  --rwmf-orange: #1e22aa;
  --rwmf-orange-deep: #171a8a;
  --rwmf-ink: #1b1c33;
  --rwmf-ink-soft: #5A6B72;
  --rwmf-ink-muted: #8B9AA0;
  --rwmf-line: #e6e8f5;
  --rwmf-line-soft: #eef0fa;
  --rwmf-card-shadow: 0 1px 2px rgba(26, 43, 51, 0.04), 0 8px 28px rgba(26, 43, 51, 0.06);
}

.rwmf-quote,
.rwmf-quote * {
  font-family: inherit;
}

.rwmf-quote {
  color: var(--rwmf-ink);
  background: transparent;
  padding: 0;
  position: relative;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  font-size: 17px;
}

.rwmf-quote *, .rwmf-quote *::before, .rwmf-quote *::after {
  box-sizing: border-box;
}

.rwmf-quote-inner {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.rwmf-quote .rwmf-eyebrow {
  color: var(--rwmf-green);
  font-weight: 800;
  font-size: 14px !important;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  text-align: center;
  margin: 0 0 14px;
  line-height: 1.4;
}

.rwmf-quote .rwmf-title,
.rwmf-quote h1.rwmf-title,
.rwmf-quote h2.rwmf-title {
  text-align: center !important;
  font-weight: 900 !important;
  font-size: clamp(34px, 4.5vw, 48px) !important;
  line-height: 1.1 !important;
  margin: 0 0 14px !important;
  padding: 0 !important;
  letter-spacing: -0.5px !important;
  color: var(--rwmf-ink) !important;
  text-transform: none !important;
}

.rwmf-quote .rwmf-title em {
  font-style: normal;
  color: var(--rwmf-orange);
}

.rwmf-quote .rwmf-subtitle {
  text-align: center;
  color: var(--rwmf-ink-soft);
  font-size: 17px !important;
  line-height: 1.55;
  max-width: 580px;
  margin: 0 auto 40px;
}

.rwmf-card-frame {
  position: relative;
  margin: 0 0 24px;
}

.rwmf-card {
  position: relative;
  background: #FFFFFF;
  border-radius: 22px;
  padding: 44px 48px 40px;
  box-shadow: var(--rwmf-card-shadow);
  z-index: 1;
}

.rwmf-section {
  margin: 0 0 36px;
}

.rwmf-section:last-of-type {
  margin-bottom: 0;
}

.rwmf-section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rwmf-line-soft);
}

.rwmf-quote .rwmf-section-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--rwmf-mint-bg);
  color: var(--rwmf-green-deep);
  font-weight: 800;
  font-size: 15px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}

.rwmf-quote .rwmf-section-title,
.rwmf-quote h2.rwmf-section-title,
.rwmf-quote h3.rwmf-section-title,
.rwmf-quote h4.rwmf-section-title {
  font-size: 22px !important;
  font-weight: 800 !important;
  margin: 0 !important;
  padding: 0 !important;
  letter-spacing: -0.2px !important;
  line-height: 1.25 !important;
  color: var(--rwmf-ink) !important;
  text-align: left !important;
  text-transform: none !important;
}

.rwmf-field {
  margin: 0 0 18px;
}

.rwmf-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 0 0 18px;
}

.rwmf-field-row .rwmf-field { margin: 0; }

.rwmf-quote .rwmf-label {
  display: block;
  font-weight: 700;
  font-size: 15px !important;
  margin: 0 0 8px;
  color: var(--rwmf-ink);
  letter-spacing: 0.1px;
  line-height: 1.4;
}

.rwmf-label .req {
  color: var(--rwmf-orange);
  margin-left: 2px;
}

.rwmf-quote .rwmf-input,
.rwmf-quote .rwmf-select,
.rwmf-quote .rwmf-textarea {
  width: 100%;
  border: 2px solid var(--rwmf-line);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 16px !important;
  font-family: inherit;
  color: var(--rwmf-ink);
  background: #FFFFFF;
  transition: all 0.18s ease;
  font-weight: 500;
  line-height: 1.4;
}

.rwmf-input::placeholder,
.rwmf-textarea::placeholder {
  color: var(--rwmf-ink-muted);
  font-weight: 400;
}

.rwmf-input:hover,
.rwmf-select:hover,
.rwmf-textarea:hover {
  border-color: var(--rwmf-green-border);
}

.rwmf-input:focus,
.rwmf-select:focus,
.rwmf-textarea:focus {
  outline: none;
  border-color: var(--rwmf-green);
  box-shadow: 0 0 0 4px rgba(30, 34, 170, 0.15);
}

/* Address inputs (Moving out / Moving in) get a location pin on the left,
   matching the forwarding form. The valid-check still sits on the right. */
.rwmf-quote .rwmf-input--pin {
  padding-left: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%231e22aa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 15px center;
  background-size: 18px 18px;
}

.rwmf-textarea {
  resize: vertical;
  min-height: 96px;
}

.rwmf-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%231A2B33' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
  cursor: pointer;
}

.rwmf-error {
  color: #E11D48;
  font-size: 14px !important;
  margin: 6px 0 0;
  font-weight: 600;
  display: none;
  line-height: 1.4;
}

.rwmf-field.has-error .rwmf-input,
.rwmf-field.has-error .rwmf-select,
.rwmf-field.has-error .rwmf-textarea {
  border-color: #E11D48;
}

.rwmf-field.has-error .rwmf-error {
  display: block;
}

/* Validated / "looks good" state */
.rwmf-field.is-valid {
  position: relative;
}

.rwmf-field.is-valid .rwmf-input,
.rwmf-field.is-valid .rwmf-select,
.rwmf-field.is-valid .rwmf-textarea {
  border-color: var(--rwmf-green) !important;
  background-color: #f6f7fe !important;
  padding-right: 44px;
}

/* Valid date: same green treatment as inputs, with a CSS-drawn check badge
   (the trigger is a <button>, so ::after works — no extra markup needed). */
.rwmf-quote .rwmf-field.is-valid .rwmf-datepicker-trigger {
  position: relative;
  border-color: var(--rwmf-green) !important;
  background-color: #f6f7fe !important;
  padding-right: 46px;
}

.rwmf-field.is-valid .rwmf-datepicker-trigger::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--rwmf-green);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
  animation: rwmfCheckPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.rwmf-field.is-valid .rwmf-select {
  background-position: right 36px center, right 14px center;
}

/* Touched-but-invalid: user started/blurred a required field without finishing it */
.rwmf-field.is-touched-invalid .rwmf-input,
.rwmf-field.is-touched-invalid .rwmf-select,
.rwmf-field.is-touched-invalid .rwmf-textarea {
  border-color: #E11D48 !important;
  background-color: #FEF6F7 !important;
}

.rwmf-field.is-touched-invalid .rwmf-datepicker-trigger {
  border-color: #E11D48 !important;
  background-color: #FEF6F7 !important;
}

/* Submit-time error on the date field. The trigger is a <button> whose border
   is set with !important elsewhere, so this needs the same weight to win. */
.rwmf-quote .rwmf-field.has-error .rwmf-datepicker-trigger {
  border-color: #E11D48 !important;
}

.rwmf-field-valid-check {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--rwmf-green);
  color: #FFFFFF;
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  animation: rwmfCheckPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 2;
}

.rwmf-field-valid-check svg {
  width: 12px;
  height: 12px;
  stroke-width: 3.5;
}

.rwmf-field.is-valid .rwmf-field-valid-check {
  display: flex;
}

.rwmf-field-valid-wrap {
  position: relative;
}

/* On textarea wraps, pin the check near the top instead of vertical center. */
.rwmf-field-valid-wrap.is-textarea .rwmf-field-valid-check {
  top: 24px;
}

/* Promo code check: the promo block has no .rwmf-field wrapper, so the
   check is toggled via .is-valid on .rwmf-promo-body (see quote-form.js). */
.rwmf-quote .rwmf-promo-body.is-valid .rwmf-field-valid-check {
  display: flex;
}

/* Helper description text under a field label (inventory list reveal). */
.rwmf-field-desc {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.55;
  color: #5A6B72;
}

@keyframes rwmfCheckPop {
  0% { transform: translateY(-50%) scale(0); opacity: 0; }
  60% { transform: translateY(-50%) scale(1.2); opacity: 1; }
  100% { transform: translateY(-50%) scale(1); opacity: 1; }
}

/* ---------- Custom date picker ---------- */
.rwmf-datepicker {
  position: relative;
}

.rwmf-quote .rwmf-datepicker-trigger,
.rwmf-quote .rwmf-datepicker-trigger:hover,
.rwmf-quote .rwmf-datepicker-trigger:focus,
.rwmf-quote .rwmf-datepicker-trigger:active,
.rwmf-quote .rwmf-datepicker-trigger:focus-visible {
  width: 100% !important;
  border: 2px solid var(--rwmf-line) !important;
  border-radius: 12px !important;
  padding: 14px 16px 14px 44px !important;
  font-size: 16px !important;
  font-family: inherit !important;
  color: var(--rwmf-ink) !important;
  background: #FFFFFF !important;
  background-color: #FFFFFF !important;
  transition: all 0.18s ease !important;
  font-weight: 500 !important;
  text-align: left !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  line-height: 1.3 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%231e22aa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: left 14px center !important;
  box-shadow: none !important;
  outline: none !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}

.rwmf-quote .rwmf-datepicker-trigger:hover {
  border-color: var(--rwmf-green-border) !important;
}

.rwmf-quote .rwmf-datepicker-trigger.is-open,
.rwmf-quote .rwmf-datepicker-trigger:focus,
.rwmf-quote .rwmf-datepicker-trigger:focus-visible {
  border-color: var(--rwmf-green) !important;
  box-shadow: 0 0 0 4px rgba(30, 34, 170, 0.15) !important;
}

.rwmf-datepicker-trigger.is-placeholder {
  color: var(--rwmf-ink-muted) !important;
  font-weight: 400 !important;
}

.rwmf-datepicker-pop {
  position: absolute;
  z-index: 50;
  top: calc(100% + 8px);
  left: 0;
  width: 320px;
  max-width: calc(100vw - 24px);
  background: #FFFFFF;
  border: 1px solid var(--rwmf-line);
  border-radius: 16px;
  box-shadow: 0 12px 36px rgba(26, 43, 51, 0.18);
  padding: 16px;
  display: none;
  animation: rwmfDpFade 0.18s ease;
}

.rwmf-datepicker.is-open .rwmf-datepicker-pop {
  display: block;
}

@keyframes rwmfDpFade {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.rwmf-dp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 12px;
  padding: 0 4px;
}

.rwmf-quote .rwmf-dp-nav,
.rwmf-quote .rwmf-dp-nav:hover,
.rwmf-quote .rwmf-dp-nav:focus,
.rwmf-quote .rwmf-dp-nav:active {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  border: none !important;
  background: var(--rwmf-mint-tint) !important;
  background-color: var(--rwmf-mint-tint) !important;
  color: var(--rwmf-green-deep) !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background 0.15s ease !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 0 !important;
}

.rwmf-quote .rwmf-dp-nav:hover {
  background: var(--rwmf-mint-bg) !important;
  background-color: var(--rwmf-mint-bg) !important;
}

.rwmf-quote .rwmf-dp-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.rwmf-dp-nav svg {
  width: 16px;
  height: 16px;
}

.rwmf-dp-title {
  font-weight: 800;
  font-size: 16px;
  color: var(--rwmf-ink);
  letter-spacing: -0.1px;
}

.rwmf-dp-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin: 0 0 6px;
}

.rwmf-dp-weekday {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--rwmf-ink-soft);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 4px 0;
}

.rwmf-dp-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.rwmf-quote .rwmf-dp-day,
.rwmf-quote .rwmf-dp-day:hover,
.rwmf-quote .rwmf-dp-day:focus,
.rwmf-quote .rwmf-dp-day:active {
  border: none !important;
  background: transparent !important;
  background-color: transparent !important;
  color: var(--rwmf-ink) !important;
  font-family: inherit !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  aspect-ratio: 1 !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  transition: background 0.12s ease, color 0.12s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 0 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}

.rwmf-quote .rwmf-dp-day.is-outside {
  color: var(--rwmf-ink-muted) !important;
  opacity: 0.4;
  font-weight: 500 !important;
}

.rwmf-quote .rwmf-dp-day:hover:not(:disabled):not(.is-selected) {
  background: var(--rwmf-mint-tint) !important;
  background-color: var(--rwmf-mint-tint) !important;
}

.rwmf-quote .rwmf-dp-day:disabled {
  color: var(--rwmf-line) !important;
  cursor: not-allowed;
  opacity: 0.6;
}

.rwmf-quote .rwmf-dp-day.is-today {
  color: var(--rwmf-orange) !important;
  font-weight: 800 !important;
}

.rwmf-dp-day.is-today::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--rwmf-orange);
}

.rwmf-quote .rwmf-dp-day.is-selected,
.rwmf-quote .rwmf-dp-day.is-selected:hover,
.rwmf-quote .rwmf-dp-day.is-selected:focus {
  background: var(--rwmf-green) !important;
  background-color: var(--rwmf-green) !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 12px rgba(30, 34, 170, 0.35) !important;
}

.rwmf-dp-day.is-selected.is-today::after {
  background: #FFFFFF;
}

.rwmf-dp-foot {
  margin: 12px 0 0;
  padding: 12px 4px 0;
  border-top: 1px solid var(--rwmf-line-soft);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.rwmf-quote .rwmf-dp-quick,
.rwmf-quote .rwmf-dp-quick:hover,
.rwmf-quote .rwmf-dp-quick:focus,
.rwmf-quote .rwmf-dp-quick:active {
  border: none !important;
  background: var(--rwmf-mint-tint) !important;
  background-color: var(--rwmf-mint-tint) !important;
  color: var(--rwmf-green-deep) !important;
  font-family: inherit !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  padding: 8px 12px !important;
  border-radius: 99px !important;
  cursor: pointer !important;
  transition: background 0.15s ease !important;
  box-shadow: none !important;
  outline: none !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  white-space: nowrap !important;
}

.rwmf-quote .rwmf-dp-quick:hover {
  background: var(--rwmf-mint-bg) !important;
  background-color: var(--rwmf-mint-bg) !important;
}

/* Yes/No pill */
.rwmf-pill-group {
  display: inline-flex;
  background: var(--rwmf-line-soft);
  padding: 4px;
  border-radius: 99px;
  gap: 2px;
}

.rwmf-quote .rwmf-pill-group .rwmf-pill,
.rwmf-quote .rwmf-pill-group .rwmf-pill:hover,
.rwmf-quote .rwmf-pill-group .rwmf-pill:focus,
.rwmf-quote .rwmf-pill-group .rwmf-pill:active,
.rwmf-quote .rwmf-pill-group .rwmf-pill:focus-visible {
  border: none !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  padding: 9px 24px !important;
  border-radius: 99px !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  color: var(--rwmf-ink-soft) !important;
  cursor: pointer !important;
  font-family: inherit !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  box-shadow: none !important;
  text-decoration: none !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  outline: none !important;
  transition: color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease !important;
}

.rwmf-quote .rwmf-pill-group .rwmf-pill:focus-visible {
  box-shadow: 0 0 0 3px rgba(30, 34, 170, 0.25) !important;
}

.rwmf-quote .rwmf-pill-group .rwmf-pill.active,
.rwmf-quote .rwmf-pill-group .rwmf-pill.active:hover,
.rwmf-quote .rwmf-pill-group .rwmf-pill.active:focus,
.rwmf-quote .rwmf-pill-group .rwmf-pill.active:active {
  background: #FFFFFF !important;
  background-color: #FFFFFF !important;
  color: var(--rwmf-ink) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
}

.rwmf-quote .rwmf-pill-group .rwmf-pill[data-value="yes"].active,
.rwmf-quote .rwmf-pill-group .rwmf-pill[data-value="yes"].active:hover,
.rwmf-quote .rwmf-pill-group .rwmf-pill[data-value="yes"].active:focus {
  color: var(--rwmf-green-deep) !important;
}

/* Address block */
.rwmf-address-block {
  border: 1px solid var(--rwmf-line);
  border-radius: 14px;
  padding: 18px 20px 20px;
  background: #fafaff;
  margin: 0 0 14px;
}

.rwmf-address-block-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
}

.rwmf-address-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--rwmf-mint-bg);
  color: var(--rwmf-green-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rwmf-address-icon svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

.rwmf-quote .rwmf-address-title {
  font-weight: 800;
  font-size: 17px !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--rwmf-ink) !important;
  line-height: 1.3 !important;
  letter-spacing: -0.1px !important;
  text-transform: none !important;
}

.rwmf-elevator-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.rwmf-elevator-label {
  font-weight: 700;
  font-size: 15px;
  color: var(--rwmf-ink);
  line-height: 1.4;
}

.rwmf-elevator-label .req {
  color: var(--rwmf-orange);
  margin-left: 2px;
}

/* Service chips */
.rwmf-chip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.rwmf-chip {
  position: relative;
  display: flex; /* card stretches to the tallest in the row -> equal heights */
  cursor: pointer;
}

.rwmf-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.rwmf-chip-card {
  width: 100%; /* fill the stretched chip */
  border: 2px solid var(--rwmf-line);
  background: #FFFFFF;
  border-radius: 12px;
  padding: 18px 14px 16px;
  transition: all 0.18s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  position: relative;
}

.rwmf-chip:hover .rwmf-chip-card {
  border-color: var(--rwmf-green-border);
}

.rwmf-chip input:checked + .rwmf-chip-card {
  border-color: var(--rwmf-green);
  background: var(--rwmf-mint-bg);
}

.rwmf-chip-card::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--rwmf-line);
  background: #FFFFFF;
  transition: all 0.18s ease;
}

.rwmf-chip input:checked + .rwmf-chip-card::after {
  background-color: var(--rwmf-green);
  border-color: var(--rwmf-green);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}

.rwmf-chip-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--rwmf-mint-bg);
  color: var(--rwmf-green-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  transition: all 0.18s ease;
}

.rwmf-chip input:checked + .rwmf-chip-card .rwmf-chip-icon {
  background: var(--rwmf-green);
  color: #FFFFFF;
}

.rwmf-chip-icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.8;
}

.rwmf-chip-label {
  font-weight: 700;
  font-size: 15px;
  color: var(--rwmf-ink);
  line-height: 1.3;
}

.rwmf-chip-sub {
  font-weight: 500;
  font-size: 13px;
  color: var(--rwmf-ink-soft);
  line-height: 1.35;
  margin: 2px 0 0;
  padding: 0 4px;
}

.rwmf-chip input:checked + .rwmf-chip-card .rwmf-chip-sub {
  color: var(--rwmf-green-deep);
}

/* Conditional reveal (stairs field, etc.) */
.rwmf-field.rwmf-reveal {
  display: none;
  margin-top: 12px;
  margin-bottom: 18px;
  animation: rwmfRevealSlide 0.3s ease;
}

.rwmf-field.rwmf-reveal.is-shown {
  display: block;
}

@keyframes rwmfRevealSlide {
  from { opacity: 0; transform: translateY(-4px); max-height: 0; }
  to { opacity: 1; transform: translateY(0); max-height: 200px; }
}

/* The inventory reveal is taller than the stairs selects, so it gets the same
   slide without the 200px max-height cap (avoids a layout jump mid-animation). */
#rwmf-inventory-reveal.is-shown {
  animation: rwmfRevealSlideTall 0.3s ease;
}

@keyframes rwmfRevealSlideTall {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.rwmf-reveal .rwmf-label {
  color: var(--rwmf-orange-deep, var(--rwmf-orange));
}

/* Submit */
.rwmf-submit-row {
  margin: 36px 0 0;
  padding-top: 28px;
  border-top: 1px solid var(--rwmf-line-soft);
  display: flex;
  justify-content: center;
}

.rwmf-quote .rwmf-btn-primary,
.rwmf-quote .rwmf-btn-primary:hover,
.rwmf-quote .rwmf-btn-primary:focus,
.rwmf-quote .rwmf-btn-primary:active,
.rwmf-quote .rwmf-btn-primary:focus-visible {
  border: none !important;
  cursor: pointer !important;
  font-family: inherit !important;
  font-weight: bold !important;
  border-radius: 8px !important;
  padding: 12px 28px !important;
  height: 52px !important;
  font-size: 16px !important;
  line-height: 1 !important;
  transition: transform 0.16s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  background: linear-gradient(90deg, rgba(249, 0, 138, 1) 0%, rgba(30, 34, 170, 1) 100%) !important;
  color: #FFFFFF !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Gentle lift on hover — no glow (the pink shadow read like a competitor's brand). */
.rwmf-quote .rwmf-btn-primary:hover {
  transform: translateY(-2px) !important;
}

.rwmf-quote .rwmf-btn-primary:active {
  transform: translateY(0) !important;
}

.rwmf-quote .rwmf-btn-primary .arrow {
  transition: transform 0.16s ease;
}

/* Reassurance */
.rwmf-reassurance {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  margin: 28px auto 0;
  color: var(--rwmf-ink-soft);
  font-size: 15px;
  font-weight: 600;
}

.rwmf-reassurance-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.rwmf-reassurance-item svg {
  width: 18px;
  height: 18px;
  color: var(--rwmf-green);
  flex-shrink: 0;
}

/* Success */
.rwmf-success {
  text-align: center;
  padding: 20px 8px 8px;
  display: none;
}

.rwmf-success.active {
  display: block;
}

.rwmf-success-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 20px;
  background: var(--rwmf-mint-bg);
  color: var(--rwmf-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: rwmfPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.rwmf-success-icon svg {
  width: 38px;
  height: 38px;
  stroke-width: 2.4;
}

@keyframes rwmfPop {
  from { transform: scale(0.4); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.rwmf-quote .rwmf-success h3,
.rwmf-quote .rwmf-success h2 {
  font-size: 32px !important;
  font-weight: 900 !important;
  margin: 0 0 12px !important;
  padding: 0 !important;
  letter-spacing: -0.3px !important;
  color: var(--rwmf-ink) !important;
  line-height: 1.2 !important;
  text-transform: none !important;
}

.rwmf-quote .rwmf-success p {
  color: var(--rwmf-ink-soft);
  font-size: 17px;
  line-height: 1.55;
  margin: 0 auto 24px;
  max-width: 480px;
}

.rwmf-success-meta {
  background: var(--rwmf-mint-tint);
  border-radius: 14px;
  padding: 18px 22px;
  display: inline-block;
  text-align: left;
  font-size: 15px;
  line-height: 1.5;
  color: var(--rwmf-ink-soft);
}

.rwmf-success-meta strong {
  color: var(--rwmf-ink);
}

/* ============================================================
   PLUGIN ADDITIONS (Phase 1)
   ============================================================ */

/* Honeypot — invisible to humans, off-screen. Do not display:none
   (some bots skip hidden fields); keep it in the layout but unreachable. */
.rwmf-quote .rwmf-hp {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* Promo code block — hidden until JS reveals it on ?rwmf_promo=1 */
.rwmf-quote .rwmf-promo-block {
  display: none;
  margin: 0 0 28px;
}

.rwmf-quote .rwmf-promo-block.is-shown {
  display: block;
  animation: rwmfRevealSlide 0.3s ease;
}

.rwmf-quote .rwmf-promo-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 2px solid var(--rwmf-green);
  border-radius: 14px;
  background: var(--rwmf-mint-bg);
  padding: 16px 18px;
}

.rwmf-quote .rwmf-promo-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--rwmf-green);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rwmf-quote .rwmf-promo-icon svg {
  width: 22px;
  height: 22px;
}

.rwmf-quote .rwmf-promo-body {
  flex: 1;
  min-width: 0;
}

.rwmf-quote .rwmf-promo-body .rwmf-label {
  margin-bottom: 6px;
  color: var(--rwmf-green-deep);
}

.rwmf-quote .rwmf-promo-body .rwmf-input {
  background: #FFFFFF;
}

/* Form-level error banner */
.rwmf-quote .rwmf-form-error {
  display: none;
  margin: 24px 0 0;
  padding: 14px 18px;
  border: 1px solid #F4B5C0;
  background: #FEF2F4;
  color: #B01230;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.45;
}

.rwmf-quote .rwmf-form-error.is-shown {
  display: block;
}

/* Submit button loading state */
.rwmf-quote .rwmf-btn-primary.is-loading {
  opacity: 0.9;
  pointer-events: none;
}

.rwmf-quote .rwmf-btn-primary .rwmf-spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.45);
  border-top-color: #FFFFFF;
  animation: rwmfSpin 0.7s linear infinite;
  display: none;
}

.rwmf-quote .rwmf-btn-primary.is-loading .rwmf-spinner {
  display: inline-block;
}

.rwmf-quote .rwmf-btn-primary.is-loading .arrow {
  display: none;
}

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

/* Responsive */
@media (max-width: 720px) {
  /* No outer spacing (Elementor handles the container); keep only the white
     card's own padding so the form spans the full widget width. */
  .rwmf-quote { padding: 0; }
  .rwmf-card { padding: 30px 22px 26px; border-radius: 18px; }
  .rwmf-field-row { grid-template-columns: 1fr; }
  .rwmf-chip-grid { grid-template-columns: repeat(2, 1fr); }
  .rwmf-quote .rwmf-title,
  .rwmf-quote h2.rwmf-title { font-size: 32px !important; }
  .rwmf-quote .rwmf-section-title,
  .rwmf-quote h2.rwmf-section-title,
  .rwmf-quote h3.rwmf-section-title { font-size: 19px !important; }
  .rwmf-quote .rwmf-section-num { width: 30px; height: 30px; font-size: 14px !important; }
  .rwmf-section-head { gap: 12px; }
  .rwmf-reassurance { gap: 12px 22px; font-size: 14px; }
  .rwmf-quote .rwmf-btn-primary { padding: 12px 28px !important; height: 52px !important; font-size: 16px !important; width: 100%; justify-content: center; }
  .rwmf-elevator-row { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* =========================================================
   GOOGLE PLACES AUTOCOMPLETE DROPDOWN (.pac-container)
   ---------------------------------------------------------
   Google injects this suggestions box at the end of <body>,
   NOT inside the form, with a low default z-index (~1000).
   On an Elementor page a sticky header or stacked section can
   sit above that, hiding the list behind the page — which
   looks like "nothing happens" while typing. The high z-index
   below lifts it above the theme; the rest just matches the
   form. Do not set overflow:hidden here
   or the required "powered by Google" footer can be clipped.
   ========================================================= */
.pac-container {
  z-index: 100000 !important;
  font-family: inherit;
  margin-top: 6px;
  background: #ffffff;
  border: 1px solid #e6e8f5;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(26, 43, 51, .14);
  padding: 4px 0;
  box-sizing: border-box;
}
.pac-item {
  padding: 9px 14px;
  font-size: 15px;
  line-height: 1.4;
  color: #5a6b72;
  border-top: none;
  cursor: pointer;
}
.pac-item:hover,
.pac-item-selected {
  background: #f6f7fe;
}
.pac-item-query {
  font-size: 15px;
  color: #1b1c33;
}
.pac-matched {
  color: #1e22aa;
  font-weight: 700;
}
.pac-icon {
  margin-right: 8px;
}

/* =========================================================
   Terms-of-service consent (checkbox + scrollable terms)
   ========================================================= */
.rwmf-quote .rwmf-tos {
  margin: 4px 0 22px;
}
.rwmf-quote .rwmf-tos-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 15px;
  color: #1b1c33;
  line-height: 1.4;
}
.rwmf-quote .rwmf-tos-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  flex: 0 0 auto;
  accent-color: #1e22aa;
  cursor: pointer;
}
.rwmf-quote .rwmf-tos-check-label { font-weight: 600; }
.rwmf-quote .rwmf-tos-scroll {
  margin-top: 10px;
  max-height: 132px;
  overflow-y: auto;
  border: 1px solid #e6e8f5;
  border-radius: 8px;
  background: #f6f7fe;
  padding: 14px 16px;
  font-size: 12.5px;
  line-height: 1.55;
  color: #5a6b72;
}
.rwmf-quote .rwmf-tos-scroll p,
.rwmf-quote .rwmf-form-terms { margin: 0; }
.rwmf-quote .rwmf-tos-scroll a { color: #1e22aa; text-decoration: underline; }
.rwmf-quote .rwmf-tos-scroll a:hover { color: #f9008a; }
.rwmf-quote .rwmf-tos.has-error .rwmf-tos-check-label { color: #b01230; }
.rwmf-quote .rwmf-tos.has-error input[type="checkbox"] { outline: 2px solid #e11d48; outline-offset: 2px; border-radius: 3px; }
.rwmf-quote .rwmf-tos .rwmf-error { display: none; margin-top: 8px; }
.rwmf-quote .rwmf-tos.has-error .rwmf-error { display: block; }
.rwmf-quote .rwmf-tos.is-valid input[type="checkbox"] { outline: 2px solid var(--rwmf-green); outline-offset: 2px; border-radius: 3px; }

/* Error summary by the submit button: lands the feedback where the visitor
   just clicked, instead of only up-page where they might not look. */
/* Error summary below the submit button: a checklist of what's still needed.
   Each item starts as a red circle and flips to a green check as its field is
   fixed, so progress is visible. Full width (not a flex sibling of the button),
   so it never pushes the button sideways. */
.rwmf-quote .rwmf-error-summary {
  margin: 16px 0 0;
  padding: 14px 16px;
  border: 1px solid #f3c2cd;
  border-left: 4px solid #E11D48;
  background: #fef2f4;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.5;
}
.rwmf-quote .rwmf-error-summary.is-complete {
  border-color: var(--rwmf-green-border);
  border-left-color: var(--rwmf-green);
  background: #f6f7fe;
}
.rwmf-quote .rwmf-error-summary-title { margin: 0; font-weight: 700; color: #8a1130; }
.rwmf-quote .rwmf-error-summary.is-complete .rwmf-error-summary-title { color: var(--rwmf-green-deep); }
.rwmf-quote .rwmf-error-summary-list { list-style: none; margin: 10px 0 0; padding: 0; }
.rwmf-quote .rwmf-sum-item {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 7px 0; font-weight: 600; color: #8a1130;
}
.rwmf-quote .rwmf-sum-mark {
  flex: 0 0 auto; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid #E11D48; background: #fff; position: relative; margin-top: 1px;
}
.rwmf-quote .rwmf-sum-item.is-done { color: var(--rwmf-green-deep); }
.rwmf-quote .rwmf-sum-item.is-done .rwmf-sum-mark {
  border-color: var(--rwmf-green); background: var(--rwmf-green);
}
.rwmf-quote .rwmf-sum-item.is-done .rwmf-sum-mark::after {
  content: ""; position: absolute; left: 5px; top: 2px;
  width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* "Still loading" note for an early click before the JS is ready. */
.rwmf-quote .rwmf-boot-note {
  margin: 10px 0 0;
  font-size: 14px;
  color: #5a6b72;
}

/* No-JS fallback: the only message that works when scripts fail entirely. */
.rwmf-quote .rwmf-noscript {
  margin: 10px 0 0;
  padding: 12px 14px;
  border: 1px solid #e6e8f5;
  border-left: 4px solid var(--rwmf-green);
  background: #f6f7fe;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
}
.rwmf-quote .rwmf-noscript a { color: var(--rwmf-green); font-weight: 700; }

/* "Having trouble" help panel, shown after repeated blocked submits. */
.rwmf-quote .rwmf-help {
  margin: 18px 0 0;
  padding: 18px 20px;
  border: 1px solid #e6e8f5;
  border-radius: 12px;
  background: #f6f7fe;
}
.rwmf-quote .rwmf-help-msg { margin: 0 0 12px; font-size: 15px; line-height: 1.5; color: #1b1c33; }
.rwmf-quote .rwmf-help .rwmf-label { margin: 0 0 6px; }
.rwmf-quote .rwmf-help .rwmf-input { margin: 0 0 12px; }
.rwmf-quote .rwmf-help-send {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: none; cursor: pointer; font-weight: 700; font-size: 15px;
  padding: 12px 22px; border-radius: 8px; color: #fff; background: var(--rwmf-green);
}
.rwmf-quote .rwmf-help-send:hover { background: var(--rwmf-green-deep); }
.rwmf-quote .rwmf-help-send.is-loading { opacity: .7; cursor: default; }
.rwmf-quote .rwmf-help-error { margin: 10px 0 0; color: #E11D48; font-size: 14px; font-weight: 600; }
.rwmf-quote .rwmf-help-done p { margin: 0; font-size: 15px; line-height: 1.5; color: #1b1c33; }
