/* ==========================================================================
   GI CARE — CHECKOUT MULTI-ETAPAS STYLES
   Design moderno, intuitivo e focado em alta conversão.
   ========================================================================== */

/* Layout & Container */
.checkout-page {
  background-color: #F8FAFC;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.checkout-header-bar {
  background-color: #FFFFFF;
  border-bottom: 1px solid #E2E8F0;
  padding: 14px 0;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 50;
}

.checkout-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.checkout-logo-group {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}

.checkout-security-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #64748B;
  font-weight: 500;
}

.checkout-security-badge svg {
  color: #059669;
}

.checkout-back-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary, #0047BA);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s ease;
}

.checkout-back-link:hover {
  color: var(--color-primary-dark, #002D7A);
  text-decoration: underline;
}

/* Stepper Progress Bar */
.checkout-stepper-wrapper {
  background-color: #FFFFFF;
  border-bottom: 1px solid #E2E8F0;
  padding: 16px 0;
  margin-bottom: 24px;
}

.checkout-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  max-width: 680px;
  margin: 0 auto;
}

.checkout-stepper::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 40px;
  right: 40px;
  height: 3px;
  background-color: #E2E8F0;
  z-index: 1;
}

.stepper-progress-line {
  position: absolute;
  top: 18px;
  left: 40px;
  height: 3px;
  background-color: var(--color-primary, #0047BA);
  z-index: 2;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0%;
}

.stepper-step {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  group: pointer;
}

.stepper-step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #FFFFFF;
  border: 2px solid #CBD5E1;
  color: #64748B;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.3s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.stepper-step-label {
  font-size: 12px;
  font-weight: 600;
  color: #64748B;
  margin-top: 8px;
  transition: color 0.3s ease;
  white-space: nowrap;
}

/* Stepper States */
.stepper-step.active .stepper-step-circle {
  background-color: var(--color-primary, #0047BA);
  border-color: var(--color-primary, #0047BA);
  color: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(0, 71, 186, 0.18);
}

.stepper-step.active .stepper-step-label {
  color: var(--color-navy, #0B192C);
  font-weight: 700;
}

.stepper-step.completed .stepper-step-circle {
  background-color: #059669;
  border-color: #059669;
  color: #FFFFFF;
}

.stepper-step.completed .stepper-step-label {
  color: #059669;
}

/* Main Grid */
.checkout-main-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  padding: 10px 0 60px 0;
  align-items: flex-start;
}

/* Checkout Box / Cards */
.checkout-step-panel {
  background-color: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
  transition: all 0.3s ease;
  display: none;
}

.checkout-step-panel.active {
  display: block;
  animation: fadeInStep 0.3s ease;
}

@keyframes fadeInStep {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.checkout-step-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #F1F5F9;
}

.checkout-step-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary, #0047BA);
  background: #EFF6FF;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.checkout-step-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-navy, #0B192C);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkout-step-desc {
  font-size: 13px;
  color: #64748B;
  line-height: 1.5;
}

/* Plan Selection Cards */
.plan-choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.plan-choice-card {
  position: relative;
  border: 2px solid #E2E8F0;
  border-radius: 14px;
  padding: 20px;
  background: #FFFFFF;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: left;
}

.plan-choice-card:hover {
  border-color: #93C5FD;
  box-shadow: 0 4px 12px rgba(0, 71, 186, 0.08);
}

.plan-choice-card.selected {
  border-color: var(--color-primary, #0047BA);
  background-color: #F8FAFC;
  box-shadow: 0 0 0 3px rgba(0, 71, 186, 0.12);
}

.plan-choice-badge {
  position: absolute;
  top: -10px;
  right: 16px;
  background: var(--color-cta, #FF6600);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 12px;
  letter-spacing: 0.04em;
}

.plan-choice-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.plan-radio-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #CBD5E1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.plan-choice-card.selected .plan-radio-circle {
  border-color: var(--color-primary, #0047BA);
}

.plan-radio-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-primary, #0047BA);
  display: none;
}

.plan-choice-card.selected .plan-radio-dot {
  display: block;
}

.plan-choice-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--color-navy, #0B192C);
  margin-bottom: 4px;
}

.plan-choice-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--color-primary, #0047BA);
  margin-bottom: 8px;
}

.plan-choice-price small {
  font-size: 12px;
  font-weight: 600;
  color: #64748B;
}

