/* ============================================================
   ECOMMERCE CSS — Optimized & Maintainable
   ============================================================
   Structure:
   1.  Custom Properties (Design Tokens)
   2.  Font Import
   3.  Container & Layout System
   4.  Typography Utilities
   5.  Buttons
   6.  Header
   7.  Steps Navigation
   8.  Zip Code Form
   9.  Services & Addons — Cards Grid
   10. Services & Addons — Card States (hover / active / selected)
   11. Addons v2 — Radio Options
   12. Step Three — Checkout / Payment
   13. Payment Toggle
   14. Mobile Phone Button
   15. Footer
   16. Responsive — Breakpoints
   ============================================================ */


/* ============================================================
   1. CUSTOM PROPERTIES (DESIGN TOKENS)
   ============================================================ */
:root {
  /* --- Brand Colors --- */
  --color-red: #cb171e;
  /* Primary brand red */
  --color-red-dark: #9d1117;
  /* Hover / darker red */
  --color-red-svg: #cb171c;
  /* SVG fill (slightly different) */
  --color-red-stroke: #ec6268;
  /* SVG shield stroke */
  --color-red-alpha: rgba(203, 23, 30, 0.05);
  /* Subtle tint for hover bg */
  --color-red-muted: #f8f8f8;
  /* Payment btn hover bg */

  /* Alias so existing --moshield-* vars work without touching HTML/JS */
  --moshield-red: var(--color-red);
  --moshield-brown: #3b2314;
  /* Adjust if your token differs */

  /* --- Neutrals --- */
  --color-white: #ffffff;
  --color-dark: #333333;
  --color-dark-alt: #333335;
  /* Summary box / total bg */
  --color-gray: #757575;
  /* Step inactive */
  --color-gray-light: #c2c2c2;
  /* Step divider */
  --color-border: #dddddd;
  /* Input / card borders */
  --color-placeholder: #999999;

  /* --- Typography --- */
  --font-primary: "Roboto", sans-serif;
  --font-display: "Barlow", sans-serif;

  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-md: 18px;
  --text-lg: 20px;
  --text-xl: 22px;
  --text-2xl: 24px;
  --text-3xl: 30px;
  --text-4xl: 34px;
  --text-5xl: 44px;
  --text-6xl: 50px;

  /* --- Spacing Scale --- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-14: 56px;
  --space-16: 64px;
  --space-20: 80px;

  /* --- Border Radius --- */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* --- Transitions --- */
  --transition-fast: all 0.2s ease;
  --transition-normal: all 0.3s ease;
  --transition-slide: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* --- Shadows --- */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);

  /* --- Container --- */
  --container-max: 1660px;
  --container-max-wide: 1500px;
  --container-max-services: 1400px;
  --container-max-form: 860px;
  --container-max-zip: 800px;
  --container-padding: 30px;
  --container-padding-mobile: 15px;

  /* --- Grid --- */
  --grid-gap: 25px;
  --grid-gap-sm: 20px;
  --card-min-width: 280px;
  --card-max-width: 350px;

  /*
   * min-width compacto para el rango de tablet 768–900px.
   * Garantiza que 3 cards quepan en una fila desde 768px:
   *   3 × 200px + 2 × 20px gaps = 640px < ~730px disponibles ✓
   * El valor base (280px) causaba desbordamiento a 2 filas.
   */
  --card-min-width-tablet: 200px;

  /*
   * Ancho calculado para layout de 3 columnas en el rango 901px–1300px
   * (tablets grandes como iPad Pro M4 1152px y Galaxy Tab S9 1120px).
   * Fórmula: (100% - 2 × gap) / 3
   *   A 1100px disponibles: (1100 - 50) / 3 ≈ 350px → el texto "Billed One Time"
   *   cabe en 2 líneas sin problemas. ✓
   * Se usa como flex-basis en el breakpoint correspondiente.
   */
  --card-flex-basis-mid: calc((100% - 2 * var(--grid-gap)) / 3);


}


/* ============================================================
   2. FONT IMPORT
   ============================================================ */
@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");


/* ============================================================
   3. CONTAINER & LAYOUT SYSTEM
   ============================================================ */

/* Base content container */
.ecommerce-content {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

/* Narrower variants */
.ecommerce-content--wide {
  max-width: var(--container-max-wide);
}

.ecommerce-content--services {
  max-width: var(--container-max-services);
}

.ecommerce-content--form {
  max-width: var(--container-max-form);
}

/* ============================================================
   4. RESPONSIVE GRID UTILITIES
   ============================================================ */

/* Auto-fit grid: adapts column count based on min card width */
.grid-auto {
  display: grid;
  gap: var(--grid-gap);
  grid-template-columns: repeat(auto-fit, minmax(var(--card-min-width), 1fr));
}

/* Fixed column grids */
.grid-2 {
  display: grid;
  gap: var(--grid-gap-sm);
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  display: grid;
  gap: var(--grid-gap-sm);
  grid-template-columns: repeat(3, 1fr);
}

/* Responsive collapse */
@media (max-width: 768px) {

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}


/* ============================================================
   5. BUTTONS
   ============================================================ */

/* --- Shared button base --- */
.main-btn,
.alt-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: var(--radius-lg) 0 var(--radius-lg) 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  transition: var(--transition-normal);
  cursor: pointer;
}

.main-btn {
  background-color: var(--color-red);
  color: var(--color-white);
}

.main-btn:hover {
  border-radius: 0 var(--radius-lg) 0 var(--radius-lg);
  background-color: var(--color-red-dark);
  color: var(--color-white);
}

.alt-btn {
  border: 2px solid black;
  background-color: var(--color-white);
  color: black;
}

.alt-btn:hover {
  border-radius: 0 var(--radius-lg) 0 var(--radius-lg);
  background-color: black;
  color: var(--color-white);
}

/* --- Red filled button (compact) --- */
.red-btn {
  display: inline-block;
  margin: 0 0 5px;
  padding: 18px 20px;
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.5px;
  text-align: center;
  border: 2px solid var(--color-red);
  border-radius: var(--radius-sm);
  background: var(--color-red);
  color: var(--color-white);
  transition: var(--transition-fast);
  cursor: pointer;
}

.red-btn:hover {
  background-color: var(--color-red-dark);
  border-color: var(--color-red-dark);
  box-shadow: none;
  transform: none;
}

/* Disabled state for the Step 3 submit button —
   shown when required fields are still empty. */
#stepThree .submit-checkout:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* --- Bordered red button --- */
.bordered-red-btn {
  display: inline-block;
  margin: 0 5px 5px 0;
  padding: 10.5px 56px;
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.5px;
  text-align: center;
  border: 2px solid var(--color-red);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  color: var(--color-red);
  transition: var(--transition-fast);
  cursor: pointer;
}

.bordered-red-btn:hover {
  background-color: var(--color-red-dark);
  border-color: var(--color-red-dark);
  box-shadow: none;
  transform: none;
  color: var(--color-white);
}

/* --- Continue to Checkout button wrapper ---
 *
 * Always appended to #stepTwo (after all service/addon containers).
 * Mirrors the max-width and centering of #moshieldServices so that
 * _alignContinueButton can use containerRect.right from this wrapper
 * and it will match the right edge of the cards grid.
 *
 * On desktop/tablet: justify-content is overridden inline by JS to
 * flex-end + paddingRight so the button aligns with the last card's
 * right edge.
 * On mobile (<=768px): JS centres the button instead.
 */
