/* stylelint-disable no-descending-specificity, no-duplicate-selectors -- intentional cascade layering for complex layouts */
/* Estimator – layout & shell */

/* Align estimator shell with hero/packages glass panels */

.mdl-estimator {
  margin: clamp(8px, 3vw, 18px) auto 0;
  padding-inline: 0;
}

.mdl-estimator__inner {
  width: 100%;
  max-width: none;
  margin-inline: auto;
  padding: clamp(28px, 6vw, 52px);
  border-radius: clamp(24px, 6vw, 36px);
  background: var(--services-panel-glass, linear-gradient(145deg, rgba(4, 12, 30, 0.92), rgba(12, 26, 58, 0.7)));
  border: 1px solid var(--services-panel-border, rgba(122, 216, 255, 0.36));
  box-shadow: 0 32px 96px rgba(3, 8, 22, 0.55);
  backdrop-filter: blur(26px) saturate(140%);
  color: var(--text-secondary, #c5d8f2);
}

/* Header */

.mdl-estimator__header {
  margin-bottom: 1.5rem;
  max-width: 640px;
}

/* Progress indicator */

.mdl-estimator__progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 1.25rem;
  padding: 0.6rem 1rem;
  background: rgba(4, 10, 24, 0.6);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: fit-content;
}

.mdl-estimator__progress-step {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.5rem;
  opacity: 0.5;
  transition: opacity 0.2s ease;
}

.mdl-estimator__progress-step.is-active,
.mdl-estimator__progress-step.is-complete {
  opacity: 1;
}

.mdl-estimator__progress-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.mdl-estimator__progress-step.is-active .mdl-estimator__progress-dot {
  background: var(--mcd-accent-cyan, #00e5ff);
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.6);
}

.mdl-estimator__progress-step.is-complete .mdl-estimator__progress-dot {
  background: var(--mcd-accent-cyan, #00e5ff);
}

.mdl-estimator__progress-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mcd-text-muted, #b8c8e8);
}

.mdl-estimator__progress-step.is-active .mdl-estimator__progress-label {
  color: var(--mcd-accent-cyan, #00e5ff);
}

.mdl-estimator__progress-line {
  width: 2rem;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
}

.mdl-estimator__eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mcd-accent-cyan, #00e5ff);
  margin: 0 0 0.5rem;
}

.mdl-estimator__title {
  margin: 0 0 0.4rem;
  font-size: clamp(1.6rem, 3vw, 2rem);
  color: var(--mcd-text-strong, #fff);
  font-weight: 600;
}

.mdl-estimator__subtitle {
  margin: 0;
  font-size: 0.95rem;
}

/* Grid */

.mdl-estimator__grid {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 900px) {
  .mdl-estimator__grid {
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.5fr);
    align-items: flex-start;
  }
}

/* Columns */

.mdl-estimator__col {
  min-width: 0;
}

.mdl-estimator__col--summary {
  position: sticky;
  top: 120px; /* Clear the sticky header (~113px) */
  align-self: start;
  overflow: visible;
  margin-top: -24px;
  background: radial-gradient(circle at 10% 0,
      rgba(0, 229, 255, 0.2),
      transparent 70%),
    radial-gradient(circle at 90% 100%,
      rgba(255, 0, 224, 0.18),
      transparent 70%),
    rgba(5, 10, 24, 0.9);
  border-radius: 16px;
  padding: 1.25rem 1.4rem;
  border: 1px solid rgba(0, 229, 255, 0.25);
  box-shadow: 0 16px 40px rgba(3, 9, 28, 0.6);
}

@media (max-width: 900px) {
  .mdl-estimator__col--summary {
    position: static;
    top: auto;
    margin-top: 0;
  }
}

/* Groups */

.mdl-estimator__group {
  margin: 0 0 1.25rem;
  border: none;
  padding: 0;
}

.mdl-estimator__hidden-by-site-state {
  display: none !important;
}

.mdl-estimator__group-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--mcd-text-muted, #b8c8e8);
  margin-bottom: 0.65rem;
}

/* Style step numbers (1., 2., 3.) with prominent badges */

.mdl-estimator__group-title::before {
  content: none;
}

