
body h1.qst-pricing-title{
  font-size: 4rem;
  margin-bottom: 4rem;
}

/* SECTION */
.qst-pricing-section {
  background: #ffffff;
  padding: 3.5rem 1.5rem 4rem;
}

.qst-pricing-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #001127;
}

/* BIG H1 */


/* TOGGLE (keep your previous markup/JS) */
.qst-billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: #f3f5fb;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  margin-bottom: 2.5rem;
}

.qst-toggle-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #7a8192;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  user-select: none;
}

.qst-toggle-label--active {
  color: #001127;
}

.qst-save-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
  background-color: rgba(0, 102, 255, 0.1);
  color: #0066ff;
}

/* SWITCH */
.qst-switch {
  position: relative;
  width: 46px;
  height: 24px;
  display: inline-block;
}

.qst-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.qst-slider {
  position: absolute;
  inset: 0;
  background-color: #cbd2e1;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.qst-slider::before {
  content: "";
  position: absolute;
  height: 20px;
  width: 20px;
  left: 2px;
  top: 2px;
  background-color: #ffffff;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease;
}

.qst-switch input:checked + .qst-slider {
  background-color: #0066ff;
}

.qst-switch input:checked + .qst-slider::before {
  transform: translateX(22px);
}

/* GRID */
.qst-pricing-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

/* CARD BASE – GRID LAYOUT INSIDE CARD */
.qst-plan-card {
  background: #ffffff;
  border-radius: 1.5rem;
  padding: 2rem 1.9rem 2.3rem;
  border: 1px solid #e1e6f0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  display: grid;
  grid-template-rows: auto auto 1fr; /* top, button, features */
  row-gap: 0.75rem;
  position: relative;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.qst-plan-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 102, 255, 0.3);
}

/* FEATURED CARD */
.qst-plan-card--featured {
  border-color: #0066ff;
  box-shadow: 0 24px 70px rgba(0, 102, 255, 0.25);
}

.qst-plan-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #0066ff;
  margin-bottom: 0.15rem;
}

/* TOP BLOCK (header + price) */
.qst-plan-top {
  display: flex;
  flex-direction: column;
}

/* HEADER */
.qst-plan-header {
  margin-bottom: 0.8rem;
  min-height: 100px;
}

.qst-plan-name {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0 0 0.2rem;
  color: #001127;
}

.qst-plan-subtitle {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: #7a8192;
}

/* PRICE */
.qst-plan-price-row {
  margin: 0;
}

.qst-plan-price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.qst-price-symbol {
  font-size: 1.2rem;
  font-weight: 700;
  color: #001127;
}

.qst-price-value {
  font-size: 2.1rem;
  font-weight: 800;
  color: #001127;
}

.qst-price-period {
  font-size: 0.9rem;
  font-weight: 700;
  color: #7a8192;
}

/* BUTTON – SOLID BLUE */
button.qst-plan-button ,
button.qep-cta{
  align-self: stretch;        /* row 2 of grid */
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  border: 1px solid #0066ff;
  background: #0066ff;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease,
              transform 0.2s ease, border-color 0.2s ease;
}

button.qst-plan-button:hover ,
button.qep-cta{
  background: #004fcc;
  border-color: #004fcc;
  box-shadow: 0 14px 40px rgba(0, 102, 255, 0.35);
  transform: translateY(-1px);
}

/* FEATURES (row 3) */
.qst-plan-features {
  list-style: none;
  padding: 0;
  margin: 0.3rem 0 0;
  align-self: stretch;
}

.qst-plan-features li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #001127;
}

.qst-plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 6px;
  font-size: 0.75rem;
  line-height: 1.3;
  color: #0066ff;  /* your accent blue */
  font-weight: 900;
  bottom: 0;
    margin: 0 auto!important;
    height: 0.75rem;
}


/* Make sure featured card can position the badge */
.qst-plan-card--featured {
  position: relative;
}

/* Floating circle badge, top-right, slightly tilted */
.qst-plan-badge {
  position: absolute;
  top: -12px;
  right: 18px;
  width: 64px;
  height: 64px;

  background: #0066ff;
  color: #ffffff;
  border-radius: 999px;

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.1;

  transform: rotate(10deg);
  box-shadow: 0 10px 25px rgba(0, 102, 255, 0.35);
}

/* Make sure cards can host an absolute overlay */
.qst-plan-card {
  position: relative; /* you likely already have this, but keep it here */
}

/* When loading, dim the card and show a spinner */
.qst-plan-card.qst-card-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.7);
  z-index: 10;
}

/* Spinner itself */
.qst-plan-card.qst-card-loading::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 32px;
  height: 32px;
  margin: -16px 0 0 -16px;
  border-radius: 50%;
  border: 3px solid #e0e7ff;
  border-top-color: #0066ff; /* your blue */
  animation: qst-card-spin 0.7s linear infinite;
  z-index: 11;
}


.checkout-card-header-wrap{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;

}

a.change-plan-btn {
  border: 1px solid #000;
    padding: 5px 15px;
    border-radius: 25px;
    color: #000!important;
    font-size: 12px;
    transition: color 0.25s ease;
    font-weight: 600;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  z-index: 1;
}

a.change-plan-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #000; /* fill color */
  transform: translateX(-100%);
  transition: transform 0.35s ease;
  z-index: -1;
}

a.change-plan-btn:hover::before {
  transform: translateX(0);
}

a.change-plan-btn:hover {
  color: #fff !important;
  border-color: #000;
}

a.change-plan-btn i {
  transition: transform 0.35s ease;
}

a.change-plan-btn:hover i {
  transform: translateX(-5px);
}


@keyframes qst-card-spin {
  to {
    transform: rotate(360deg);
  }
}


/* Slightly smaller on mobile so it doesn't dominate */
@media (max-width: 768px) {
  .qst-plan-badge {
    top: -10px;
    right: 14px;
    width: 54px;
    height: 54px;
    font-size: 0.65rem;
  }
}


/* RESPONSIVE */
@media (max-width: 1024px) {
  .qst-pricing-title {
    font-size: 3rem;
  }

  .qst-pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .qst-pricing-section {
    padding: 3rem 1rem;
  }

  .qst-pricing-title {
    font-size: 2.5rem;
  }

  .qst-pricing-grid {
    grid-template-columns: 1fr;
  }

  .qst-plan-card--featured {
    order: -1; /* featured first on mobile */
  }
}