.continue-btn-wrapper {
  display: flex;
  width: 100%;
  max-width: var(--container-max-services);
  margin-inline: auto;
  padding-inline: var(--container-padding);
  margin-top: var(--space-5);
  margin-bottom: var(--space-10);
  justify-content: flex-end;
}

@media (max-width: 768px) {
  .continue-btn-wrapper {
    justify-content: center;
    padding-inline: var(--container-padding-mobile);
  }
}

/* --- Checkout CTA button --- */
#continueToStepThree {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 0 40px;
  height: 53px;
  border: none;
  border-radius: 10px;
  background: var(--color-red);
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  cursor: pointer;
  transition: none;
}

#continueToStepThree:hover {
  background-color: var(--color-red-dark);
}

/* --- Payment option button --- */
.payment-option-btn {
  display: block;
  width: 100%;
  max-width: 200px;
  height: 45px;
  margin: 15px auto;
  padding: 12px 20px;
  border: 2px solid var(--color-red);
  border-radius: var(--space-5);
  background: var(--color-white);
  color: var(--color-red);
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-normal);
}

.payment-option-btn:hover {
  background: var(--color-red-muted);
  border-color: var(--color-red-dark);
}

.payment-option-btn.selected {
  background: var(--color-red);
  color: var(--color-white);
  border-color: var(--color-red);
}

.payment-option-btn.selected:hover {
  background: var(--color-red-dark);
  border-color: var(--color-red-dark);
}

/* Checkout arrow icon */
.checkout-arrow-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 35px !important;
  height: 26px !important;
}


/* ============================================================
   6. HEADER
   ============================================================ */
#ecommerceHeader .red-line {
  background-color: var(--color-red);
  height: var(--space-8);
}

#ecommerceHeader .nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 25px 0;
}


/* ============================================================
   7. STEPS NAVIGATION
   ============================================================ */
#stepsHeader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
  margin: 50px 0;
}

#stepsHeader .step {
  display: flex;
  align-items: center;
  gap: 10px;
}

#stepsHeader .step .step-number {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-gray);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: var(--color-gray);
  font-weight: 600;
  transition: var(--transition-normal);
}

#stepsHeader .step .step-text {
  color: var(--color-gray);
  font-weight: 600;
  transition: var(--transition-normal);
}

#stepsHeader .step.active .step-number {
  background-color: var(--color-red);
  border-color: var(--color-red);
  color: var(--color-white);
}

#stepsHeader .step.active .step-text {
  color: var(--color-red);
}

#stepsHeader .divider {
  width: 100px;
  height: 2px;
  background-color: var(--color-gray-light);
}

/* Steps container */
#stepsContainer {
  margin-bottom: 50px;
}

#stepsContainer .step-page {
  display: none;
}

#stepsContainer .step-page.active {
  display: block;
}

#stepsContainer .step-page .step-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 80px;
}

#stepsContainer .step-page .step-info-row:last-child {
  margin-bottom: 0;
}

#stepsContainer .step-page .step-info-row .step-info-content {
  width: calc(40% - 15px);
}

#stepsContainer .step-page .step-info-row .step-info-content h2 {
  margin-bottom: 30px;
  font-size: var(--text-6xl);
}

#stepsContainer .step-page .step-info-row .step-info-content h2 .accented,
#zipCodeForm .two-columns .content h3 .accented {
  color: var(--color-red);
}

#stepsContainer .step-page .step-info-row .step-info-content .description {
  font-size: var(--text-xl);
}

#stepsContainer .step-page .step-info-row .step-info-content .cta-buttons {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin-top: 30px;
}

#stepsContainer .step-page .step-info-row .step-info-content .cta-buttons .main-btn {
  width: -moz-available;
  width: -webkit-fill-available;
}

#stepsContainer .step-page .step-info-row .step-info-content .contact-link {
  color: black;
  text-decoration: underline;
}

#stepsContainer .step-page .step-info-row .step-info-img {
  width: calc(50% - 15px);
}

#stepsContainer .step-page .step-info-row .step-info-img img {
  width: 100%;
  max-width: 100%;
  border-radius: var(--radius-sm);
}


/* ============================================================
   8. ZIP CODE FORM
   ============================================================ */
#zipCodeForm {
  width: 100%;
  max-width: var(--container-max-zip);
  margin: var(--space-10) auto var(--space-20);
}

#zipCodeForm.full {
  max-width: var(--container-max-wide);
}

#zipCodeForm h2 {
  margin-bottom: 25px;
  font-size: var(--text-3xl);
}

#zipCodeForm .form {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

#zipCodeForm .form input {
  flex: 1;
  /*
 * flex: 1 makes the input take up all available width inside the .form
 * after the Submit button, at any screen size.
 * Without this, the input only keeps its intrinsic width (very small).
   */
  margin: 0;
}

#zipCodeForm .two-columns {
  display: flex;
  gap: 60px;
}

#zipCodeForm .two-columns .content {
  width: calc(40% - 30px);
}

#zipCodeForm .two-columns .content h3 {
  margin-bottom: 30px;
  font-size: var(--text-5xl);
}

#zipCodeForm .two-columns .content .form {
  margin-bottom: var(--space-5);
}

#zipCodeForm .two-columns .content .zip-description {
  font-size: var(--text-xl);
}

#zipCodeForm .two-columns .image {
  width: calc(60% - 30px);
}

#zipCodeForm .two-columns .image img {
  width: 100%;
}

/*
 * zip-entry
 *
 * Centered block that contains the title "Enter Your Zip Code.",
 * the input, and the Submit button. It lives outside of .two-columns
 * to decouple it from the column width (40%) and allow it to be
 * centered independently within the container.
 *
 * max-width uses --container-max-form (860px) so the form
 * does not stretch too much on large screens, matching the rest
 * of the forms in the checkout flow.
 */
#zipCodeForm .zip-entry {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: var(--container-max-form);
  margin-inline: auto;
  margin-bottom: var(--space-8);
}

/*
 * The .form inside .zip-entry needs an explicit width: 100% because
 * the parent is a flex column with align-items: center, which causes
 * children to shrink to their minimum content width instead of
 * expanding to the available width of the container.
 */
#zipCodeForm .zip-entry .form {
  width: 100%;
}


/* ============================================================
   9. SERVICES & ADDONS — CARDS GRID
   ============================================================
   Using :is() to collapse the 4-selector repetition pattern:
   (#moshieldServices / #moshieldAddons) × (.services-section / .addons-section)
   ============================================================ */

:is(#moshieldServices, #moshieldAddons, #moshieldAddonsv2) {
  width: 100%;
  max-width: var(--container-max-services);
  margin: var(--space-10) auto var(--space-20);
}

:is(#moshieldServices, #moshieldAddons, #moshieldAddonsv2) :is(.services-section, .addons-section) .title-zip {
  margin-bottom: 25px;
  font-size: var(--text-3xl);
}

:is(#moshieldServices, #moshieldAddons) :is(.services-section, .addons-section) .title-zip {
  text-align: left;
}