.plan-choice-desc {
  font-size: 12px;
  color: #64748B;
  line-height: 1.45;
}

/* Dependents Management Section */
.dependents-box {
  background: #F8FAFC;
  border: 1px dashed #CBD5E1;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 24px;
  display: none;
}

.dependents-box.active {
  display: block;
}

.dependents-box-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-navy, #0B192C);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dependent-row {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 12px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 36px;
  gap: 10px;
  align-items: center;
  animation: fadeInStep 0.25s ease;
}

.btn-remove-dep {
  width: 36px;
  height: 36px;
  border: 1px solid #FCA5A5;
  background: #FEF2F2;
  color: #EF4444;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-remove-dep:hover {
  background: #EF4444;
  color: #FFFFFF;
}

.btn-add-dep {
  background: #FFFFFF;
  border: 1px dashed var(--color-primary, #0047BA);
  color: var(--color-primary, #0047BA);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-add-dep:hover {
  background: #EFF6FF;
}

/* Corporate Plan Banner */
.corporate-note-card {
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
}

.corporate-note-text {
  font-size: 12px;
  color: #475569;
  line-height: 1.4;
}

.corporate-note-text strong {
  color: var(--color-navy, #0B192C);
  display: block;
  font-size: 13px;
  margin-bottom: 2px;
}

/* Payment Tab Selector — Modern & High-End */
.payment-selector-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.payment-tab-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  padding: 16px 18px;
  background: #FFFFFF;
  border: 2px solid #E2E8F0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  text-align: left;
}

.payment-tab-btn:hover {
  border-color: #94A3B8;
  background: #F8FAFC;
}

.payment-tab-btn.active {
  border-color: var(--color-primary, #0047BA);
  background-color: #F8FAFC;
  box-shadow: 0 0 0 3px rgba(0, 71, 186, 0.12);
}

.payment-tab-btn.active#btn-tab-pix {
  border-color: #00BDAE;
  box-shadow: 0 0 0 3px rgba(0, 189, 174, 0.15);
}

.payment-tab-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.payment-tab-btn.active .payment-tab-icon {
  background: #EFF6FF;
}

.payment-tab-btn.active#btn-tab-pix .payment-tab-icon {
  background: #E6FAF8;
}

.payment-tab-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-navy, #0B192C);
  display: block;
}

.payment-tab-subtitle {
  font-size: 11px;
  color: #64748B;
  display: block;
  margin-top: 2px;
}

.payment-tab-badge {
  font-size: 10px;
  font-weight: 700;
  color: #059669;
  background: #ECFDF5;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  margin-top: 3px;
}

/* Pix Container */
.pix-checkout-box {
  background: #FAFCFE;
  border: 1px solid #E0E7FF;
  border-radius: 14px;
  padding: 28px;
  text-align: center;
}

.pix-qrcode-frame {
  background: #FFFFFF;
  padding: 16px;
  display: inline-flex;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid #E2E8F0;
  margin-bottom: 16px;
}

.pix-copy-box {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 520px;
  margin: 0 auto 16px auto;
}

.pix-key-input {
  flex: 1;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12px;
  color: #334155;
  font-family: monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-copy-pix {
  background: #00BDAE;
  color: #FFFFFF;
  border: none;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-copy-pix:hover {
  background: #00A699;
}

.pix-instruction-list {
  text-align: left;
  max-width: 440px;
  margin: 16px auto 0 auto;
  font-size: 12px;
  color: #64748B;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 20px;
}

/* Credit Card Container */
.card-checkout-box {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 24px;
}

.card-brands-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.card-brand-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  color: #475569;
}

/* Actions Bar */
.checkout-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #F1F5F9;
}

.btn-step-back {
  background: transparent;
  border: 1px solid #CBD5E1;
  color: #475569;
  font-size: 14px;
  font-weight: 600;
  padding: 14px 20px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-step-back:hover {
  background: #F1F5F9;
  color: var(--color-navy, #0B192C);
}

.btn-step-forward {
  flex: 1;
  background: var(--color-cta, #FF6600);
  color: #FFFFFF;
  border: none;
  font-size: 16px;
  font-weight: 800;
  padding: 16px 28px;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255, 102, 0, 0.35);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  letter-spacing: 0.01em;
}

.btn-step-forward:hover {
  background: var(--color-cta-hover, #E05A00);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255, 102, 0, 0.45);
}

/* Security Trust Micro-Bar */
.security-trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 18px;
  font-size: 11px;
  color: #94A3B8;
  flex-wrap: wrap;
}

.security-trust-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ==========================================================================
   SUMMARY CARD (Redesigned & Balanced)
   ========================================================================== */
.order-summary-card {
  background-color: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 90px;
}

.summary-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #F1F5F9;
}

.summary-card-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--color-navy, #0B192C);
  display: flex;
  align-items: center;
  gap: 8px;
}

