/* ==========================================================================
   CHECKOUT PAGE STYLES — ELECTRIC EMERALD & OBSIDIAN THEME
   ========================================================================== */

.checkout-page {
  min-height: 100vh;
  background: var(--ink);
  color: var(--text-main);
  display: flex;
  flex-direction: column;
}

/* Header */
.checkout-header {
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  padding: 18px 0;
}

.checkout-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.checkout-brand {
  font-family: 'Anton', Impact, sans-serif;
  letter-spacing: 2px;
  font-size: 20px;
  color: #fff;
}

.checkout-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent-soft);
  background: var(--accent-subtle);
  border: 1px solid var(--accent-border);
  padding: 6px 14px;
  border-radius: 100px;
}

/* Main Layout */
.checkout-main {
  flex: 1;
  padding: 40px 22px 60px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: start;
}

/* Left Card: Form */
.checkout-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.form-header {
  margin-bottom: 24px;
}

.step-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-subtle);
  border: 1px solid var(--accent-border);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 8px;
}

.form-header h2 {
  font-size: clamp(22px, 3.2vw, 30px);
  margin-bottom: 6px;
  color: #fff;
}

.step-sub {
  font-size: 14px;
  color: var(--muted);
}

/* Input Fields */
.form-group-section {
  display: grid;
  gap: 18px;
  margin-bottom: 26px;
}

.input-wrapper {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.input-wrapper label {
  font-size: 13.5px;
  font-weight: 700;
  color: #E2E8F0;
}

.req {
  color: #EF4444;
}

.form-input {
  width: 100%;
  background: #06080D;
  border: 1px solid var(--line);
  color: #fff;
  padding: 13px 16px;
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-input::placeholder {
  color: #64748B;
}

.phone-input-group {
  display: flex;
  align-items: stretch;
  background: #06080D;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.phone-input-group:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.country-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  background: var(--panel-2);
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  border-right: 1px solid var(--line);
  user-select: none;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1;
}

.country-code .flag-icon {
  font-size: 16px;
  line-height: 1;
  display: inline-block;
}

.country-code .dial-code {
  color: #E2E8F0;
  font-family: 'Space Grotesk', inherit, sans-serif;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.phone-input {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 13px 16px;
  font-size: 15px;
  color: #fff;
}

.phone-input:focus {
  box-shadow: none;
  border: none;
  outline: none;
}

.error-msg {
  font-size: 12px;
  color: #F87171;
  display: none;
}

.error-msg.visible {
  display: block;
}

/* Payment Divider */
.payment-section-title {
  margin: 28px 0 16px;
}

.payment-title {
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-soft);
  margin-bottom: 8px;
}

.payment-bar {
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--accent), transparent);
}

/* Product Selection */
.product-selection-box {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
}

.product-selection-header {
  display: grid;
  grid-template-columns: 1fr 90px 100px;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2);
}

.product-selection-row {
  display: grid;
  grid-template-columns: 1fr 90px 100px;
  padding: 14px 16px;
  align-items: center;
}

.product-info-col {
  display: flex;
  align-items: center;
  gap: 10px;
}

.custom-radio {
  accent-color: var(--accent);
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.product-label {
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.product-label strong {
  font-size: 15px;
  color: #fff;
}

.product-tag {
  font-size: 11px;
  color: var(--accent-soft);
  font-weight: 700;
}

.product-qty-col {
  font-weight: 700;
  color: #fff;
}

.product-price-col {
  font-family: 'Anton', Impact, sans-serif;
  font-size: 20px;
  color: var(--accent);
  letter-spacing: 0.5px;
}

/* Multi-Bump Wrapper */
.multi-bump-wrapper {
  margin-bottom: 24px;
}

.multi-bump-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
}

.multi-bump-title span {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--accent);
  text-transform: uppercase;
}

.multi-bump-title small {
  font-size: 12.5px;
  color: var(--muted);
}

/* Order Bump Box Base */
.order-bump-box {
  border: 2px dashed var(--accent-border);
  background: rgba(0, 229, 153, 0.04);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 14px;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.order-bump-box:hover,
.order-bump-box.active {
  background: rgba(0, 229, 153, 0.09);
  border-color: var(--accent);
  box-shadow: 0 0 24px rgba(0, 229, 153, 0.16);
}

/* Master Bundle Card */
.master-bump-box {
  border: 2px solid var(--accent);
  background: linear-gradient(180deg, rgba(0, 229, 153, 0.12), rgba(14, 18, 27, 0.95));
  box-shadow: 0 10px 30px rgba(0, 229, 153, 0.12);
}

.save-badge {
  font-size: 11px;
  background: #EF4444;
  color: #fff;
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

/* Divider Between Master & Singles */
.bump-or-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 18px 0 14px;
  position: relative;
}

.bump-or-divider::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
  z-index: 1;
}