/*
 * "ADD-ONS AVAILABLE" TITLE ALIGNMENT — version 2 (radio-buttons)
 * ──────────────────────────────────────────────────────────────────
 * Problem: the title inherits a margin-left calculated for the cards-grid.
 * In .addons-section there is no cards-grid — instead there is .addons-radio-group
 * with max-width: 600px and margin: 0 auto, whose left edge varies with the viewport.
 *
 * Solution: convert .addons-section into a centered flex column.
 *   - .addons-radio-group (max-width: 600px) is centered as a child block.
 *   - .title-zip with align-self: flex-start anchors to the left edge
 *     of the centered area → always aligned with the radio-group, at any
 *     viewport, without calculating offsets or touching breakpoints.
 *
 * ID + class specificity > previous :is() rule → wins without !important.
 */
#moshieldAddons .addons-section {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#moshieldAddons .addons-section .title-zip {
  width: 100%;
  max-width: 600px;
  margin-left: 0;
  align-self: flex-start;
  text-align: left;
}

#moshieldAddons .addons-section .addons-radio-group {
  align-self: center;
}

/* --- Cards grid container --- */
:is(#moshieldServices, #moshieldAddons) :is(.services-section, .addons-section) .cards-grid {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--grid-gap);
}

/* --- Individual card --- */
/*
 * We use calc(33.33% - 17px) as the base width for 3 columns:
 *   3 × (33.33% - 17px) + 2 × 25px gap ≈ 100% ✓
 * The previous value calc(25% - 18.75px) was a 4-column formula
 * that produced cards that were too narrow, causing "Billed One Time"
 * to wrap into 3 lines on large tablets (iPad Pro M4, Galaxy Tab S9).
 */
:is(#moshieldServices, #moshieldAddons) :is(.services-section, .addons-section) .cards-grid .card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: calc(33.33% - 17px);
  padding-bottom: 1.25rem;
  border: 2px solid var(--color-red);
  border-radius: var(--radius-md);
  background-color: var(--color-white);
  font-family: var(--font-primary);
  overflow: hidden;
  transition: var(--transition-normal);
}

/* --- Card inner elements --- */
:is(#moshieldServices, #moshieldAddons) :is(.services-section, .addons-section) .cards-grid .card .card-header {
  border: 0;
  background-color: var(--color-white);
  transition: var(--transition-normal);
}

:is(#moshieldServices, #moshieldAddons) :is(.services-section, .addons-section) .cards-grid .card .card-header .header-title {
  display: flex;
  align-items: center;
  gap: 25px;
}

:is(#moshieldServices, #moshieldAddons) :is(.services-section, .addons-section) .cards-grid .card .card-header .mosquito-title {
  font-size: 30px;
  font-weight: 600;
  line-height: 36px;
  border: 0;
}

:is(#moshieldServices, #moshieldAddons) :is(.services-section, .addons-section) .cards-grid .card .description {
  margin: 25px 0;
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: var(--text-xl);
  line-height: var(--text-xl);
  transition: var(--transition-fast);
}

:is(#moshieldServices, #moshieldAddons) :is(.services-section, .addons-section) .cards-grid .card .features {
  font-size: var(--text-md);
  line-height: 20px;
  transition: var(--transition-fast);
}

