/* ============================================= */
/* ===== CHECKOUT PAGE — MODERN HIGH CONTRAST ===== */
/* ============================================= */

/* ===== HEADER ===== */
.checkout-header {
  position: relative;
  padding: 160px 20px 60px;
  text-align: center;
  background: linear-gradient(135deg, #00111f 0%, #0a1929 50%, #001f3f 100%);
  overflow: hidden;
}

.checkout-header::before {
  content: '';
  position: absolute;
  top: 20%; left: 15%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0, 180, 216, 0.18) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(80px);
}

.checkout-header::after {
  content: '';
  position: absolute;
  bottom: 10%; right: 10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(244, 169, 0, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(80px);
}

.checkout-header-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.checkout-badge {
  display: inline-block;
  padding: 10px 24px;
  background: rgba(0, 180, 216, 0.15);
  color: #90e0ef;
  border: 1px solid rgba(0, 180, 216, 0.5);
  border-radius: 40px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.checkout-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 64px;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 16px;
  letter-spacing: -2px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.9);
}

.checkout-header p {
  font-size: 18px;
  color: #90e0ef;
  font-style: italic;
  font-family: 'Playfair Display', serif;
}

/* ===== MAIN SECTION ===== */
.checkout-main {
  background: #f1f5f9;
  padding: 60px 0 120px;
  position: relative;
}

.checkout-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== STEPS ===== */
.checkout-steps {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 50px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 17px;
  border: 2px solid #e2e8f0;
  transition: all 0.3s ease;
}

.step.active .step-num {
  background: linear-gradient(135deg, #00b4d8, #90e0ef);
  color: #00111f;
  border-color: #00b4d8;
  box-shadow: 0 8px 24px rgba(0, 180, 216, 0.4);
  transform: scale(1.05);
}

.step.done .step-num {
  background: #10b981;
  color: #ffffff;
  border-color: #10b981;
}

.step-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: #94a3b8;
}

.step.active .step-label {
  color: #00b4d8;
}

.step.done .step-label {
  color: #10b981;
}

.step-line {
  flex: 1;
  height: 3px;
  background: #e2e8f0;
  max-width: 100px;
  margin-bottom: 30px;
  border-radius: 2px;
}

.step-line.active {
  background: linear-gradient(90deg, #10b981, #00b4d8);
}

/* ===== GRID ===== */
.checkout-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 32px;
  align-items: start;
}

/* ============================================= */
/* ===== FORM CARD (WHITE) ===== */
/* ============================================= */
.form-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 44px 40px;
  box-shadow: 
    0 4px 6px rgba(0, 0, 0, 0.02),
    0 20px 60px rgba(0, 31, 63, 0.08);
  border: 1px solid #e2e8f0;
}

.form-section {
  margin-bottom: 40px;
}

.form-section:last-child {
  margin-bottom: 0;
}

.section-heading {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  color: #001f3f;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 2px solid #e2e8f0;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
}

.heading-icon {
  font-size: 26px;
}

/* ===== FORM FIELDS ===== */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #001f3f;
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.req {
  color: #ef4444;
  font-weight: 800;
}

.opt {
  color: #94a3b8;
  font-weight: 500;
  font-size: 12px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  color: #001f3f;
  background: #f8fafc;
  transition: all 0.2s ease;
  outline: none;
  font-weight: 500;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
  border-color: #cbd5e1;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #00b4d8;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(0, 180, 216, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
  font-family: 'Inter', sans-serif;
}

/* ===== PAYMENT METHODS ===== */
.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.payment-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.25s ease;
  background: #ffffff;
}

.payment-option:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.payment-option input[type="radio"] {
  width: 20px;
  height: 20px;
  accent-color: #00b4d8;
  cursor: pointer;
  flex-shrink: 0;
}

.payment-icon {
  font-size: 22px;
}

.payment-label {
  font-weight: 600;
  color: #001f3f;
  font-size: 15px;
}

.payment-option:has(input:checked) {
  border-color: #00b4d8;
  background: rgba(0, 180, 216, 0.06);
  box-shadow: 0 0 0 4px rgba(0, 180, 216, 0.12);
}

.secure-note {
  text-align: center;
  padding: 16px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 12px;
  font-size: 13px;
  color: #047857;
  font-weight: 600;
  margin-top: 20px;
}

