/* ============================================================
   Checkout Online - IPLINK
   Pagina dedicada de contratacao com painel de resumo + wizard
   ============================================================ */

.checkout-body {
  min-height: 100vh;
  background: #fff;
}

.checkout-shell {
  display: grid;
  grid-template-columns: minmax(340px, 42%) 1fr;
  min-height: 100vh;
}

/* ---------- Painel esquerdo (marca + resumo + progresso) ---------- */

.checkout-panel {
  background: linear-gradient(165deg, #7a3bb0 0%, #602A97 38%, #3d1860 78%, #2a1045 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.checkout-panel::before,
.checkout-panel::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}

.checkout-panel::before {
  width: 340px;
  height: 340px;
  top: -120px;
  right: -110px;
}

.checkout-panel::after {
  width: 260px;
  height: 260px;
  bottom: -90px;
  left: -80px;
}

.checkout-panel__inner {
  position: relative;
  z-index: 1;
  padding: 40px clamp(24px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.checkout-logo {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 40px;
}

.checkout-logo img {
  height: 44px;
  width: auto;
  background: #fff;
  padding: 6px 12px;
  border-radius: 12px;
}

.checkout-logo__mark {
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: 30px;
  letter-spacing: -0.5px;
  color: #fff;
}

.checkout-logo__mark span {
  color: var(--brand-orange);
}

.checkout-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--brand-orange);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.checkout-title {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
  color: #fff;
  margin-bottom: 28px;
}

.checkout-your-package {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 10px;
}

.checkout-plan-card {
  background: #fff;
  color: var(--brand-text);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
  margin-bottom: 32px;
}

.checkout-plan-card__badge {
  display: inline-block;
  background: var(--brand-orange);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.checkout-plan-card__name {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  color: var(--brand-dark);
  font-size: 15px;
  margin-bottom: 4px;
}

.checkout-plan-card__speed {
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: 34px;
  line-height: 1.05;
  color: var(--brand-purple);
  margin-bottom: 6px;
}

.checkout-plan-card__unit {
  font-size: 16px;
  font-weight: 700;
}

.checkout-plan-card__desc {
  font-size: 14px;
  color: var(--brand-muted);
  margin-bottom: 12px;
}

.checkout-plan-card__price {
  font-family: "Outfit", sans-serif;
  font-size: 18px;
  color: var(--brand-text);
  border-top: 1px dashed var(--brand-border);
  padding-top: 14px;
  margin: 0;
}

.checkout-plan-card__price strong {
  font-size: 30px;
  color: var(--brand-dark);
}

.checkout-plan-card__cents {
  font-size: 18px;
  color: var(--brand-dark);
}

.checkout-plan-card__cycle {
  font-size: 14px;
  color: var(--brand-muted);
}

.checkout-plan-card__features {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.checkout-plan-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--brand-muted);
}

.checkout-plan-card__features li i {
  color: var(--brand-orange);
  font-size: 15px;
  line-height: 1.3;
}

/* ---------- Progresso em etapas ---------- */

.checkout-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.checkout-steps__item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: "Outfit", sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s ease;
}

.checkout-steps__num {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  transition: all 0.2s ease;
}

.checkout-steps__item.is-active {
  color: #fff;
}

.checkout-steps__item.is-active .checkout-steps__num {
  background: var(--brand-orange);
  box-shadow: 0 6px 16px rgba(255, 138, 0, 0.45);
}

.checkout-steps__item.is-done .checkout-steps__num {
  background: rgba(255, 255, 255, 0.9);
  color: var(--brand-purple);
}

.checkout-secure {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}

.checkout-secure i {
  font-size: 18px;
  color: var(--brand-orange);
}

/* ---------- Painel direito (formulario) ---------- */

.checkout-main {
  background: var(--brand-bg);
  display: flex;
  justify-content: center;
}

.checkout-main__inner {
  width: 100%;
  max-width: 680px;
  padding: 40px clamp(20px, 4vw, 48px) 72px;
}

.checkout-main__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.checkout-main__kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-purple);
  margin-bottom: 4px;
}

.checkout-main__title {
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  color: var(--brand-dark);
  font-size: 26px;
  margin: 0;
}

.checkout-main__back {
  border-radius: 999px;
}

.checkout-step__title {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  color: var(--brand-dark);
  font-size: 20px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--brand-border);
}

.checkout-step__nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.checkout-step__nav--stack {
  flex-direction: column;
  align-items: stretch;
}

.checkout-step__nav--stack .btn {
  border-radius: 14px;
  width: 100%;
}

.checkout-step__nav--stack .btn-link {
  text-align: center;
}

/* Resumo (etapa 3) */

.checkout-review {
  background: #fff;
  border: 1px solid var(--brand-border);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
  font-size: 14px;
}

.checkout-review__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--brand-border);
}

.checkout-review__row:last-child {
  border-bottom: none;
}

.checkout-review__label {
  color: var(--brand-muted);
}

.checkout-review__value {
  font-weight: 600;
  color: var(--brand-dark);
  text-align: right;
}

/* Sucesso */

.checkout-success {
  text-align: center;
  padding: 48px 0;
}

.checkout-success__icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: linear-gradient(160deg, #ff8a00, #f56a1b);
  color: #fff;
  font-size: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 34px rgba(255, 138, 0, 0.35);
}

.checkout-success h2 {
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  color: var(--brand-dark);
  margin-bottom: 12px;
}

.checkout-success p {
  color: var(--brand-muted);
  max-width: 460px;
  margin: 0 auto 10px;
}

.checkout-success__ref {
  font-family: "Outfit", sans-serif;
  font-size: 15px;
}

.checkout-success .d-flex {
  margin-top: 18px;
}

/* ---------- Responsivo ---------- */

@media (max-width: 991px) {
  .checkout-shell {
    grid-template-columns: 1fr;
  }

  .checkout-panel__inner {
    min-height: auto;
    padding: 28px 24px;
  }

  .checkout-logo {
    margin-bottom: 24px;
  }

  .checkout-title {
    font-size: 24px;
  }

  .checkout-steps {
    flex-direction: row;
    gap: 8px;
    margin-bottom: 20px;
  }

  .checkout-steps__item {
    flex: 1;
    font-size: 12px;
    flex-direction: column;
    text-align: center;
    gap: 6px;
  }

  .checkout-secure {
    margin-top: 12px;
  }
}

@media (max-width: 575px) {
  .checkout-main__inner {
    padding: 28px 18px 56px;
  }

  .checkout-plan-card__speed {
    font-size: 28px;
  }
}