:is(#moshieldServices, #moshieldAddons) :is(.services-section, .addons-section) .cards-grid .card .features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

:is(#moshieldServices, #moshieldAddons) :is(.services-section, .addons-section) .cards-grid .card .features li .check-icon {
  flex-shrink: 0;
  width: 25px;
  height: 28px;
}

:is(#moshieldServices, #moshieldAddons) :is(.services-section, .addons-section) .cards-grid .card .features li .check-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

:is(#moshieldServices, #moshieldAddons) :is(.services-section, .addons-section) .cards-grid .card .features li .feature-text {
  flex: 1;
  font-family: var(--font-primary);
}

/* --- Price section --- */
:is(#moshieldServices, #moshieldAddons) :is(.services-section, .addons-section) .cards-grid .card .price-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
  margin: 25px 0;
  padding: 0 1.25rem;
  color: var(--color-red);
  transition: var(--transition-fast);
}

:is(#moshieldServices, #moshieldAddons) :is(.services-section, .addons-section) .cards-grid .card .price-section .price {
  font-size: var(--text-4xl);
  line-height: 32px;
}

:is(#moshieldServices, #moshieldAddons) :is(.services-section, .addons-section) .cards-grid .card .price-section .billing {
  font-size: var(--text-sm);
  line-height: var(--text-sm);
  transition: var(--transition-fast);
}

/* --- Card button --- */
:is(#moshieldServices, #moshieldAddons) :is(.services-section, .addons-section) .cards-grid .card .red-btn {
  width: calc(100% - 2.5rem);
  margin: 0 1.25rem;
}

/* --- SVG icons --- */
:is(#moshieldServices, #moshieldAddons) :is(.services-section, .addons-section) .cards-grid .card .icon-shield svg {
  width: 60px;
}

:is(#moshieldServices, #moshieldAddons) :is(.services-section, .addons-section) .cards-grid .card .icon-shield svg path {
  fill: var(--color-white);
  transition: fill 0.2s, stroke 0.2s;
}

:is(#moshieldServices, #moshieldAddons) :is(.services-section, .addons-section) .cards-grid .card .icon-shield svg path.bug {
  fill: var(--color-white);
  transition: fill 0.2s, stroke 0.2s;
}

:is(#moshieldServices, #moshieldAddons) :is(.services-section, .addons-section) .cards-grid .card .icon-shield svg path.shield,
:is(#moshieldServices, #moshieldAddons) :is(.services-section, .addons-section) .cards-grid .card .icon-shield svg path:first-child {
  fill: var(--color-red-svg);
  stroke: var(--color-red-stroke);
  transition: fill 0.2s, stroke 0.2s;
}

/* ============================================================
   10. CARD STATES — HOVER / ACTIVE / SELECTED
   ============================================================ */

/* Card background & text color */
@media (hover: hover) {
  :is(#moshieldServices, #moshieldAddons) :is(.services-section, .addons-section) .cards-grid .card:is(:hover, :focus) {
    background-color: var(--color-red);
    color: var(--color-white);
  }
}

:is(#moshieldServices, #moshieldAddons) :is(.services-section, .addons-section) .cards-grid .card:is(.active, .selected) {
  background-color: var(--color-red);
  color: var(--color-white);
}

/* Card header */
@media (hover: hover) {
  :is(#moshieldServices, #moshieldAddons) :is(.services-section, .addons-section) .cards-grid .card:is(:hover, :focus) .card-header {
    background-color: var(--color-red);
    color: var(--color-white);
  }
}

:is(#moshieldServices, #moshieldAddons) :is(.services-section, .addons-section) .cards-grid .card:is(.active, .selected) .card-header {
  background-color: var(--color-red);
  color: var(--color-white);
}

/* Description, features, price-section, billing */
@media (hover: hover) {
  :is(#moshieldServices, #moshieldAddons) :is(.services-section, .addons-section) .cards-grid .card:is(:hover, :focus) :is(.description, .features, .price-section) {
    color: var(--color-white);
  }

  :is(#moshieldServices, #moshieldAddons) :is(.services-section, .addons-section) .cards-grid .card:is(:hover, :focus) .price-section .billing {
    color: var(--color-white);
  }
}

:is(#moshieldServices, #moshieldAddons) :is(.services-section, .addons-section) .cards-grid .card:is(.active, .selected) :is(.description, .features, .price-section) {
  color: var(--color-white);
}

:is(#moshieldServices, #moshieldAddons) :is(.services-section, .addons-section) .cards-grid .card:is(.active, .selected) .price-section .billing {
  color: var(--color-white);
}

/* Check icon SVG paths */
@media (hover: hover) {
  :is(#moshieldServices, #moshieldAddons) :is(.services-section, .addons-section) .cards-grid .card:is(:hover, :focus) .check-icon svg path {
    fill: var(--color-white);
  }
}

:is(#moshieldServices, #moshieldAddons) :is(.services-section, .addons-section) .cards-grid .card:is(.active, .selected) .check-icon svg path {
  fill: var(--color-white);
}

/* Shield icon: invert on hover/active */
@media (hover: hover) {
  :is(#moshieldServices, #moshieldAddons) :is(.services-section, .addons-section) .cards-grid .card:is(:hover, :focus) .icon-shield svg path:is(.bug) {
    fill: var(--color-red-svg);
  }

  :is(#moshieldServices, #moshieldAddons) :is(.services-section, .addons-section) .cards-grid .card:is(:hover, :focus) .icon-shield svg path:first-child {
    fill: var(--color-white);
    stroke: #dedede;
  }
}

:is(#moshieldServices, #moshieldAddons) :is(.services-section, .addons-section) .cards-grid .card:is(.active, .selected) .icon-shield svg path.bug {
  fill: var(--color-red-svg);
}

:is(#moshieldServices, #moshieldAddons) :is(.services-section, .addons-section) .cards-grid .card:is(.active, .selected) .icon-shield svg path:first-child {
  fill: var(--color-white);
  stroke: #dedede;
}

/* Red button inside card — active/hover states */
@media (hover: hover) {
  :is(#moshieldServices, #moshieldAddons) :is(.services-section, .addons-section) .cards-grid .card:is(:hover, :focus) .red-btn {
    background-color: var(--color-red-dark);
    border-color: var(--color-red-dark);
    box-shadow: none;
    transform: none;
    color: var(--color-white);
  }

  :is(#moshieldServices, #moshieldAddons) :is(.services-section, .addons-section) .cards-grid .card:is(:hover, :focus) .red-btn:hover {
    background-color: var(--color-white);
    color: var(--color-red);
  }
}

:is(#moshieldServices, #moshieldAddons) :is(.services-section, .addons-section) .cards-grid .card:is(.active, .selected) .red-btn {
  background-color: var(--color-red-dark);
  border-color: var(--color-red-dark);
  box-shadow: none;
  transform: none;
  color: var(--color-white);
}

:is(#moshieldServices, #moshieldAddons) :is(.services-section, .addons-section) .cards-grid .card:is(.active, .selected) .red-btn:hover {
  background-color: var(--color-white);
  color: var(--color-red);
}


/* ============================================================
   11. ADDONS V2 — RADIO OPTIONS
   ============================================================ */
:is(#moshieldAddonsv2, #moshieldAddons) .addons-radio-group {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 600px;
  margin: 0 auto;
}

:is(#moshieldAddonsv2, #moshieldAddons) .addon-radio-option {
  position: relative;
  display: flex;
  align-items: center;
  padding: var(--space-5);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  background-color: var(--color-white);
  cursor: pointer;
  transition: var(--transition-normal);
}

:is(#moshieldAddonsv2, #moshieldAddons) .addon-radio-option:hover {
  border-color: #999;
}

:is(#moshieldAddonsv2, #moshieldAddons) .addon-radio-option.selected {
  border-color: var(--color-red);
}

:is(#moshieldAddonsv2, #moshieldAddons) .addon-radio-input {
  position: relative;
  width: 20px;
  height: 20px;
  margin: 0 15px 0 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: 2px solid var(--color-border);
  border-radius: 50%;
  background-color: var(--color-white);
  transition: var(--transition-normal);
  flex-shrink: 0;
}

:is(#moshieldAddonsv2, #moshieldAddons) .addon-radio-input:hover {
  border-color: #999;
}

:is(#moshieldAddonsv2, #moshieldAddons) .addon-radio-input:checked {
  border-color: var(--color-red);
  background-color: var(--color-white);
}

:is(#moshieldAddonsv2, #moshieldAddons) .addon-radio-input:checked::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--color-red);
}

:is(#moshieldAddonsv2, #moshieldAddons) .addon-radio-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  cursor: pointer;
  margin: 0;
}

:is(#moshieldAddonsv2, #moshieldAddons) .addon-info {
  flex: 1;
}

:is(#moshieldAddonsv2, #moshieldAddons) .addon-name {
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: var(--space-1);
  font-family: var(--font-primary);
}

:is(#moshieldAddonsv2, #moshieldAddons) .addon-subtitle {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-dark);
  font-family: var(--font-primary);
}

:is(#moshieldAddonsv2, #moshieldAddons) .addon-price-info {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

:is(#moshieldAddonsv2, #moshieldAddons) .addon-price {
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--color-red);
  font-family: var(--font-primary);
}


/* ============================================================
   12. STEP THREE — CHECKOUT / PAYMENT
   ============================================================ */
#stepThree {
  width: 100%;
  max-width: var(--container-max-form);
  margin: var(--space-10) auto 0;
}

#stepThree.full {
  max-width: var(--container-max-wide);
}

#stepThree h2 {
  margin-bottom: 25px;
  font-size: var(--text-3xl);
}

#stepThree h4 {
  margin-bottom: 25px;
}

/* Form groups */
#stepThree .form .form-group {
  margin-bottom: var(--space-5);
}

#stepThree .form .form-group label {
  display: block;
  margin-bottom: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-dark);
}

/* All input types — consolidated with :is() */
#stepThree .form .form-group :is(input[type="text"], input[type="password"], input[type="color"],
  input[type="date"], input[type="datetime"], input[type="datetime-local"],
  input[type="email"], input[type="number"], input[type="range"],
  input[type="search"], input[type="tel"], input[type="time"],
  input[type="url"], input[type="month"], input[type="week"],
  textarea, input, select) {
  width: 100%;
  margin-bottom: 0;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background-color: var(--color-white);
  font-size: var(--text-sm);
  transition: border-color 0.3s;
}

#stepThree .form .form-group :is(input[type="text"]::placeholder, input[type="password"]::placeholder,
  input[type="email"]::placeholder, input[type="number"]::placeholder,
  input[type="tel"]::placeholder, input[type="url"]::placeholder,
  textarea::placeholder, input::placeholder, select::placeholder) {
  color: var(--color-placeholder);
}

#stepThree .form .form-group :is(input[type="text"]:focus, input[type="password"]:focus,
  input[type="color"]:focus, input[type="date"]:focus,
  input[type="datetime"]:focus, input[type="datetime-local"]:focus,
  input[type="email"]:focus, input[type="number"]:focus,
  input[type="range"]:focus, input[type="search"]:focus,
  input[type="tel"]:focus, input[type="time"]:focus,
  input[type="url"]:focus, input[type="month"]:focus,
  input[type="week"]:focus, textarea:focus, input:focus, select:focus) {
  outline: none;
  border-color: var(--color-red);
}

/* Radio group */
#stepThree .form .form-group .radio-group {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 15px;
}

#stepThree .form .form-group .radio-group input[type="radio"] {
  width: auto;
}

#stepThree .form .form-group .radio-group label {
  margin: 0;
}

/* Grid layouts */
#stepThree .form .two-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}

#stepThree .form .three-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

/* Payment section */
#stepThree .form .payment-section {
  display: flex;
  gap: 60px;
}

