@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.6rem;
  color: #1a1a2e;
  background: #eef2f7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { text-decoration: none; color: inherit; }
input, button { font-family: inherit; }

/* ===== HEADER ===== */
.checkout-header {
  background: linear-gradient(135deg, #1479ff, #0049ff);
  padding: 1.6rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,73,255,0.3);
}
.checkout-header__logo img { height: 3.2rem; }

/* Progress */
.progress-bar {
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 50rem;
  margin: 0 4rem;
}
.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  z-index: 1;
}
.progress-step__circle {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.4);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
  font-size: 1.2rem;
  color: #fff;
  font-weight: 700;
}
.progress-step.active .progress-step__circle {
  background: #fff;
  border-color: #fff;
  box-shadow: 0 0 14px rgba(255,255,255,0.5);
}
.progress-step.completed .progress-step__circle {
  background: #00eba9;
  border-color: #00eba9;
}
.progress-step.completed .progress-step__circle::after { content: '✓'; }
.progress-step__label {
  font-size: 1.15rem;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  white-space: nowrap;
}
.progress-step.active .progress-step__label { color: #fff; font-weight: 700; }
.progress-step.completed .progress-step__label { color: rgba(255,255,255,0.8); }
.progress-line {
  flex: 1;
  height: 2px;
  background: rgba(255,255,255,0.25);
  margin-bottom: 2rem;
}
.checkout-header__secure {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 0.7rem 1.4rem;
  border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: 3rem;
  white-space: nowrap;
}
.checkout-header__secure svg { width: 1.5rem; height: 1.5rem; }

@media (max-width: 768px) {
  .checkout-header { flex-wrap: wrap; gap: 0.8rem; padding: 1rem 1.2rem; }
  .checkout-header__logo img { height: 2.6rem; }
  .progress-bar { order: 3; margin: 0; max-width: 100%; }
  .progress-step__label { font-size: 1rem; }
  .checkout-header__secure { font-size: 1rem; padding: 0.4rem 0.8rem; gap: 0.5rem; }
  .checkout-header__secure svg { width: 1.2rem; height: 1.2rem; }
}
@media (max-width: 420px) {
  .checkout-header__secure span { display: none; }
  .checkout-header__secure { border: none; padding: 0; }
  .checkout-header__secure svg { width: 2rem; height: 2rem; }
  .progress-step__circle { width: 2rem; height: 2rem; font-size: 1rem; }
  .progress-step__label { font-size: 0.9rem; }
}

/* ===== LAYOUT ===== */
.checkout-step { display: none; }
.checkout-step.active { display: grid; }
.checkout-main {
  max-width: 115rem;
  margin: 3rem auto;
  padding: 0 3rem;
  grid-template-columns: 1fr 38rem;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 1024px) { .checkout-main { grid-template-columns: 1fr; max-width: 60rem; } }
@media (max-width: 580px) { .checkout-main { padding: 0 1rem; margin: 1.5rem auto; gap: 1.5rem; } }

/* ===== FORM ===== */
.form-section {
  background: #fff;
  border-radius: 1.2rem;
  padding: 3.5rem 4rem;
  box-shadow: 0 1px 16px rgba(0,0,0,0.05);
}
@media (max-width: 580px) { .form-section { padding: 2rem 1.5rem; border-radius: 1rem; } }

.form-section__header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid #f0f3f8;
}
.form-section__header-icon {
  width: 4.2rem;
  height: 4.2rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, #0049ff, #1479ff);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.form-section__header-icon svg { width: 2rem; height: 2rem; }
.form-section__header-text h2 { font-size: 1.9rem; font-weight: 800; color: #1a1a2e; }
.form-section__header-text p { font-size: 1.3rem; color: #888; margin-top: 0.2rem; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
}
@media (max-width: 580px) { .form-row { grid-template-columns: 1fr; } }
.form-row--3 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 580px) { .form-row--3 { grid-template-columns: 1fr; } }

.form-group { margin-bottom: 1.6rem; }
.form-group label {
  display: block;
  font-size: 1.25rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 0.6rem;
}
.form-group input {
  width: 100%;
  padding: 1.3rem 1.4rem;
  border: 1.5px solid #dde3ed;
  border-radius: 0.8rem;
  font-size: 1.4rem;
  color: #1a1a2e;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fafbfc;
}
.form-group input:focus {
  border-color: #0049ff;
  box-shadow: 0 0 0 3px rgba(0,73,255,0.08);
  background: #fff;
}
.form-group input::placeholder { color: #b0b8c9; }
.form-group input.error { border-color: #ff3b30; }
.form-group .field-error {
  font-size: 1.15rem;
  color: #ff3b30;
  margin-top: 0.4rem;
  display: none;
}
.form-group input.error + .field-error { display: block; }

.form-group input:disabled {
  background: #f0f3f8;
  color: #999;
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
  gap: 1rem;
  flex-wrap: wrap;
}
@media (max-width: 420px) {
  .form-footer { flex-direction: column; }
  .form-footer .btn-submit { width: 100%; justify-content: center; }
  .form-footer .btn-back { width: 100%; justify-content: center; }
}

/* Checkbox */
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin: 1rem 0;
}
.form-checkbox input[type="checkbox"] {
  width: 1.8rem;
  height: 1.8rem;
  accent-color: #0049ff;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 0.2rem;
}
.form-checkbox label {
  font-size: 1.2rem;
  color: #666;
  line-height: 1.5;
  cursor: pointer;
}

/* ===== BUTTONS ===== */
.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  background: #0049ff;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  padding: 1.4rem 3rem;
  border: none;
  border-radius: 0.8rem;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn-submit:hover {
  background: #003acc;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,73,255,0.3);
}
.btn-submit svg { width: 1.8rem; height: 1.8rem; transition: transform 0.2s; }
.btn-submit:hover svg { transform: translateX(3px); }

.btn-submit--green {
  background: linear-gradient(135deg, #00eba9, #00c896);
  color: #003d2e;
  font-size: 1.7rem;
  padding: 1.6rem 4rem;
  animation: pulse-green 2s ease-in-out infinite;
}
.btn-submit--green:hover {
  background: linear-gradient(135deg, #00c896, #00eba9);
  box-shadow: 0 4px 20px rgba(0,235,169,0.4);
  animation: none;
}
@media (max-width: 420px) {
  .btn-submit { font-size: 1.3rem; padding: 1.2rem 2rem; }
  .btn-submit--green { font-size: 1.5rem; padding: 1.4rem 2rem; }
}
@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 8px rgba(0,235,169,0.3); }
  50% { box-shadow: 0 0 22px rgba(0,235,169,0.6); }
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #e8edf3;
  color: #555;
  font-size: 1.4rem;
  font-weight: 600;
  padding: 1.2rem 2rem;
  border: none;
  border-radius: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-back:hover { background: #dde3ed; }
.btn-back svg { width: 1.6rem; height: 1.6rem; transform: rotate(180deg); }

/* ===== PLANS SIDEBAR ===== */
.plans-section {
  background: #fff;
  border-radius: 1.2rem;
  padding: 3rem;
  box-shadow: 0 1px 16px rgba(0,0,0,0.05);
  position: sticky;
  top: 8.5rem;
}
@media (max-width: 1024px) { .plans-section { position: static; } }
.plans-section__title { font-size: 2rem; font-weight: 800; margin-bottom: 2rem; }

.plan-option {
  border: 2px solid #0049ff;
  border-radius: 1.2rem;
  padding: 2.2rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(0,73,255,0.02), rgba(0,235,169,0.03));
  box-shadow: 0 0 0 1px #0049ff;
}
.plan-option__badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: linear-gradient(135deg, #f5d020, #f5ab23);
  color: #1a1a2e;
  font-size: 0.95rem;
  font-weight: 800;
  padding: 0.4rem 2.2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transform: rotate(20deg) translate(8px, -4px);
  transform-origin: top right;
}
.plan-option__header { display: flex; align-items: flex-start; gap: 1.2rem; }
.plan-option__radio {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 2px solid #0049ff;
  flex-shrink: 0;
  margin-top: 0.2rem;
  position: relative;
}
.plan-option__radio::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1rem;
  height: 1rem;
  background: #0049ff;
  border-radius: 50%;
}
.plan-option__info { flex: 1; }
.plan-option__name { font-size: 1.9rem; font-weight: 800; color: #0049ff; margin-bottom: 0.3rem; }
.plan-option__price-line { font-size: 1.35rem; color: #666; margin-bottom: 0.2rem; }
.plan-option__pix { font-size: 1.4rem; font-weight: 700; color: #1a1a2e; }
.plan-option__details {
  margin-top: 1rem;
  font-size: 1.2rem;
  color: #0049ff;
  font-weight: 600;
}
.plan-option__coupon { margin-top: 1rem; }
.plan-option__coupon input {
  padding: 0.7rem 1rem;
  border: 1.5px solid #dde3ed;
  border-radius: 0.6rem;
  font-size: 1.2rem;
  width: 13rem;
  outline: none;
  background: #fafbfc;
}
.plan-option__coupon input:focus { border-color: #0049ff; }

/* Trust badges */
.trust-badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #f0f3f8;
}
.trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-size: 1.05rem;
  color: #888;
  font-weight: 600;
  text-align: center;
}
.trust-badge svg {
  width: 2.2rem;
  height: 2.2rem;
  opacity: 0.5;
}

/* ===== SUB-STEPS ===== */
.sub-step {
  display: none;
}
.sub-step.active {
  display: block;
  animation: slideIn 0.35s ease-out;
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ===== EMAIL AUTOCOMPLETE ===== */
.form-group--email-wrap {
  position: relative;
}
.email-suggestions {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1.5px solid #dde3ed;
  border-top: none;
  border-radius: 0 0 0.8rem 0.8rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  z-index: 20;
  max-height: 20rem;
  overflow-y: auto;
}
.email-suggestions.active {
  display: block;
}
.email-suggestion {
  padding: 1.1rem 1.4rem;
  font-size: 1.35rem;
  color: #333;
  cursor: pointer;
  transition: background 0.15s;
}
.email-suggestion:hover {
  background: #eef2ff;
  color: #0049ff;
}

/* ===== PIX PAYMENT ===== */
.pix-info-banner {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: linear-gradient(135deg, rgba(0,235,169,0.08), rgba(0,200,150,0.06));
  border: 1.5px solid rgba(0,235,169,0.25);
  border-radius: 1rem;
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
}
.pix-info-banner__icon {
  width: 4rem;
  height: 4rem;
  flex-shrink: 0;
}
.pix-info-banner strong {
  font-size: 1.4rem;
  color: #1a1a2e;
  display: block;
}
.pix-info-banner p {
  font-size: 1.2rem;
  color: #555;
  margin-top: 0.2rem;
}
@media (max-width: 420px) {
  .pix-info-banner { padding: 1.2rem 1.5rem; gap: 1rem; }
  .pix-info-banner__icon { width: 3rem; height: 3rem; }
  .pix-info-banner strong { font-size: 1.25rem; }
  .pix-info-banner p { font-size: 1.1rem; }
}

.payment-form { display: none; }
.payment-form.active {
  display: block;
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* PIX result */
.pix-result {
  text-align: center;
  padding: 2rem;
  display: none;
}
.pix-result.active { display: block; animation: fadeIn 0.4s ease; }
.pix-result__qr {
  width: 24rem;
  height: 24rem;
  margin: 1.5rem auto;
  border: 2px solid #e8edf3;
  border-radius: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}
.pix-result__qr img { width: 100%; height: 100%; object-fit: contain; padding: 1rem; }
.pix-result__code {
  background: #f0f3f8;
  border-radius: 0.8rem;
  padding: 1.2rem;
  font-size: 1.1rem;
  word-break: break-all;
  color: #555;
  margin: 1.5rem 0;
  max-height: 6rem;
  overflow: auto;
}
.pix-result__copy {
  background: #0049ff;
  color: #fff;
  border: none;
  padding: 1.2rem 3rem;
  border-radius: 0.8rem;
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.pix-result__copy:hover { background: #003acc; }
.pix-result__timer {
  font-size: 1.3rem;
  color: #888;
  margin-top: 1.5rem;
}
.pix-result__timer strong { color: #0049ff; font-size: 2rem; }

/* Order summary */
.order-summary {
  background: #f8f9fb;
  border-radius: 1rem;
  padding: 2rem;
  margin: 2rem 0;
}
.order-summary__row {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  font-size: 1.35rem;
  color: #555;
}
.order-summary__row--total {
  border-top: 2px solid #e8edf3;
  margin-top: 0.8rem;
  padding-top: 1rem;
  font-size: 1.7rem;
  font-weight: 800;
  color: #1a1a2e;
}

/* ===== CONFIRMATION ===== */
.confirmation-section { text-align: center; padding: 4rem 2rem; }
.confirmation-icon {
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  background: #00eba9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}
.confirmation-icon svg { width: 3.5rem; height: 3.5rem; fill: #fff; }
.confirmation-title { font-size: 2.6rem; font-weight: 800; margin-bottom: 1rem; }
.confirmation-text { font-size: 1.5rem; color: #666; line-height: 1.6; max-width: 45rem; margin: 0 auto; }

/* ===== HELP FLOAT ===== */
.help-float {
  position: fixed;
  bottom: 2.5rem;
  right: 2.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 50;
}
.help-float__btn {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  padding: 1.1rem 2.2rem;
  border-radius: 5rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(37,211,102,0.4);
  transition: all 0.3s;
}
.help-float__btn:hover { transform: translateY(-2px); }
.help-float__whatsapp {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(37,211,102,0.4);
  position: relative;
  cursor: pointer;
  transition: transform 0.3s;
}
.help-float__whatsapp:hover { transform: scale(1.08); }
.help-float__whatsapp svg { width: 2.8rem; height: 2.8rem; fill: #fff; }
.help-float__whatsapp-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 1.8rem;
  height: 1.8rem;
  background: #ff3b30;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== LOADING ===== */
.spinner {
  width: 2rem;
  height: 2rem;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: none;
}
.btn-submit.loading .spinner { display: inline-block; }
.btn-submit.loading { pointer-events: none; opacity: 0.8; }
@keyframes spin { to { transform: rotate(360deg); } }