.bump-or-divider span {
  position: relative;
  z-index: 2;
  background: var(--panel);
  padding: 0 14px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--muted);
}

/* Mini Bump Cards */
.mini-bump {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
  padding: 14px 16px;
  margin-bottom: 10px;
}

.mini-bump:hover,
.mini-bump.active {
  border-color: var(--accent);
  background: rgba(0, 229, 153, 0.06);
}

.bump-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.bump-price-badge {
  font-family: 'Anton', Impact, sans-serif;
  font-size: 16px;
  color: var(--accent);
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.bump-arrow {
  width: 28px;
  height: 16px;
  animation: bounceRight 1.5s infinite;
  flex-shrink: 0;
}

@keyframes bounceRight {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(5px); }
}

.bump-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  flex: 1;
}

.bump-checkbox {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}

.bump-headline {
  font-weight: 800;
  font-size: 14.5px;
  color: #fff;
}

.oto-headline {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 6px;
}

.bump-desc {
  font-size: 13px;
  color: #CBD5E1;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bump-warning {
  color: #FBBF24;
  font-weight: 700;
  font-size: 12px;
}

.bump-row .item-name {
  color: var(--accent-soft);
  font-weight: 600;
}

/* Order Summary */
.order-summary-section {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 24px;
}

.summary-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin-bottom: 12px;
}

.summary-table {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.summary-head {
  display: grid;
  grid-template-columns: 1fr 80px 100px;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  color: #64748B;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

.summary-row {
  display: grid;
  grid-template-columns: 1fr 80px 100px;
  font-size: 14.5px;
  color: #E2E8F0;
  align-items: center;
}

.summary-divider {
  height: 1px;
  background: var(--line);
  margin: 6px 0;
}

.summary-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 17px;
}

.total-amt {
  font-family: 'Anton', Impact, sans-serif;
  font-size: 26px;
  color: var(--accent);
  letter-spacing: 0.5px;
}

/* Pay Button */
.submit-block {
  margin-top: 10px;
}

.pay-btn {
  width: 100%;
  background: var(--accent);
  color: #000;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.4px;
  padding: 18px 24px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 10px 30px var(--accent-glow);
  transition: transform 0.18s, background 0.18s, box-shadow 0.18s;
  cursor: pointer;
  border: none;
}

.pay-btn:hover {
  background: var(--accent-deep);
  transform: translateY(-2px);
  box-shadow: 0 14px 40px var(--accent-glow);
}

.pay-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--accent-soft);
  font-size: 14px;
  font-weight: 700;
  margin-top: 14px;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(0, 229, 153, 0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Order Footer */
.order-form-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.payment-methods-icons {
  font-size: 11.5px;
  color: #64748B;
  letter-spacing: 1px;
}

/* Right Column: Visual Mockup Sidebar */
.checkout-sidebar-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 24px;
}

.sidebar-product-header {
  background: linear-gradient(135deg, rgba(0, 229, 153, 0.08) 0%, rgba(5, 11, 20, 0.95) 100%);
  border: 1px solid rgba(0, 229, 153, 0.25);
  border-radius: 14px;
  padding: 22px 20px;
}

.sph-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--accent);
  background: rgba(0, 229, 153, 0.12);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.sph-title {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 6px;
  font-family: 'Space Grotesk', inherit, sans-serif;
}

.sph-sub {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.sidebar-benefits {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
}

.sidebar-benefits h4 {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.sidebar-benefits ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: #CBD5E1;
  line-height: 1.45;
}

.sidebar-benefits li span {
  color: var(--accent);
  font-weight: 800;
  flex: 0 0 auto;
}

.sidebar-guarantee-box {
  display: flex;
  gap: 14px;
  background: rgba(0, 229, 153, 0.05);
  border: 1px solid var(--accent-border);
  border-radius: 14px;
  padding: 16px 18px;
}

.sg-icon {
  font-size: 24px;
  flex: 0 0 auto;
}

.sg-text strong {
  display: block;
  font-size: 14px;
  color: #fff;
  margin-bottom: 4px;
}

.sg-text p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

/* Footer */
.checkout-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  background: var(--panel);
  text-align: center;
  margin-top: auto;
}

.checkout-footer .foot-links {
  justify-content: center;
  margin-bottom: 12px;
}

/* Responsive */
@media (max-width: 900px) {
  .checkout-grid {
    grid-template-columns: 1fr;
  }

  .checkout-card {
    padding: 24px 18px;
  }

  .checkout-sidebar-card {
    position: static;
  }

  .product-selection-header,
  .product-selection-row {
    grid-template-columns: 1fr 60px 80px;
    font-size: 13px;
  }

  .summary-head,
  .summary-row {
    grid-template-columns: 1fr 60px 80px;
  }
}