#stepThree .form .payment-section .content {
  width: calc(66.6666% - 30px);
}

#stepThree .form .payment-section .image {
  width: calc(33.3333% - 30px);
}

#stepThree .form .payment-section .image img {
  width: 100%;
}

#stepThree .form .payment-section .content :is(.red-btn, .bordered-red-btn) {
  width: 100%;
  margin-bottom: var(--space-5);
  padding: 12px 20px;
}

#stepThree .form .payment-section .content .red-btn {
  margin-bottom: 0;
}

/*
 * Payment Information header — title + billing checkbox
 *
 * Mobile-first design: column layout by default on all viewports.
 * Only on wide desktops (≥1301px) it switches to a row layout (h4 on the left,
 * checkbox on the right) — see the @media block at the end of the file.
 * 1301px threshold: at that width column-2 measures ≥496px, which is enough
 * space for h4 (~200px) + gap + checkbox without overflow.
 */
#stepThree .form .payment-info-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

#stepThree .form .payment-info-header h4 {
  margin-bottom: 0;
}

#stepThree .form .payment-icons {
  margin-bottom: var(--space-5);
}

/* Checkbox */
#stepThree .form .checkbox-label {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: var(--space-1);
}

#stepThree .form .checkbox-label label {
  margin: 0;
  font-size: var(--text-sm);
}

/* Summary box */
#stepThree .form .summary-box {
  margin-bottom: var(--space-5);
  border: 2px solid var(--color-dark-alt);
  border-radius: var(--radius-md);
}

#stepThree .form .summary-box .summary-title {
  margin-bottom: 0;
  padding: 20px 20px 10px;
  font-size: var(--text-md);
}

#stepThree .form .summary-box .summary-items {
  padding: 5px 20px;
}

#stepThree .form .summary-box .summary-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#stepThree .form .summary-box .summary-tax {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 20px;
}

#stepThree .form .summary-box .summary-subtotal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 20px;
}

#stepThree .form .summary-box .summary-addons .addon-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 20px;
}

#stepThree .form .summary-box .summary-addons .addon-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

#stepThree .form .summary-box .summary-service .service-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 20px;
}

#stepThree .form .summary-box .summary-service .service-price {
  display: flex;
  align-items: center;
  gap: 10px;
}

#stepThree .form .summary-box .summary-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px 20px;
  background-color: var(--color-dark-alt);
  color: var(--color-white);
  font-weight: 600;
}

#stepThree .form .summary-box .summary-plan {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px 20px;
  background-color: var(--color-dark-alt);
  color: var(--color-white);
  font-weight: 600;
}

#stepThree .form .summary-box .payment-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 20px;
}

#stepThree .form .summary-box .payment-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Search within form */
#stepThree .form .search-wrapper {
  position: relative;
}

/* ------ styles input google addres */

#checkoutForm .form-group .search-wrapper {
  position: relative;
  background: transparent !important;
  color-scheme: light !important;
  overflow: visible !important;
}

/* Host of the component */
#checkoutForm .form-group .search-wrapper gmp-place-autocomplete {
  color-scheme: light !important;
  width: 100%;
  display: block;
  font-family: inherit !important;
  overflow: visible !important;
}

/* Internal container using ::part() - DEFAULT GRAY BORDER */
#checkoutForm .form-group .search-wrapper gmp-place-autocomplete::part(input-container) {
  background: #fff !important;
  border: 1px solid #D9D9D9 !important;
  border-radius: 6px !important;
  outline: none !important;
  box-shadow: none !important;
  transition: border-color 0.2s ease !important;
}

/* Container in focus - RED BORDER */
#checkoutForm .form-group .search-wrapper gmp-place-autocomplete::part(input-container):focus-within {
  border-color: var(--color-red, #CB171E) !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Internal input using ::part() */
#checkoutForm .form-group .search-wrapper gmp-place-autocomplete::part(input) {
  width: 100% !important;
  height: 54px !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 0 0px 0 5px !important;
  font-family: inherit !important;
  font-size: var(--text-sm, 14px) !important;
  font-weight: 300 !important;
  color: #111 !important;
  -webkit-tap-highlight-color: transparent;
}

/* Internal input in focus. */
#checkoutForm .form-group .search-wrapper gmp-place-autocomplete::part(input):focus {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}

/* Host - apply borders here as a fallback */
#checkoutForm .form-group .search-wrapper gmp-place-autocomplete {
  background: #fff !important;
  border: 1px solid #D9D9D9 !important;
  border-radius: 6px !important;
  outline: none !important;
  box-shadow: none !important;
  font-size: var(--text-sm, 14px) !important;
  font-weight: 300 !important;
  transition: border-color 0.2s ease;
}

/* Host in focus */
#checkoutForm .form-group .search-wrapper gmp-place-autocomplete:focus-within {
  border-color: var(--color-red, #CB171E) !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Internal input (if accessible) */
#checkoutForm .form-group .search-wrapper gmp-place-autocomplete input {
  width: 100% !important;
  height: 54px !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  padding: 0 14px 0 34px !important;
  font-family: inherit !important;
  font-size: var(--text-sm, 14px) !important;
  font-weight: 300 !important;
  color: #111 !important;
  -webkit-tap-highlight-color: transparent;
  box-shadow: none !important;
}

/* Input en foco */
#checkoutForm .form-group .search-wrapper gmp-place-autocomplete input:focus {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}

/* Remove any remaining blue outline */
#checkoutForm .form-group .search-wrapper gmp-place-autocomplete,
#checkoutForm .form-group .search-wrapper gmp-place-autocomplete *,
#checkoutForm .form-group .search-wrapper gmp-place-autocomplete::before,
#checkoutForm .form-group .search-wrapper gmp-place-autocomplete::after {
  outline: none !important;
  outline-width: 0 !important;
  outline-style: none !important;
  outline-color: transparent !important;
}

/* ---- end styles google address ---- */

/* ============================================================
   Inline Validation Styles
   ============================================================ */
#stepThree .form-group input.is-invalid,
#stepThree .form-group select.is-invalid {
  border-color: var(--color-red) !important;
  background-color: #fffafb !important;
}

#stepThree .form-group .inline-error-msg {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-3px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}





#stepThree .form .search-wrapper input {
  padding-right: 40px;
}

#stepThree .form .search-wrapper .search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  width: 20px;
  height: 20px;
}

/* Full checkout v2 layout */
#stepThree.full .checkout-v2 {
  display: flex;
  gap: 30px;
}

#stepThree.full .column-1 {
  width: calc(60% - 15px);
}

#stepThree.full .column-1 .how-hear-us {
  width: 70%;
}

#stepThree.full .column-2 {
  width: calc(40% - 15px);
}

#stepThree.full .column-2 .payment-section {
  width: 100%;
}

#stepThree.full .column-2 .payment-section .content {
  width: 100%;
}

/* Payment section standalone */
#stepThree .payment-section {
  display: flex !important;
  align-items: stretch;
  justify-content: space-between;
  gap: 30px;
}

#stepThree .payment-section .content {
  width: 60%;
  display: flex;
  flex-direction: column;
}

#stepThree .payment-section .image {
  width: 35%;
  position: relative;
}

#stepThree .payment-section .image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
}

/* Checkbox — global variant */
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  max-width: 100%;
}

.checkbox-label input[type="checkbox"] {
  flex: 0 0 auto;
  margin-top: var(--space-1);
}

