.page-id-1579 .kt-blocks-adv-type-image, 
.page-id-1570 .kt-blocks-adv-type-image {
  border: none !important;
}

/* ===== Mobile-Only Top Padding Adjustment ===== */
@media (max-width: 768px) {
  .mobile-top-button {
    margin-top: -80px; /* Moves button up */
  }
}

/* ===== Mobile Footer Spacing Fix ===== */
@media (max-width: 768px) {
    /* Target the text under the image */
    .footer-address-text {
        margin-top: 0px !important;   /* Adjust top margin */
        margin-bottom: -160px !important; /* Adjust bottom margin */
    }

    /* If needed, reduce padding in the column/container */
    .footer-column-class {
        padding-top: 5px !important;
        padding-bottom: 5px !important;
    }
}

/* ===== Join Now Button Pulse Effect (Desktop & Mobile) ===== */

/* Pulse keyframes with slightly reduced glow intensity and slower animation */
@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(219, 0, 0, 0.5); /* slightly less intense */
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 35px 15px rgba(219, 0, 0, 0.45); /* medium glow */
    transform: scale(1.05);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(219, 0, 0, 0);
    transform: scale(1);
  }
}

/* ===== Desktop Button Pulse ===== */
a.header-button.button-size-custom.button-style-filled {
  display: inline-block; 
  transform-origin: center; 
  animation: pulseGlow 3.5s infinite ease-in-out; /* slower */
  -webkit-animation: pulseGlow 3.5s infinite ease-in-out;
  will-change: box-shadow, transform;
  backface-visibility: hidden;
}

/* ===== Mobile Button Pulse + downward adjustment ===== */
a.mobile-header-button.button-size-medium.button-style-filled {
  animation: pulseGlow 3.5s infinite ease-in-out; /* slower */
  -webkit-animation: pulseGlow 3.5s infinite ease-in-out;
  will-change: box-shadow, transform;
  backface-visibility: hidden;
  position: relative;
  top: 10px; /* push down slightly on mobile */
  display: inline-block; 
  transform-origin: center;
}

/* ===== Custom Accept Text Styling ===== */
.custom-accept-text label,
.custom-accept-text span,
.custom-accept-text p {
    font-size: 16px !important;       /* Desktop font size */
    line-height: 1.4 !important;
    letter-spacing: 0.5px !important; /* Adjust spacing if desired */
    color: #fff;
}

/* ===== Custom Checkbox Wrapper ===== */
.custom-accept-text {
    display: flex;
    align-items: flex-start; /* Align with first line of text */
    margin: 10px;
    position: relative;
    cursor: pointer;
    user-select: none;
}

/* Hide the native checkbox */
.custom-accept-text input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* ===== Custom Square Checkbox ===== */
.custom-accept-text input[type="checkbox"] + label {
    position: relative;
    padding-left: 28px; /* space for checkbox */
    cursor: pointer;
    display: inline-block;
}

/* Checkbox square */
.custom-accept-text input[type="checkbox"] + label::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 1.5px solid #fff;   /* White border */
    border-radius: 4px;
    background-color: transparent;
    box-sizing: border-box;
    position: absolute;
    left: 0;
    top: 0em; /* aligns with first line */
    transition: all 0.3s ease;
}

/* Hover effect on the box */
.custom-accept-text input[type="checkbox"] + label:hover::before {
    transform: scale(1.1);
    box-shadow: 0 0 8px rgba(219, 0, 0, 0.5);
}

/* Checked state */
.custom-accept-text input[type="checkbox"]:checked + label::before {
    background-color: #DB0000; /* Brand red fill */
    border-color: #DB0000;
    box-shadow: 0 0 10px rgba(219, 0, 0, 0.6);
}

/* Checkmark */
.custom-accept-text input[type="checkbox"]:checked + label::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* ===== Mobile Styling ===== */
@media (max-width: 768px) {
    .custom-accept-text label,
    .custom-accept-text span,
    .custom-accept-text p {
        font-size: 14px !important;    
        letter-spacing: 0.7px !important; 
    }

    .custom-accept-text input[type="checkbox"] + label::before {
        width: 16px;
        height: 16px;
        top: 0.1em;
    }

    .custom-accept-text input[type="checkbox"]:checked + label::after {
        left: 5.25px;
        top: 3.5px;
    }
}

/* ===== Custom Link Styling ===== */
.custom-accept-text a {
    color: #DB0000; /* brand red */
    text-decoration: underline;
    margin-left: 4px; /* spacing before links */
    display: inline; /* stay inline with text */
    white-space: nowrap; /* keeps multi-word links together */
}

/* ===== Checkout Progress Header ===== */
.checkout-progress-header {
  width: 100vw;
  background: url('https://ironverse.fit/wp-content/uploads/2025/10/MembershipPortalBackground.jpg') no-repeat center center;
  background-size: cover;
  padding: 60px 0;
  position: relative;
  border-top: 2px solid #DB0000;
  border-bottom: 2px solid #DB0000;
  box-sizing: border-box;
}