/* ============================================= */
/* ===== SUMMARY CARD (DARK — CONTRAST) ===== */
/* ============================================= */
.summary-card {
  background: linear-gradient(145deg, #001f3f 0%, #00111f 100%);
  border-radius: 24px;
  padding: 36px 32px;
  color: #ffffff;
  box-shadow: 
    0 4px 6px rgba(0, 0, 0, 0.1),
    0 20px 60px rgba(0, 31, 63, 0.4);
  border: 1px solid rgba(0, 180, 216, 0.3);
  position: sticky;
  top: 100px;
  overflow: hidden;
}

.summary-card::before {
  content: '';
  position: absolute;
  top: -50%; right: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 100% 0%, rgba(0, 180, 216, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.summary-heading {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  color: #ffffff;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(0, 180, 216, 0.25);
  font-weight: 700;
  position: relative;
}

.summary-product {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
  position: relative;
}

.summary-image {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  background: #ffffff;
  border-radius: 14px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.summary-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.summary-info h3 {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
  line-height: 1.3;
  font-family: 'Inter', sans-serif;
}

.summary-info p {
  font-size: 12px;
  color: #90e0ef;
  font-weight: 500;
}

.summary-line {
  height: 1px;
  background: rgba(0, 180, 216, 0.2);
  margin: 20px 0;
  position: relative;
}

/* ===== QTY ===== */
.qty-block {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.qty-label {
  font-size: 14px;
  font-weight: 600;
  color: #90e0ef;
  letter-spacing: 0.5px;
}

.qty-control {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(0, 180, 216, 0.3);
  border-radius: 12px;
  overflow: hidden;
}

.qty-btn {
  width: 38px;
  height: 38px;
  background: transparent;
  border: none;
  color: #90e0ef;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:hover {
  background: rgba(0, 180, 216, 0.2);
  color: #ffffff;
}

.qty-btn:active {
  transform: scale(0.9);
}

#quantity {
  width: 50px;
  height: 38px;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  outline: none;
  font-family: 'Inter', sans-serif;
  -moz-appearance: textfield;
}

#quantity::-webkit-outer-spin-button,
#quantity::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ===== SUMMARY ROWS ===== */
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  position: relative;
}

.row-value {
  font-weight: 700;
  color: #ffffff;
  font-size: 15px;
}

.row-value.free {
  color: #4ade80;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.summary-row.muted {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

.summary-row.muted .row-value {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
}

/* ===== TOTAL ===== */
.total-block {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-family: 'Playfair Display', serif;
  position: relative;
}

.total-block > span:first-child {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.total-value {
  font-size: 36px;
  font-weight: 900;
  background: linear-gradient(135deg, #f4a900, #ffd166);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
}

/* ===== PLACE ORDER BUTTON ===== */
.place-order-btn {
  width: 100%;
  padding: 20px 24px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, #00b4d8, #90e0ef);
  color: #00111f;
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 
    0 8px 32px rgba(0, 180, 216, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  margin-top: 8px;
  position: relative;
}

.place-order-btn:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 16px 48px rgba(0, 180, 216, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.place-order-btn:active {
  transform: translateY(-1px) scale(0.99);
}

/* ===== BENEFITS ===== */
.benefits-list {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 180, 216, 0.2);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

.benefit {
  font-size: 13px;
  color: #90e0ef;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ============================================= */
/* ===== SUCCESS MODAL ===== */
/* ============================================= */
.checkout-success {
  position: fixed;
  inset: 0;
  background: rgba(0, 17, 31, 0.9);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.success-box {
  background: #ffffff;
  border-radius: 28px;
  padding: 48px 40px;
  max-width: 500px;
  width: 100%;
  text-align: center;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
  animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}

.success-icon {
  font-size: 72px;
  margin-bottom: 20px;
  animation: bounce 0.6s ease;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.success-box h2 {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  color: #001f3f;
  margin-bottom: 16px;
  font-weight: 900;
}

.success-box p {
  color: #475569;
  font-size: 16px;
  margin-bottom: 12px;
  line-height: 1.6;
}

.success-box p strong {
  color: #001f3f;
  font-weight: 700;
}

.success-email {
  color: #00b4d8 !important;
  font-weight: 600;
  font-size: 15px !important;
}

.success-info {
  background: #f1f5f9;
  border-radius: 12px;
  padding: 16px;
  margin: 24px 0;
  border: 1px solid #e2e8f0;
}

.success-info p {
  font-size: 13px;
  color: #64748b;
  margin: 0;
}

.success-box .btn {
  margin-top: 16px;
  padding: 16px 40px;
  background: linear-gradient(135deg, #00b4d8, #90e0ef);
  color: #00111f;
  font-weight: 800;
  border-radius: 14px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(0, 180, 216, 0.4);
}

.success-box .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 180, 216, 0.6);
}

/* ============================================= */
/* ===== RESPONSIVE ===== */
/* ============================================= */
@media (max-width: 968px) {
  .checkout-header h1 { font-size: 44px; }
  .checkout-header { padding: 140px 20px 50px; }
  .checkout-grid { grid-template-columns: 1fr; gap: 24px; }
  .summary-card { position: static; }
  .form-card { padding: 32px 24px; }
  .summary-card { padding: 32px 24px; }
}

@media (max-width: 640px) {
  .checkout-header h1 { font-size: 32px; }
  .checkout-header p { font-size: 15px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-card { padding: 24px 20px; border-radius: 20px; }
  .summary-card { padding: 28px 20px; border-radius: 20px; }
  .section-heading { font-size: 20px; }
  .total-value { font-size: 30px; }
  .success-box { padding: 36px 24px; }
  .success-box h2 { font-size: 24px; }
  .success-icon { font-size: 56px; }
  .checkout-steps { gap: 8px; }
  .step-num { width: 40px; height: 40px; font-size: 15px; }
  .step-label { font-size: 10px; letter-spacing: 1px; }
}