.checkbox-label label {
  flex: 1 1 auto;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  line-height: 1.25;
  font-size: clamp(var(--text-sm), 2.4vw, var(--text-md));
}

.two-columns.pay-save {
  width: 100%;
  max-width: 100%;
}


/* ============================================================
   13. PAYMENT TOGGLE SWITCH
   ============================================================ */
.payment-toggle-container {
  margin: 15px auto;
  width: 90%;
  max-width: 320px;
}

.toggle-switch {
  position: relative;
  display: flex;
  background-color: var(--color-white);
  border: 1px solid var(--color-red);
  border-radius: var(--radius-full);
  overflow: hidden;
  height: 50px;
  box-shadow: var(--shadow-sm);
}

.toggle-input {
  display: none !important;
}

.toggle-label {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 2;
  cursor: pointer;
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-red);
  transition: color 0.3s ease;
  margin: 0 !important;
  padding: 0 5px;
  user-select: none;
}

.toggle-label:hover {
  background-color: var(--color-red-alpha);
}

.toggle-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background-color: var(--color-red);
  border-radius: var(--radius-full);
  transition: var(--transition-slide);
  z-index: 1;
}

.toggle-input:first-of-type:checked~.toggle-slider {
  transform: translateX(0);
}

.toggle-input:nth-of-type(2):checked~.toggle-slider {
  transform: translateX(100%);
}

.toggle-input:checked+.toggle-label {
  color: var(--color-white) !important;
}


/* ============================================================
   14. MOBILE PHONE BUTTON
   ============================================================ */
.mobile-phone-btn .phone-icon {
  display: none;
}

.mobile-phone-btn .phone-text {
  display: inline;
}


/* ============================================================
   15. FOOTER
   ============================================================ */
#ecommerceFooter {
  padding: 50px 0 30px;
  background-color: var(--moshield-brown);
  color: var(--color-white);
}

#ecommerceFooter .footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

#ecommerceFooter .footer-top .footer-brand {
  width: calc(25% - 16.6667px);
}

#ecommerceFooter .footer-top .footer-areas {
  width: calc(50% - 16.6667px);
  text-align: center;
}

#ecommerceFooter .footer-top .mos-socials {
  width: calc(25% - 16.6667px);
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  list-style: none;
}

#ecommerceFooter .footer-top .footer-brand .logo {
  display: flex;
  justify-content: center;
}

#ecommerceFooter .footer-top .footer-brand p {
  font-size: var(--text-base);
  margin: 10px 0 0;
  text-align: center;
}

#ecommerceFooter .footer-top .footer-areas h3 {
  font-size: var(--text-md);
  color: var(--color-white);
  margin-bottom: 14px;
}

#ecommerceFooter .footer-top .footer-areas .areas-grid {
  line-height: 200%;
  font-size: var(--text-md);
}

#ecommerceFooter .footer-disclaimer {
  width: 40%;
  margin: 25px auto 40px;
  text-align: center;
  font-size: var(--text-sm);
}

#ecommerceFooter .footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#ecommerceFooter .footer-bottom .copyright-info {
  font-size: var(--text-sm);
}

#ecommerceFooter .footer-bottom .footer-links {
  font-size: var(--text-sm);
  font-weight: 600;
}


/* ============================================================
   16. RESPONSIVE — BREAKPOINTS
   ============================================================
   Breakpoints:
     sm:        480px  — small phones
     md:        600px  — mobile / small tablet portrait (carousel active)
     lg:       1024px  — tablet landscape
     Compact tablet: 768–900px  — iPad (768px) and iPad Air (820px)
       → Layout (3 cols):   block "768–900px Grid layout"   (with !important, overrides carousel)
       → Content (scale):   block "768–900px content scaling" (without !important)
       → Title aligned:     in both blocks above
     Full tablet:     769–1024px — general tablet range (title aligned without !important)
   ============================================================ */

/* ---- Large tablets / small desktops (901px–1300px) ---- */
/*
 * Covers devices like iPad Pro M4 (1152px) and Galaxy Tab S9 (1120px)
 * which fall outside the 769–1024px tablet range but still do not have
 * enough space for the cards to reach their optimal width (~330px+).
 *
 * We force 3 columns using flex-basis dynamically calculated based on
 * the actual container width, with max-width to limit growth
 * on wider viewports within this range.
 *
 * No !important: these rules appear later in the file and share
 * the same specificity → the cascade applies them correctly.
 */
@media (min-width: 901px) and (max-width: 1300px) {
  :is(#moshieldServices, #moshieldAddons) :is(.services-section, .addons-section) .cards-grid {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--grid-gap);
    align-items: stretch;
    padding: 0 10px;
    box-sizing: border-box;
  }

  :is(#moshieldServices, #moshieldAddons) :is(.services-section, .addons-section) .cards-grid .card {
    flex: 1 1 calc((100% - 2 * var(--grid-gap)) / 3);
    max-width: var(--card-max-width);
    min-width: var(--card-min-width);
    margin: 0;
    width: auto;
    box-sizing: border-box;
  }


}

/* ---- xl: Desktop wide (min-width: 1301px) — payment header row layout ----
 *
 * Only at this width does column-2 (~496px+) have enough space to
 * display the h4 and checkbox on the same row without overflow.
 *   Calculation: 40% of (1301px − 60px padding) ≈ 496px
 *   h4 "Payment Information" ≈ 200px + 12px gap + checkbox ≈ 220px = 432px ✓
 *
 * Below 1301px (tablets, iPad Pro, Galaxy Tab), the column layout
 * from the base rule remains in place without requiring additional overrides.
 */
@media (min-width: 1301px) {
  #stepThree .form .payment-info-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
  }

  #stepThree .form .payment-info-header h4 {
    flex-shrink: 0;
  }

  #stepThree .form .payment-info-header .checkbox-label {
    flex-shrink: 1;
    min-width: 0;
  }
}

/* ---- lg: Tablet landscape (max-width: 1024px) ---- */
@media (max-width: 1024px) {
  #stepsHeader {
    gap: 10px;
  }

  #stepsHeader .divider {
    width: 50px;
  }
}

/* ---- Full tablet range (769px–1024px) ---- */
@media (min-width: 769px) and (max-width: 1024px) {
  :is(#moshieldServices, #moshieldAddons) :is(.services-section, .addons-section) .cards-grid {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--grid-gap-sm);
    align-items: stretch;
    padding: 0 10px;
    box-sizing: border-box;
  }

  :is(#moshieldServices, #moshieldAddons) :is(.services-section, .addons-section) .cards-grid .card {
    flex: 1 1 calc((100% - 40px) / 3) !important;
    max-width: var(--card-max-width) !important;
    min-width: var(--card-min-width);
    margin: 0 !important;
    width: auto !important;
    box-sizing: border-box;
  }

  #stepsHeader {
    flex-wrap: nowrap;
    gap: 15px;
  }
}

/* ---- Tablets 768–900px — Grid layout (no carousel) ----
 * Starts at 768px (not 769px) to capture the iPad (768×1024).
 * The !important declarations are required only to override the carousel CSS
 * (defined earlier with !important in the max-width: 768px breakpoint).
 * Without them, the carousel would remain active in this range.
 *
 * min-width FIX: The base value --card-min-width (280px) caused
 * a 2-row overflow because: 3 × 280 + 40 = 880px > ~730px available.
 * With --card-min-width-tablet (200px), the calculated flex-basis
 * (~220–240px) takes control and the 3 cards fit in a single row. ✓
 */