.progress-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  margin: 0 auto;
  position: relative;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.progress-step .circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: transparent #000;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  box-shadow: 0 0 10px rgba(255,255,255,0.7);
}

.progress-step .circle img {
  max-width: 40px;
  max-height: 40px;
}

.progress-step.active .circle,
.progress-step.completed .circle {
  border-color: #DB0000;
  box-shadow: 0 0 12px rgba(219,0,0,0.7);
}

/* === Step Labels === */
.label {
  color: #fff;
  font-size: 28px;
  font-weight: bold;
  margin-top: -2px;
  margin-bottom: 2px;
  line-height: 1.3;
  text-align: center;
}

/* Connectors */
.connector {
  flex: 1;
  height: 4px;
  background: #fff;
  box-shadow: 0 0 8px rgba(255,255,255,0.5);
  transition: background 0.5s ease;
  margin: 0px 0px 40px 0px; /* adds 10px gap on both sides of each connector */
}
/* Add spacing so connectors never touch logos */
.progress-step .circle {
  margin: 0 20px; /* pushes connectors equally away from all circles */
}
.connector.completed {
  background: #DB0000;
  box-shadow: 0 0 12px rgba(219,0,0,0.7);
}

/* Change button */
.change-btn {
  margin-top: -8px;
  padding: 4px 12px;
  font-size: 20px;
  font-weight: bold;
  border: 2px solid #fff;
  border-radius: 30px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.change-btn:hover {
  border-color: #DB0000;
  color: #DB0000;
}

/* Keep the button from shifting the logo/bar alignment */
.progress-step[data-step="1"] {
  position: relative; /* anchor for absolute positioning */
}
.progress-step[data-step="1"] .change-btn-container {
  position: absolute;
  top: 100%; /* just below the label */
  left: 50%;
  transform: translateX(-50%);
  margin-top: 10px;
  width: max-content;
  text-align: center;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .progress-container {
    width: 95%;
  }
  .progress-step .circle {
    width: 55px;
    height: 55px;
  }
  .progress-step .circle img {
    max-width: 28px;
    max-height: 28px;
  }
  .label {
    font-size: 14px;
  }
}
/* ===== Mobile-Specific Styling Overrides ===== */
@media (max-width: 768px) {
  /* Background smaller */
  .checkout-progress-header {
    width: 100vw;
    padding: 40px 0; /* reduce from 60px */
    background: url('https://ironverse.fit/wp-content/uploads/2025/10/MembershipPortalBackground.jpg') no-repeat center center;
    background-size: cover;
    border-top: 2px solid #DB0000;
    border-bottom: 2px solid #DB0000;
    box-sizing: border-box;
  }

  /* Progress container */
  .progress-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 95%;
    margin: 0 auto;
    gap: 8px;
    position: relative;
  }

  /* Step wrapper */
  .progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    margin: 0 5px; /* space around each step */
  }

  /* Circles */
  .progress-step .circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent #000;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
    box-shadow: 0 0 10px rgba(255,255,255,0.7);
  }

  /* Logos inside circles */
  .progress-step .circle img {
    max-width: 24px;
    max-height: 24px;
    display: block;
  }

  /* Labels */
  .label {
    font-size: 22px;
    font-weight: bold;
    color: #fff;
    margin-top: -4px;
    margin-bottom: 0px;
    line-height: 1.2;
    text-align: center;
    letter-spacing: 0.5px;
  }

  /* Connectors */
  .connector {
    flex: 1;
    height: 2px; /* thicker for mobile */
    margin: -24px -6px 0px -6px; /* top margin added, space left/right */

/* Add spacing so connectors never touch logos */
.progress-step .circle {
  margin: 0 10px; /* pushes connectors equally away from all circles */
}

    background: #fff;
    box-shadow: 0 0 8px rgba(255,255,255,0.5);
    transition: background 0.5s ease;
  }
  .connector.completed {
    background: #DB0000;
    box-shadow: 0 0 12px rgba(219,0,0,0.7);
  }

  /* Change button */
  .change-btn {
    font-size: 12px;
    font-weight: 500;
    padding: 4px 10px;
    margin-top: -8px;
    border: 2px solid #fff;
    border-radius: 20px;
    background: transparent;
    color: #fff;
    cursor: pointer;
    line-height: 1.2;
    transition: border-color 0.3s ease, color 0.3s ease;
  }
  .change-btn:hover {
    border-color: #DB0000;
    color: #DB0000;
  }
}