.mdl-estimator__step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.25), rgba(255, 0, 224, 0.15));
  border: 1px solid rgba(0, 229, 255, 0.5);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--mcd-accent-cyan, #00e5ff);
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.5);
  flex-shrink: 0;
}

.mdl-estimator__group-title--lead {
  color: var(--mcd-accent-cyan, #00e5ff) !important; /* ensure cyan text shows even if higher-scope colors apply */
  font-family: var(--font-display, 'Manrope', 'Segoe UI', Helvetica, Arial, sans-serif);
  font-weight: 600; /* use an available loaded weight to avoid faux bold artifacts */
  text-shadow:
    0 0 22px rgba(0, 229, 255, 0.32),
    0 0 10px rgba(0, 229, 255, 0.24);
  letter-spacing: 0.18em;
}

.mdl-estimator__group--site-state {
  margin-bottom: 1.5rem;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 18px rgba(3, 8, 22, 0.18);
}

.mdl-estimator__group-help {
  margin: 0 0 0.6rem;
  font-size: 0.8rem;
  color: var(--mcd-text-muted, #b8c8e8);
}

.mdl-estimator__site-state {
  display: grid;
  gap: 0.5rem;
}

.mdl-estimator__option {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.mdl-estimator__option-body {
  display: grid;
  gap: 0.15rem;
}

.mdl-estimator__option-label {
  font-size: 0.9rem;
  color: var(--mcd-text-medium, #e8f0ff);
}

.mdl-estimator__option-note {
  font-size: 0.8rem;
  color: var(--mcd-text-muted, #b8c8e8);
}

.mdl-estimator__option input[type="radio"] {
  margin-top: 0.15rem;
}

/* Packages */

.mdl-estimator__packages {
  display: grid;
  gap: 0.6rem;
}

.mdl-estimator__package {
  display: block;
  position: relative;
}

.mdl-estimator__package input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mdl-estimator__package-body {
  display: grid;
  gap: 0.15rem;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  box-shadow: 0 12px 28px rgba(3, 8, 22, 0.24);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

.mdl-estimator__package-name {
  font-weight: 600;
  color: var(--mcd-text-strong, #fff);
}

.mdl-estimator__package-price {
  font-size: 0.9rem;
  color: var(--mcd-accent-amber, #ff6b00);
}

.mdl-estimator__package-meta {
  font-size: 0.8rem;
  color: var(--mcd-text-muted, #b8c8e8);
}

.mdl-estimator__package-compare {
  display: block;
  margin-top: 0.35rem;
  padding-top: 0.35rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  font-size: 0.7rem;
  color: var(--mcd-accent-cyan, #00e5ff);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.mdl-estimator__package-body:hover .mdl-estimator__package-compare,
.mdl-estimator__package input:checked + .mdl-estimator__package-body .mdl-estimator__package-compare {
  opacity: 1;
  transform: translateY(0);
}

.mdl-estimator__package-body:hover,
.mdl-estimator__package-body:focus-visible {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 14px 30px rgba(3, 8, 22, 0.28);
  transform: translateY(-1px);
}

/* Package switcher animation */
@keyframes package-select {
  0% {
    transform: scale(1);
  }

  40% {
    transform: scale(1.03);
  }

  100% {
    transform: scale(1);
  }
}

.mdl-estimator__package input[type="radio"]:checked + .mdl-estimator__package-body {
  animation: package-select 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Keyboard focus polish */

.mdl-estimator__package input[type="radio"]:focus-visible + .mdl-estimator__package-body {
  outline: 2px solid var(--mcd-accent-cyan, #00e5ff);
  outline-offset: 2px;
  border-color: rgba(0, 229, 255, 0.7);
}

.mdl-estimator__addon input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--mcd-accent-cyan, #00e5ff);
  outline-offset: 2px;
  border-radius: 3px;
}

.mdl-estimator__cta:focus-visible {
  outline: 2px solid var(--mcd-accent-cyan, #00e5ff);
  outline-offset: 3px;
}

.mdl-estimator__option input[type="radio"]:focus-visible {
  outline: 2px solid var(--mcd-accent-cyan, #00e5ff);
  outline-offset: 2px;
}

/* Most Popular badge */

.mdl-estimator__package--popular .mdl-estimator__package-body {
  border-color: rgba(255, 191, 0, 0.5);
  background: linear-gradient(135deg, rgba(255, 191, 0, 0.12), rgba(255, 255, 255, 0.03));
  box-shadow: 0 12px 28px rgba(3, 8, 22, 0.24), 0 0 20px rgba(255, 191, 0, 0.15);
}

.mdl-estimator__package-badge {
  position: absolute;
  top: -0.6rem;
  right: 1rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: linear-gradient(135deg, #ffbf00, #ff8c00);
  color: #0a0a14;
  box-shadow: 0 4px 12px rgba(255, 191, 0, 0.4);
}

.mdl-estimator__package--popular .mdl-estimator__package-body {
  position: relative;
}

.mdl-estimator__package input[type="radio"]:checked + .mdl-estimator__package-body {
  border-color: rgba(0, 229, 255, 0.7);
  box-shadow:
    0 0 16px rgba(0, 229, 255, 0.4),
    0 10px 26px rgba(3, 9, 28, 0.8);
  transform: translateY(-1px);
}

.mdl-estimator__upsell {
  margin: 0.4rem 0 0.8rem;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 191, 0, 0.5);
  box-shadow: 0 8px 20px rgba(3, 8, 22, 0.18);
}

.mdl-estimator__upsell-inner {
  display: grid;
  gap: 0.35rem;
}

.mdl-estimator__upsell-title {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--mcd-text-strong, #fff);
}

.mdl-estimator__upsell-note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--mcd-text-muted, #b8c8e8);
}

.mdl-estimator__upsell-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.3rem;
}

.mdl-estimator__upsell-button,
.mdl-estimator__upsell-link {
  font-size: 0.78rem;
  border-radius: 999px;
  padding: 0.25rem 0.9rem;
  border: none;
  cursor: pointer;
}

.mdl-estimator__upsell-button {
  background: var(--mcd-accent-amber, #ffbf00);
  color: #050814;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(255, 191, 0, 0.3);
}

.mdl-estimator__upsell-link {
  background: transparent;
  color: var(--mcd-text-muted, #b8c8e8);
  text-decoration: underline;
}

/* ───────────────────────────────────────────────────────────
   Package Comparison Grid (collapsed by default)
─────────────────────────────────────────────────────────── */

.mdl-estimator__compare-grid {
  margin-top: 1rem;
}

.mdl-estimator__compare-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--mcd-accent-cyan, #00e5ff);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  background: rgba(0, 229, 255, 0.06);
  border: 1px solid rgba(0, 229, 255, 0.15);
  transition: all 0.2s ease;
  list-style: none;
}

.mdl-estimator__compare-toggle::-webkit-details-marker {
  display: none;
}

.mdl-estimator__compare-toggle:hover {
  background: rgba(0, 229, 255, 0.12);
  border-color: rgba(0, 229, 255, 0.3);
}

.mdl-estimator__compare-toggle svg {
  width: 18px;
  height: 18px;
  fill: currentcolor;
  transition: transform 0.25s ease;
}

.mdl-estimator__compare-grid[open] .mdl-estimator__compare-toggle svg {
  transform: rotate(180deg);
}

.mdl-estimator__compare-table {
  margin-top: 0.75rem;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.mdl-estimator__compare-header,
.mdl-estimator__compare-row {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 0;
}

.mdl-estimator__compare-header {
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mdl-estimator__compare-header .mdl-estimator__compare-col {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mcd-text-medium, #e8f0ff);
  padding: 0.6rem 0.5rem;
  text-align: center;
}

.mdl-estimator__compare-row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mdl-estimator__compare-row:last-child {
  border-bottom: none;
}

.mdl-estimator__compare-feature {
  font-size: 0.75rem;
  color: var(--mcd-text-muted, #b8c8e8);
  padding: 0.55rem 0.75rem;
  display: flex;
  align-items: center;
}

.mdl-estimator__compare-col {
  padding: 0.55rem 0.5rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.mdl-estimator__compare-check {
  color: var(--mcd-accent-cyan, #00e5ff);
  font-size: 1rem;
  font-weight: 700;
}

.mdl-estimator__compare-dash {
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.9rem;
}

.mdl-estimator__compare-text {
  color: var(--mcd-text-medium, #e8f0ff);
  font-size: 0.7rem;
}

.mdl-estimator__compare-optional {
  color: var(--mcd-accent-magenta, #ff6ec7);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Responsive: stack on mobile */
@media (max-width: 480px) {
  .mdl-estimator__compare-header,
  .mdl-estimator__compare-row {
    grid-template-columns: 1.2fr repeat(3, 1fr);
  }

  .mdl-estimator__compare-feature {
    font-size: 0.68rem;
    padding: 0.5rem;
  }

  .mdl-estimator__compare-col {
    padding: 0.5rem 0.25rem;
  }

  .mdl-estimator__compare-header .mdl-estimator__compare-col {
    font-size: 0.6rem;
    padding: 0.5rem 0.25rem;
  }

  .mdl-estimator__compare-text,
  .mdl-estimator__compare-optional {
    font-size: 0.6rem;
  }
}

/* Add-on groups */

.mdl-estimator__addon-group {
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 24px rgba(3, 8, 22, 0.2);
  padding: 0.4rem 0.75rem 0.7rem;
}

.mdl-estimator__addon-group + .mdl-estimator__addon-group {
  margin-top: 0.5rem;
}

.mdl-estimator__addon-group > summary {
  list-style: none;
  cursor: pointer;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--mcd-text-medium, #e8f0ff);
}

.mdl-estimator__addon-group > summary::-webkit-details-marker {
  display: none;
}

.mdl-estimator__addon-group[open] > summary {
  margin-bottom: 0.4rem;
}

.mdl-estimator__addon-list {
  display: grid;
  gap: 0.35rem;
}

/* Individual add-ons */

.mdl-estimator__addon {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.6rem 0.75rem;
  padding: 0.5rem 0.6rem;
  border-radius: 10px;
  font-size: 0.85rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.mdl-estimator__addon:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
  border-color: rgba(255, 255, 255, 0.14);
}

/* Reorder: checkbox first, then main, then price */

.mdl-estimator__addon input[type="checkbox"] {
  order: -2;
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
  cursor: pointer;
  accent-color: var(--mcd-accent-cyan, #00e5ff);
}

.mdl-estimator__addon-main {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  order: -1;
}

.mdl-estimator__addon-label {
  color: var(--mcd-text-medium, #e8f0ff);
}

.mdl-estimator__addon-note {
  display: block;
  font-size: 0.78rem;
  color: var(--mcd-text-muted, #b8c8e8);
}

/* Tag positioned in grid - styled below */

.mdl-estimator__addon-price {
  text-align: right;
  white-space: nowrap;
  color: var(--mcd-text-muted, #b8c8e8);
  font-size: 0.8rem;
}

.mdl-estimator__addon-qty-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 0.25rem;
}

.mdl-estimator__addon-qty-wrap input[type="number"] {
  width: 2.8rem;
  padding: 0.1rem 0.25rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(4, 10, 26, 0.9);
  color: var(--mcd-text-strong, #fff);
  font-size: 0.78rem;
}

/* Included / disabled state */

.mdl-estimator__addon.is-included {
  opacity: 0.75;
}

.mdl-estimator__addon.is-included input[type="checkbox"] {
  cursor: default;
}

.mdl-estimator__addon-tag {
  grid-column: 2;
  justify-self: start;
  display: inline-block;
  padding: 0.14rem 0.5rem;
  border-radius: 999px;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mcd-accent-cyan, #00e5ff);
  border: 1px solid rgba(0, 229, 255, 0.5);
}

.mdl-estimator__addon-tag:empty {
  display: none;
}

.mdl-estimator__addon.is-recommended {
  background: linear-gradient(135deg, rgba(255, 191, 0, 0.16), rgba(255, 191, 0, 0.08));
  box-shadow: 0 0 18px rgba(255, 191, 0, 0.24);
}

.mdl-estimator__addon.is-recommended .mdl-estimator__addon-tag {
  color: var(--mcd-accent-amber, #ffbf00);
  border-color: rgba(255, 191, 0, 0.7);
}

/* Summary side */

.mdl-estimator__summary-title {
  margin: 0 0 0.8rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--mcd-text-muted, #b8c8e8);
}

.mdl-estimator__totals {
  border-radius: 12px;
  background: rgba(4, 10, 24, 0.9);
  border: 1px solid rgba(0, 229, 255, 0.3);
  padding: 0.75rem 0.85rem;
  margin-bottom: 0.9rem;
}

.mdl-estimator__total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
}

.mdl-estimator__total-row + .mdl-estimator__total-row {
  margin-top: 0.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.4rem;
}

.mdl-estimator__total-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--mcd-text-muted, #b8c8e8);
}

.mdl-estimator__total-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--mcd-accent-cyan, #00e5ff);
  text-shadow: 0 0 12px rgba(0, 229, 255, 0.4), 0 1px 4px rgba(3, 8, 22, 0.35);
  transition: transform 0.2s ease, text-shadow 0.2s ease;
}

/* Animation when value changes */

.mdl-estimator__total-value.is-updating {
  animation: pulse-glow 0.4s ease-out;
}

@keyframes pulse-glow {
  0% {
    transform: scale(1);
    text-shadow: 0 0 12px rgba(0, 229, 255, 0.4), 0 1px 4px rgba(3, 8, 22, 0.35);
  }

  50% {
    transform: scale(1.08);
    text-shadow: 0 0 24px rgba(0, 229, 255, 0.8), 0 0 40px rgba(255, 0, 224, 0.4), 0 1px 4px rgba(3, 8, 22, 0.35);
  }

  100% {
    transform: scale(1);
    text-shadow: 0 0 12px rgba(0, 229, 255, 0.4), 0 1px 4px rgba(3, 8, 22, 0.35);
  }
}

.mdl-estimator__totals-note {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
  color: var(--mcd-text-muted, #b8c8e8);
}

.mdl-estimator__package-summary {
  margin-bottom: 0.9rem;
}

.mdl-estimator__package-blurb {
  margin: 0 0 0.4rem;
  font-size: 0.9rem;
  color: var(--mcd-text-medium, #e8f0ff);
}

.mdl-estimator__included {
  margin: 0;
  padding-left: 1rem;
  font-size: 0.8rem;
  color: var(--mcd-text-muted, #b8c8e8);
}

.mdl-estimator__included li + li {
  margin-top: 0.25rem;
}

.mdl-estimator__fine-print {
  margin: 0 0 0.9rem;
  font-size: 0.78rem;
  color: var(--mcd-text-muted, #b8c8e8);
}

.mdl-estimator__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  border: 2px solid rgba(0, 229, 255, 0.6);
  background:
    linear-gradient(140deg, rgba(255, 0, 224, 0.22), rgba(0, 229, 255, 0.25)),
    radial-gradient(circle at 18% 20%, rgba(255, 116, 228, 0.45), transparent 50%),
    radial-gradient(circle at 85% 80%, rgba(0, 229, 255, 0.3), transparent 50%),
    rgba(7, 14, 28, 0.95);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  text-decoration: none;
  box-shadow:
    0 20px 50px rgba(3, 9, 28, 0.75),
    0 0 32px rgba(0, 229, 255, 0.4),
    0 0 60px rgba(255, 0, 224, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  animation: cta-breathe 3s ease-in-out infinite;
}

@keyframes cta-breathe {
  0%, 100% {
    box-shadow:
      0 20px 50px rgba(3, 9, 28, 0.75),
      0 0 32px rgba(0, 229, 255, 0.4),
      0 0 60px rgba(255, 0, 224, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.15);
  }

  50% {
    box-shadow:
      0 20px 50px rgba(3, 9, 28, 0.75),
      0 0 40px rgba(0, 229, 255, 0.55),
      0 0 80px rgba(255, 0, 224, 0.35),
      inset 0 1px 0 rgba(255, 255, 255, 0.15);
  }
}

.mdl-estimator__cta::after {
  content: '→';
  font-size: 0.95rem;
  line-height: 1;
  color: var(--mcd-accent-cyan, #00e5ff);
  transition: transform 0.18s ease;
}

.mdl-estimator__cta:hover,
.mdl-estimator__cta:focus-visible {
  transform: translateY(-2px) scale(1.02);
  border-color: rgba(255, 116, 228, 0.7);
  box-shadow:
    0 24px 60px rgba(3, 9, 28, 0.8),
    0 0 45px rgba(0, 229, 255, 0.5),
    0 0 90px rgba(255, 0, 224, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  animation: none;
}

.mdl-estimator__cta:hover::after,
.mdl-estimator__cta:focus-visible::after {
  transform: translateX(3px);
}

/* CTA text variants for responsive */
.mdl-estimator__cta .cta-text--short {
  display: none;
}

.mdl-estimator__cta .cta-text--full {
  display: inline;
}

/* ROI hint */

.mdl-estimator__roi-hint {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.35rem;
  padding: 0.35rem 0.6rem;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.08), rgba(255, 0, 224, 0.05));
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 6px;
  font-size: 0.72rem;
  color: var(--mcd-text-medium, #e8f0ff);
}

.mdl-estimator__roi-hint svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  fill: var(--mcd-accent-cyan, #00e5ff);
}

/* FAQ accordion */

.mdl-estimator__faq {
  margin-top: 1rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.mdl-estimator__faq-title {
  margin: 0;
  padding: 0.6rem 0.75rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--mcd-text-muted, #b8c8e8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mdl-estimator__faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mdl-estimator__faq-item:last-child {
  border-bottom: none;
}

.mdl-estimator__faq-item summary {
  padding: 0.6rem 0.75rem;
  font-size: 0.8rem;
  color: var(--mcd-text-medium, #e8f0ff);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.15s ease;
}

.mdl-estimator__faq-item summary::-webkit-details-marker {
  display: none;
}

.mdl-estimator__faq-item summary::after {
  content: '+';
  font-size: 1rem;
  color: var(--mcd-accent-cyan, #00e5ff);
  transition: transform 0.2s ease;
}

.mdl-estimator__faq-item[open] summary::after {
  transform: rotate(45deg);
}

.mdl-estimator__faq-item summary:hover {
  background: rgba(255, 255, 255, 0.03);
}

.mdl-estimator__faq-answer {
  padding: 0 0.75rem 0.6rem;
  font-size: 0.78rem;
  color: var(--mcd-text-muted, #b8c8e8);
  line-height: 1.5;
}

/* Mini testimonial */

.mdl-estimator__testimonial {
  margin-top: 1rem;
  padding: 0.75rem;
  text-align: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.mdl-estimator__testimonial-stars {
  font-size: 0.85rem;
  color: #ffbf00;
  letter-spacing: 0.1em;
  margin-bottom: 0.35rem;
}

.mdl-estimator__testimonial-quote {
  margin: 0 0 0.25rem;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--mcd-text-medium, #e8f0ff);
}

.mdl-estimator__testimonial-author {
  margin: 0;
  font-size: 0.75rem;
  color: var(--mcd-text-muted, #b8c8e8);
}

/* Mobile tweaks */

@media (max-width: 899px) {
  .mdl-estimator__col--summary {
    /* Summary appears as final card on mobile - users configure first, then see total */
    order: 1;
    position: static;
    z-index: 1;
    margin: 1.5rem 0 2rem;
    padding: 1.25rem 1.25rem 1.5rem;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(5, 10, 24, 0.98), rgba(8, 16, 36, 0.95));
    border: 1px solid rgba(0, 229, 255, 0.3);
    box-shadow: 0 8px 32px rgba(3, 8, 22, 0.5);
  }

  /* CTA button - single line with arrow */
  .mdl-estimator__cta {
    display: inline-flex;
    width: auto;
    max-width: 100%;
    margin-inline: auto;
    padding: 1rem 2rem;
    font-size: 0.9rem;
    white-space: nowrap;
  }

  /* No extra padding needed since summary is inline now */

  .mdl-estimator__col--controls {
    padding-bottom: 0;
  }

  .mdl-estimator__inner {
    padding-inline: 1.25rem;
    padding-bottom: 0;
  }

  /* Collapse some summary content on mobile for compactness */

  .mdl-estimator__package-summary {
    display: none;
  }

  .mdl-estimator__fine-print {
    display: none;
  }

  .mdl-estimator__summary-title {
    font-size: 0.85rem;
    margin-bottom: 0.6rem;
  }

  /* Give compare grid higher z-index than sticky summary so it's clickable */

  .mdl-estimator__compare-grid {
    position: relative;
    z-index: 15;
    margin-bottom: 1rem;
  }

  /* When expanded, solid background with clear visual separation */

  .mdl-estimator__compare-grid[open] {
    background: linear-gradient(180deg, rgba(5, 10, 24, 0.99), rgba(8, 16, 36, 0.99));
    border-radius: 12px;
    padding: 0.75rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 229, 255, 0.2);
  }

  .mdl-estimator__compare-grid[open] .mdl-estimator__compare-table {
    margin-top: 0.5rem;
  }
}

/* Small mobile (phones < 480px) - add-on row stacking */

@media (max-width: 480px) {
  /* Stack add-on rows: checkbox+label on top, price below */
  .mdl-estimator__addon {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    padding: 0.4rem 0.5rem;
    gap: 0.4rem 0.5rem;
  }

  .mdl-estimator__addon-price {
    grid-column: 1 / -1;
    text-align: left;
    white-space: normal;
    padding-top: 0.15rem;
    font-size: 0.78rem;
  }

  /* Keep quantity wrapper inline with price */
  .mdl-estimator__addon-qty-wrap {
    display: inline-flex;
    margin-left: 0.5rem;
  }

  /* Slightly smaller group titles */
  .mdl-estimator__addon-group > summary {
    font-size: 0.8rem;
  }

  /* Tighter inner padding */
  .mdl-estimator__inner {
    padding-inline: 1rem;
  }

  /* Show short CTA text on small screens */
  .mdl-estimator__cta .cta-text--full {
    display: none;
  }

  .mdl-estimator__cta .cta-text--short {
    display: inline;
  }
}

/* Exit-intent modal */

.mdl-exit-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(3, 8, 22, 0.85);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mdl-exit-modal.is-visible {
  opacity: 1;
  visibility: visible;
}

.mdl-exit-modal__content {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 2rem;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(8, 16, 40, 0.98), rgba(16, 32, 72, 0.95));
  border: 1px solid rgba(0, 229, 255, 0.3);
  box-shadow:
    0 32px 80px rgba(3, 8, 22, 0.7),
    0 0 60px rgba(0, 229, 255, 0.15),
    0 0 120px rgba(255, 0, 224, 0.1);
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mdl-exit-modal.is-visible .mdl-exit-modal__content {
  transform: translateY(0) scale(1);
}

.mdl-exit-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--mcd-text-muted, #b8c8e8);
  font-size: 1.25rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.mdl-exit-modal__close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.mdl-exit-modal__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.2), rgba(255, 0, 224, 0.15));
  border: 1px solid rgba(0, 229, 255, 0.4);
}

.mdl-exit-modal__icon svg {
  width: 1.75rem;
  height: 1.75rem;
  fill: var(--mcd-accent-cyan, #00e5ff);
}

.mdl-exit-modal__title {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  font-weight: 700;
  text-align: center;
  color: var(--mcd-text-strong, #fff);
}

.mdl-exit-modal__subtitle {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  text-align: center;
  color: var(--mcd-text-muted, #b8c8e8);
}

.mdl-exit-modal__summary {
  margin-bottom: 1.25rem;
  padding: 0.75rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mdl-exit-modal__summary-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mcd-text-muted, #b8c8e8);
}

.mdl-exit-modal__summary-value {
  font-size: 0.85rem;
  color: var(--mcd-accent-cyan, #00e5ff);
}

.mdl-exit-modal__form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mdl-exit-modal__input {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(4, 10, 26, 0.9);
  color: #fff;
  font-size: 0.95rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mdl-exit-modal__input::placeholder {
  color: var(--mcd-text-muted, #b8c8e8);
}

.mdl-exit-modal__input:focus {
  outline: none;
  border-color: rgba(0, 229, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.15);
}

.mdl-exit-modal__submit {
  width: 100%;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  border: 2px solid rgba(0, 229, 255, 0.5);
  background: linear-gradient(140deg, rgba(255, 0, 224, 0.2), rgba(0, 229, 255, 0.2));
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.mdl-exit-modal__submit:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 116, 228, 0.6);
  box-shadow: 0 8px 24px rgba(0, 229, 255, 0.25), 0 0 40px rgba(255, 0, 224, 0.15);
}

.mdl-exit-modal__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.mdl-exit-modal__skip {
  margin-top: 0.5rem;
  padding: 0.5rem;
  border: none;
  background: transparent;
  color: var(--mcd-text-muted, #b8c8e8);
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.15s ease;
}

.mdl-exit-modal__skip:hover {
  color: #fff;
}

.mdl-exit-modal__success {
  display: none;
  text-align: center;
}

.mdl-exit-modal.is-success .mdl-exit-modal__form {
  display: none;
}

.mdl-exit-modal.is-success .mdl-exit-modal__success {
  display: block;
}

.mdl-exit-modal__success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(0, 229, 255, 0.15));
  border: 2px solid rgba(0, 255, 136, 0.5);
  font-size: 1.75rem;
}

.mdl-exit-modal__success-title {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--mcd-text-strong, #fff);
}

.mdl-exit-modal__success-text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--mcd-text-muted, #b8c8e8);
}

/* ───────────────────────────────────────────────────────────
   Inline Site Care Upsell (integrated into Launch Build card)
─────────────────────────────────────────────────────────── */

.mdl-estimator__package-card-group {
  display: contents; /* Let children flow normally in packages grid */
}

.mdl-estimator__inline-upsell {
  margin-top: 0.65rem;
  padding-top: 0;
}

.mdl-estimator__inline-upsell-divider {
  height: 1px;
  margin-bottom: 0.6rem;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 191, 0, 0.5) 20%,
    rgba(255, 191, 0, 0.5) 80%,
    transparent
  );
}

.mdl-estimator__inline-upsell-content {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.mdl-estimator__inline-upsell-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: rgba(255, 191, 0, 0.15);
  color: var(--mcd-accent-amber, #ffbf00);
}

.mdl-estimator__inline-upsell-icon svg {
  width: 14px;
  height: 14px;
  stroke: currentcolor;
}

.mdl-estimator__inline-upsell-text {
  flex: 1;
  min-width: 0;
}

.mdl-estimator__inline-upsell-title {
  margin: 0 0 0.15rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--mcd-accent-amber, #ffbf00);
}

.mdl-estimator__inline-upsell-note {
  margin: 0;
  font-size: 0.75rem;
  color: var(--mcd-text-muted, #b8c8e8);
  line-height: 1.35;
}

.mdl-estimator__inline-upsell-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.mdl-estimator__inline-upsell-yes,
.mdl-estimator__inline-upsell-skip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  border: none;
}

.mdl-estimator__inline-upsell-yes {
  background: linear-gradient(135deg, rgba(255, 191, 0, 0.9), rgba(255, 140, 0, 0.9));
  color: #0a0a14;
  box-shadow: 0 4px 12px rgba(255, 191, 0, 0.25);
}

.mdl-estimator__inline-upsell-yes:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(255, 191, 0, 0.35);
}

.mdl-estimator__inline-upsell-yes svg {
  width: 12px;
  height: 12px;
  stroke: currentcolor;
}

.mdl-estimator__inline-upsell-skip {
  background: transparent;
  color: var(--mcd-text-muted, #b8c8e8);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.mdl-estimator__inline-upsell-skip:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--mcd-text-medium, #e8f0ff);
}

/* When Launch Build is selected, add a subtle glow to indicate the upsell is active */

.mdl-estimator__package input[type="radio"]:checked + .mdl-estimator__package-body .mdl-estimator__inline-upsell:not([hidden]) {
  animation: upsell-attention 0.4s ease-out;
}

@keyframes upsell-attention {
  0% {
    opacity: 0;
    transform: translateY(-4px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Legacy upsell styles - hide on new layout but keep for backwards compatibility */

.mdl-estimator__upsell {
  display: none;
}