@media (min-width: 768px) and (max-width: 900px) {

  /* Hide carousel arrows on tablets */
  .service-nav-arrows {
    display: none !important;
  }

  /* Force grid layout instead of horizontal carousel */
  :is(#moshieldServices, #moshieldAddons) :is(.services-section, .addons-section) .cards-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    overflow-x: visible !important;
    gap: var(--grid-gap-sm) !important;
    align-items: stretch !important;
    padding: 0 10px !important;
  }

  :is(#moshieldServices, #moshieldAddons) :is(.services-section, .addons-section) .cards-grid .card {
    flex: 1 1 calc((100% - 40px) / 3) !important;
    max-width: var(--card-max-width) !important;
    min-width: var(--card-min-width-tablet) !important;
    margin: 0 !important;
    width: auto !important;
  }

  /* Title always flush left — no offset needed at any viewport */
  :is(#moshieldServices, #moshieldAddons) .services-section .title-zip {
    text-align: left;
    margin-left: 0;
    padding-left: 0;
  }
}

/* ---- iPad Air (820x1180) & iPad (768x1024) — Compact content scaling ---- */
/*
* This block adjusts the SIZE of the card content (icons, text, internal spacing) for viewports 768–900px, where the cards are about 220–240px wide (vs ~308px on iPad Pro at 1024px).

* The 3-column layout is already handled in the previous block
  “768–900px — Grid layout.”
* Here, only the content is scaled.

* !important is not used because these properties (font-size, padding, gap) do not conflict with any previous !important rules — the cascade resolves them correctly based on their order of appearance in the file.

* Scale factor vs. desktop: ~75% (220px / 300px ≈ 0.73).
 */
@media (min-width: 768px) and (max-width: 900px) {

  /* === CARD CONTAINER === */
  :is(#moshieldServices, #moshieldAddons) :is(.services-section, .addons-section) .cards-grid .card {
    padding-bottom: 0.875rem;
  }

  /* === HEADER — icon + service name === */

  /* Reduce gap so they fit within a compact width */
  :is(#moshieldServices, #moshieldAddons) :is(.services-section, .addons-section) .cards-grid .card .card-header .header-title {
    gap: 12px;
  }

  /* Icon: 48px vs 60px base */
  :is(#moshieldServices, #moshieldAddons) :is(.services-section, .addons-section) .cards-grid .card .icon-shield svg {
    width: 48px;
  }

  /* Service name: 20px vs 30px base */
  :is(#moshieldServices, #moshieldAddons) :is(.services-section, .addons-section) .cards-grid .card .card-header .mosquito-title {
    font-size: 20px;
    line-height: 24px;
  }

  /* === DESCRIPTION === */
  :is(#moshieldServices, #moshieldAddons) :is(.services-section, .addons-section) .cards-grid .card .description {
    font-size: 13px;
    line-height: 17px;
    margin: 14px 0;
  }

  /* === FEATURES LIST === */
  :is(#moshieldServices, #moshieldAddons) :is(.services-section, .addons-section) .cards-grid .card .features {
    font-size: 12px;
    line-height: 16px;
  }

  :is(#moshieldServices, #moshieldAddons) :is(.services-section, .addons-section) .cards-grid .card .features li {
    margin-bottom: 7px;
    gap: 7px;
  }

  /* Check icon: 18×20px vs 25×28px base */
  :is(#moshieldServices, #moshieldAddons) :is(.services-section, .addons-section) .cards-grid .card .features li .check-icon {
    width: 18px;
    height: 20px;
  }

  /* === PRICE SECTION === */
  :is(#moshieldServices, #moshieldAddons) :is(.services-section, .addons-section) .cards-grid .card .price-section {
    margin: 14px 0;
    gap: 12px;
    padding: 0 0.75rem;
  }

  /* Price: 24px vs 34px base */
  :is(#moshieldServices, #moshieldAddons) :is(.services-section, .addons-section) .cards-grid .card .price-section .price {
    font-size: 24px;
    line-height: 26px;
  }

  /* Billing text ("Billed One Time", etc.) */
  :is(#moshieldServices, #moshieldAddons) :is(.services-section, .addons-section) .cards-grid .card .price-section :is(.billing, .price-suffix) {
    font-size: 11px;
    line-height: 14px;
  }

  /* === "SELECT SERVICE" BUTTON === */
  :is(#moshieldServices, #moshieldAddons) :is(.services-section, .addons-section) .cards-grid .card .red-btn {
    padding: 9px 10px;
    font-size: 12px;
    width: calc(100% - 1.5rem);
    margin: 0 0.75rem;
  }

  /* === TOGGLE ONE TIME / INSTALLMENTS === */
  .payment-toggle-container {
    max-width: 100%;
    width: 100%;
    margin: 10px auto;
  }

  .toggle-switch {
    height: 42px;
  }

  .toggle-label {
    font-size: 11px;
    padding: 0 5px;
  }
}