/* ===== Small Phones (under 480px) ===== */
@media (max-width: 480px) {
  .checkout-progress-header {
    padding: 28px 0; /* tighter */
  }

  .progress-container {
    width: 98%;
    gap: 5px;
  }

  .progress-step {
    margin: 0 3px;
  }

  .progress-step .circle {
    width: 40px;
    height: 40px;
    margin-bottom: 4px;
  }

  .progress-step .circle img {
    max-width: 18px;
    max-height: 18px;
  }

  .label {
    font-size: 14px;
    margin-top: 0px;
    margin-bottom: 2px;
    font-weight: bold;
  }

  .connector {
    height: 2px; /* boldest here */
    margin: -20px -6px 0px -6px; /* keep top margin for spacing */
  }

/* Add spacing so connectors never touch logos */
.progress-step .circle {
  margin: 0 10px; /* pushes connectors equally away from all circles */
}


  .change-btn {
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 15px;
    margin-top: -10px;
  }
}

/* ===== Phase 2: Glow Logic ===== */

/* Completed circles + connectors: continuous glow */
.progress-step.completed .circle {
  border-color: #DB0000;
  box-shadow: 0 0 14px rgba(219,0,0,1); /* 1.5x stronger than old glow */
}

.connector.completed {
  background: #DB0000;
  box-shadow: 0 0 14px rgba(219,0,0,1); /* match circle glow */
}

/* Active step: pulsing glow (2x stronger) */
.progress-step.active .circle {
  border-color: #DB0000;
  box-shadow: 0 0 14px rgba(219,0,0,1);
  animation: pulse-red-strong 3.5s infinite;
}

/* Stronger pulse animation */
@keyframes pulse-red-strong {
  0%   { box-shadow: 0 0 0px rgba(219,0,0,0); }
  50%  { box-shadow: 0 0 28px rgba(219,0,0,1); }
  100% { box-shadow: 0 0 0px rgba(219,0,0,0); }
}
/* Active label: pulsing red glow (fades fully out) */
.progress-step.active .label {
  color: #fff;
  animation: pulse-label-red 3.5s infinite;
}

@keyframes pulse-label-red {
  0%   { text-shadow: none; }
  50%  { text-shadow: 0 0 12px rgba(219,0,0,1), 0 0 22px rgba(219,0,0,0.9); }
  100% { text-shadow: none; }
}
.connector {
  animation: none !important;
  transition: none !important;
}

/* ===== Force Desktop Footer Layout on Tablets (Kadence/Block-based) ===== */
/* Target common tablet sizes: 769–1024px (portrait iPads, many Android tablets) */
@media (min-width: 769px) and (max-width: 1024px) {

  /* If you have separate desktop/mobile footer wrappers, prefer desktop */
  .site-footer .footer-desktop { display: block !important; }
  .site-footer .footer-mobile  { display: none  !important; }

  /* Make footer columns stay side-by-side (no stacking) */
  .site-footer .footer-inner,
  .site-footer .footer-widget-area,
  .site-footer .footer-top,
  .site-footer .footer-middle,
  .site-footer .footer-bottom,
  .site-footer .wp-block-columns {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 24px; /* adjust spacing to taste */
  }

  /* Ensure each column behaves like desktop */
  .site-footer .wp-block-column,
  .site-footer .footer-column,
  .site-footer .widget-area > * {
    flex: 1 1 0 !important;
    max-width: none !important;
    width: auto !important;
  }

  /* Keep bottom bar (copyright / socials) on one line like desktop */
  .site-footer .footer-bottom-inner,
  .site-footer .footer-bottom .wp-block-columns {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  /* Prevent tablet text re-centering rules */
  .site-footer .has-text-align-center,
  .site-footer .aligncenter {
    text-align: left !important; /* match your desktop; change if your desktop is centered */
  }

  /* Undo tablet-specific padding that often causes wrapping */
  .site-footer .wp-block-columns { margin-left: 0 !important; margin-right: 0 !important; }
  .site-footer .wp-block-column  { margin: 0 !important; }

  /* Optional: keep desktop font sizes on tablet */
  .site-footer { font-size: inherit !important; }
}

/* If your theme stacks at 1025–1199 too, extend the range by bumping max-width */

/* ===== Kadence Form Success Message (Centered Box) ===== */
.kb-adv-form-success {
    --kb-form-success-background: #c40000;
    --kb-form-success-color: #ffffff;

    display: block;
    width: fit-content;
    max-width: calc(100% - 40px);

    margin: 20px auto;
    padding: 16px 24px;

    font-family: inherit;
    font-size: 22px;
    font-weight: 600;

    text-align: center;
    border-radius: 6px;
}

/* ===== Kadence Field Error Messages (Contained) ===== */
.kb-form-error {
    display: inline-block;
    margin: 6px auto 0;
    padding: 6px 10px;

    background: #c40000;
    color: #ffffff;

    font-size: 16px;
    font-weight: 500;
    border-radius: 4px;
}