.summary-plan-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-primary, #0047BA);
  background: #EFF6FF;
  padding: 3px 8px;
  border-radius: 6px;
}

.summary-info-table {
  width: 100%;
  margin-bottom: 16px;
}

.summary-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 13px;
  border-bottom: 1px dashed #F1F5F9;
}

.summary-info-label {
  color: #64748B;
}

.summary-info-value {
  font-weight: 700;
  color: var(--color-navy, #0B192C);
}

.summary-badge-zero {
  color: #059669;
  font-weight: 700;
}

/* Benefits Checklist */
.summary-benefits-box {
  background: #F8FAFC;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 18px;
}

.summary-benefits-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: #64748B;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  display: block;
}

.summary-benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.summary-benefit-item {
  font-size: 12px;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.35;
}

.summary-benefit-item svg {
  color: #059669;
  flex-shrink: 0;
}

/* Total Price Highlight Block */
.summary-total-container {
  background: linear-gradient(135deg, #EFF6FF 0%, #F8FAFC 100%);
  border: 1px solid #DBEAFE;
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.summary-total-labels {
  display: flex;
  flex-direction: column;
}

.summary-total-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--color-navy, #0B192C);
}

.summary-total-sub {
  font-size: 11px;
  color: #059669;
  font-weight: 600;
}

.summary-total-price-box {
  text-align: right;
  white-space: nowrap;
}

.summary-price-value {
  font-family: var(--font-family-display, 'Outfit', sans-serif);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--color-primary, #0047BA);
  line-height: 1;
}

.summary-price-freq {
  font-size: 11px;
  color: #64748B;
  font-weight: 600;
  display: block;
  margin-top: 2px;
}

/* Guarantee Box */
.summary-guarantee-box {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.summary-guarantee-icon {
  color: #16A34A;
  flex-shrink: 0;
  margin-top: 2px;
}

.summary-guarantee-text {
  font-size: 11px;
  color: #166534;
  line-height: 1.4;
}

.summary-guarantee-text strong {
  display: block;
  color: #15803D;
  font-weight: 700;
}

/* ==========================================================================
   SUCCESS / STEP 4 ACTIVATION
   ========================================================================== */
.success-screen-wrapper {
  text-align: center;
  padding: 20px 10px;
}

.success-icon-burst {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #ECFDF5;
  color: #059669;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 0 0 10px rgba(16, 185, 129, 0.12);
}

.success-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-navy, #0B192C);
  margin-bottom: 8px;
}

.success-subtitle {
  font-size: 14px;
  color: #64748B;
  max-width: 520px;
  margin: 0 auto 28px auto;
  line-height: 1.5;
}

.apps-activation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
  text-align: left;
}

.app-card-item {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

.app-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.app-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #EFF6FF;
  color: var(--color-primary, #0047BA);
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-card-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--color-navy, #0B192C);
}

.app-card-badge {
  font-size: 10px;
  color: #64748B;
  display: block;
}

.app-card-body {
  font-size: 11.5px;
  color: #64748B;
  line-height: 1.45;
}

/* Input Error Message */
.input-field-error {
  border-color: #EF4444 !important;
  background-color: #FEF2F2 !important;
}

.error-text-msg {
  color: #DC2626;
  font-size: 11px;
  font-weight: 600;
  margin-top: 4px;
  display: none;
}

/* Responsive Adjustments */
@media (max-width: 960px) {
  .checkout-main-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .order-summary-card {
    position: static;
  }
  .apps-activation-grid {
    grid-template-columns: 1fr;
  }
  .plan-choice-grid {
    grid-template-columns: 1fr;
  }
  .dependent-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .checkout-step-panel {
    padding: 20px 16px;
  }
  .payment-selector-tabs {
    grid-template-columns: 1fr;
  }
  .checkout-stepper-wrapper {
    overflow-x: auto;
  }
  .checkout-stepper {
    min-width: 480px;
    padding: 0 16px;
  }
}