/* ---- md: Mobile (max-width: 600px) ---- */
@media (max-width: 600px) {

  /* Container */
  .ecommerce-content {
    padding-inline: var(--container-padding-mobile);
  }

  /* Steps */
  #stepsHeader {
    flex-wrap: wrap;
    margin: 30px 0;
  }

  #stepsHeader .step .step-text {
    display: none;
  }

  #stepsHeader .divider {
    width: 30px;
  }

  body.booking-new-one-page #stepsHeader .step.active .step-text {
    display: block;
    font-size: var(--text-sm);
    white-space: nowrap;
  }

  /* Addon / service cards — non-carousel */
  :is(#moshieldServices, #moshieldAddons) :is(.addons-section) .cards-grid .card {
    width: 100%;
    max-width: 400px;
  }

  :is(#moshieldServices, #moshieldAddons) :is(.services-section, .addons-section) .title-zip {
    font-size: var(--text-2xl);
    text-align: center;
    margin-left: 0;
  }

  /*
 * On mobile, the radio-group takes up 100% of the width (max-width: 100%);
 * the title does as well. text-align: left keeps the text aligned to the left edge.
   */
  #moshieldAddons .addons-section .title-zip {
    text-align: left;
  }

  /* Addons v2 radio */
  :is(#moshieldAddonsv2, #moshieldAddons) .addons-radio-group {
    max-width: 100%;
    padding: 0 10px;
  }

  :is(#moshieldAddonsv2, #moshieldAddons) .addon-radio-option {
    padding: 15px;
  }

  :is(#moshieldAddonsv2, #moshieldAddons) .addon-name {
    font-size: var(--text-base);
  }

  :is(#moshieldAddonsv2, #moshieldAddons) .addon-subtitle {
    font-size: 13px;
  }

  :is(#moshieldAddonsv2, #moshieldAddons) .addon-price {
    font-size: var(--text-base);
  }

  /* Step info rows */
  #stepsContainer .step-page .step-info-row {
    flex-direction: column;
    gap: var(--space-5);
    margin-bottom: 40px;
  }

  #stepsContainer .step-page .step-info-row :is(.step-info-content, .step-info-img) {
    width: 100%;
  }

  #stepsContainer .step-page .step-info-row .step-info-content h2 {
    font-size: 32px;
    margin-bottom: var(--space-5);
  }

  #stepsContainer .step-page .step-info-row .step-info-content .description {
    font-size: var(--text-md);
  }

  #stepsContainer .step-page .step-info-row .step-info-content .cta-buttons {
    flex-direction: column;
  }

  /* Zip code form */
  #zipCodeForm {
    margin: 30px auto 50px;
  }

  #zipCodeForm h2 {
    font-size: var(--text-2xl);
    text-align: center;
  }

  #zipCodeForm .two-columns {
    flex-direction: column;
    gap: 30px;
  }

  #zipCodeForm .two-columns :is(.content, .image) {
    width: 100%;
  }

  #zipCodeForm .two-columns .content h3 {
    font-size: 28px;
    text-align: center;
  }

  #zipCodeForm .two-columns .content .zip-description {
    font-size: var(--text-md);
  }

  /* Step Three */
  #stepThree {
    padding: 0 var(--container-padding-mobile);
  }

  #stepThree h2 {
    font-size: var(--text-2xl);
  }

  #stepThree .form :is(.two-columns, .three-columns) {
    grid-template-columns: 1fr;
  }

  #stepThree .form .payment-section {
    flex-direction: column;
    gap: 30px;
  }

  #stepThree .form .payment-section :is(.content, .image) {
    width: 100%;
  }

  #stepThree.full .checkout-v2 {
    flex-direction: column;
  }

  #stepThree.full :is(.column-1, .column-2) {
    width: 100%;
  }

  #stepThree.full .column-1 .how-hear-us {
    width: 100%;
  }

  /* Mobile carousel — nav arrows */
  .service-nav-arrows {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    margin-bottom: var(--space-5) !important;
    padding: 0 5px !important;
  }

  .service-nav-arrows h2.title-zip {
    margin: 0 !important;
    text-align: left;
    font-size: var(--text-2xl) !important;
    padding-left: 0 !important;
  }

  .service-nav-arrows .arrows {
    display: flex !important;
    gap: 15px !important;
    align-items: center !important;
  }

  .service-nav-arrows .arrow-btn {
    background: transparent !important;
    border: none !important;
    color: var(--color-red) !important;
    font-size: 30px !important;
    line-height: 1 !important;
    padding: 0 5px !important;
    cursor: pointer !important;
    font-weight: bold !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    transition: opacity 0.3s ease !important;
  }

  .service-nav-arrows .arrow-btn:disabled {
    opacity: 0.3 !important;
    cursor: default !important;
  }

  /* Mobile carousel — cards grid */
  :is(#moshieldServices, #moshieldAddons) .services-section .cards-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: var(--grid-gap-sm);
    padding: 10px 0 var(--space-5) 0;
    margin-inline: 0 !important;
    padding-inline: 0 !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  :is(#moshieldServices, #moshieldAddons) .services-section .cards-grid::-webkit-scrollbar {
    display: none;
  }

  :is(#moshieldServices, #moshieldAddons) .services-section .cards-grid .card {
    flex: 0 0 85% !important;
    width: 85% !important;
    min-width: var(--card-min-width);
    max-width: 400px;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    margin-left: 0;
  }

  :is(#moshieldServices, #moshieldAddons) .services-section .cards-grid .card:first-child {
    margin-left: 20px !important;
  }

  :is(#moshieldServices, #moshieldAddons) .services-section .cards-grid .card:last-child {
    margin-right: 20px !important;
  }

  :is(#moshieldServices, #moshieldAddons) .services-section .title-zip {
    text-align: left;
    padding-left: 20px;
  }

  /* Footer */
  #ecommerceFooter {
    padding: 30px 0 20px;
  }

  #ecommerceFooter .footer-top {
    flex-direction: column;
    gap: 30px;
  }

  #ecommerceFooter .footer-top :is(.footer-brand, .footer-areas, .mos-socials) {
    width: 100%;
  }

  #ecommerceFooter .footer-disclaimer {
    width: 90%;
  }

  #ecommerceFooter .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}

/* ---- sm: Small phones (max-width: 480px) ---- */
@media (max-width: 480px) {

  /* Card text scaling */
  :is(#moshieldServices, #moshieldAddons) .services-section .cards-grid .card .card-header .mosquito-title {
    font-size: var(--text-2xl);
    line-height: 28px;
  }

  :is(#moshieldServices, #moshieldAddons) .services-section .cards-grid .card .description {
    font-size: var(--text-md);
    line-height: 20px;
  }

  :is(#moshieldServices, #moshieldAddons) .services-section .cards-grid .card .features {
    font-size: var(--text-base);
  }

  :is(#moshieldServices, #moshieldAddons) .services-section .cards-grid .card .price-section .price {
    font-size: 28px;
  }

  /* Carousel card sizing */
  :is(#moshieldServices, #moshieldAddons) :is(.services-section, .addons-section) .cards-grid .card {
    flex: 0 0 90% !important;
    width: 90% !important;
    min-width: 260px;
  }

  /* Addons radio */
  :is(#moshieldAddonsv2, #moshieldAddons) .addon-radio-option {
    padding: 12px;
  }

  :is(#moshieldAddonsv2, #moshieldAddons) .addon-name {
    font-size: var(--text-sm);
  }

  :is(#moshieldAddonsv2, #moshieldAddons) .addon-subtitle {
    font-size: var(--text-xs);
  }

  /* Step info */
  #stepsContainer .step-page .step-info-row .step-info-content h2 {
    font-size: 26px;
  }

  #stepsContainer .step-page .step-info-row .step-info-content .description {
    font-size: var(--text-base);
  }

  /* Buttons */
  .main-btn,
  .alt-btn {
    font-size: var(--text-base);
    padding: 12px 20px;
  }

  /* Nav arrows */
  .service-nav-arrows h2 {
    font-size: var(--text-lg);
  }

  .service-nav-arrows .arrow-btn {
    width: 35px;
    height: 35px;
    font-size: 18px;
  }

  /* Checkboxes */
  :is(body.booking-new-two-page, body.booking-new-one-page) .checkbox-label {
    margin-bottom: 10px;
  }

  /* Mobile phone button */
  .mobile-phone-btn .phone-text {
    display: none !important;
  }

  .mobile-phone-btn .phone-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }

  .mobile-phone-btn {
    padding: 8px 12px !important;
    min-width: unset !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
  }

  .mobile-phone-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
  }
}

.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border-radius: 10px;
}

/* ---- 601px–900px: stacked column (extends mobile behaviour) ---- */
@media (min-width: 601px) and (max-width: 900px) {
  #stepsContainer .step-page .step-info-row {
    flex-direction: column;
    gap: var(--space-5);
    margin-bottom: 40px;
  }

  #stepsContainer .step-page .step-info-row :is(.step-info-content, .step-info-img) {
    width: 100%;
  }

  #stepsContainer .step-page .step-info-row .step-info-content h2 {
    font-size: 36px;
    margin-bottom: var(--space-5);
  }

  #stepsContainer .step-page .step-info-row .step-info-content .description {
    font-size: var(--text-md);
  }

  #stepsContainer .step-page .step-info-row .step-info-content .cta-buttons {
    flex-direction: column;
  }
}

/* ---- 901px–1380px: side-by-side with fluid h2 to keep 2 lines ---- */
@media (min-width: 901px) and (max-width: 1380px) {
  #stepsContainer .step-page .step-info-row .step-info-content h2 {
    font-size: clamp(32px, 3.6vw, 44px);
  }
}