/* ========================================
   FRITOS CHICKEN - CHECKOUT PAGE STYLES
   ======================================== */

/* ===== CHECKOUT HERO ===== */
.checkout-hero {
  background: linear-gradient(135deg, #1a0000, #3b0a0a);
  padding: 120px 20px 50px;
  text-align: center;
}

.checkout-hero h1 {
  color: #ffffff;
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 12px;
}

.checkout-hero-subtitle {
  color: #9ca3af;
  font-size: 18px;
}

/* ===== EMPTY CART STATE ===== */
.checkout-empty {
  background: #0f172a;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}

.checkout-empty-content {
  text-align: center;
}

.checkout-empty-icon {
  font-size: 64px;
  margin-bottom: 20px;
}

.checkout-empty-content h2 {
  color: #ffffff;
  font-size: 32px;
  margin-bottom: 12px;
}

.checkout-empty-content p {
  color: #9ca3af;
  font-size: 18px;
  margin-bottom: 24px;
}

/* ===== CHECKOUT CONTAINER ===== */
.checkout-container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px 80px;
  background: #0f172a;
}

/* ===== ORDER SUMMARY ===== */
.order-summary {
  background: rgba(30, 10, 10, 0.8);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 16px;
  padding: 32px;
  height: fit-content;
  position: sticky;
  top: 100px;
}

.order-summary h2 {
  color: #f59e0b;
  font-size: 28px;
  margin-bottom: 24px;
}

.order-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #f3f4f6;
}

.order-item-name {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
}

.order-item-qty {
  color: #9ca3af;
  font-size: 14px;
  margin: 0 12px;
  min-width: 30px;
  text-align: center;
}

.order-item-price {
  color: #f59e0b;
  font-weight: 700;
  font-size: 15px;
  min-width: 65px;
  text-align: right;
}

/* ===== ORDER TOTALS ===== */
.order-totals {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.total-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  color: #9ca3af;
  font-size: 16px;
}

.total-final {
  color: #f59e0b;
  font-size: 22px;
  font-weight: 800;
  border-top: 2px solid rgba(245, 158, 11, 0.3);
  margin-top: 8px;
  padding-top: 16px;
}

.back-to-menu-link {
  display: inline-block;
  margin-top: 20px;
  color: #9ca3af;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.3s ease;
}

.back-to-menu-link:hover {
  color: #f59e0b;
}

/* ===== CHECKOUT FORM ===== */
.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ===== ORDER TYPE SELECTOR ===== */
.order-type-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.order-type-btn {
  background: rgba(30, 10, 10, 0.8);
  border: 2px solid rgba(239, 68, 68, 0.3);
  color: #f3f4f6;
  padding: 16px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
}

.order-type-btn:hover {
  border-color: rgba(239, 68, 68, 0.6);
}

.order-type-btn.active {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #ffffff;
}

/* ===== FORM SECTIONS ===== */
.form-section {
  background: rgba(30, 10, 10, 0.8);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 16px;
  padding: 28px;
}

.form-section h3 {
  color: #f59e0b;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
}

.checkout-form input,
.checkout-form textarea {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 16px;
  width: 100%;
  margin-bottom: 12px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

.checkout-form input:focus,
.checkout-form textarea:focus {
  outline: none;
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.checkout-form input::placeholder,
.checkout-form textarea::placeholder {
  color: #6b7280;
}

.checkout-form textarea {
  min-height: 80px;
  resize: vertical;
}

/* ===== PICKUP ADDRESS CARD ===== */
.pickup-address-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 10px;
  padding: 16px 20px;
  color: #f3f4f6;
  font-size: 16px;
  line-height: 1.8;
}

.pickup-note {
  color: #10b981;
  font-size: 14px;
  font-weight: 600;
  margin-top: 8px;
}

/* ===== STRIPE PLACEHOLDER ===== */
.stripe-card-placeholder {
  background: rgba(15, 23, 42, 0.9);
  border: 2px dashed rgba(245, 158, 11, 0.4);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  text-align: center;
  color: #9ca3af;
}

.stripe-placeholder-ui p:first-child {
  font-size: 16px;
  font-weight: 700;
  color: #f3f4f6;
  margin-bottom: 4px;
}

.stripe-note {
  font-size: 13px;
  color: #6b7280;
  margin-top: 8px;
  margin-bottom: 16px;
}

.fake-card-input {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 16px;
  text-align: left;
}

.fake-card-row {
  display: flex;
  justify-content: space-between;
  color: #4b5563;
  font-size: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 12px;
}

.fake-card-row-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  color: #4b5563;
  font-size: 14px;
}

/* ===== PAY NOW BUTTON ===== */
.pay-now-btn {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: #ffffff;
  border: none;
  padding: 20px;
  border-radius: 12px;
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
  font-family: 'Inter', sans-serif;
}

.pay-now-btn:hover {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 12px 35px rgba(245, 158, 11, 0.5);
  transform: translateY(-2px);
}

.pay-now-btn:active {
  transform: translateY(0);
}

.pay-now-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.secure-notice {
  text-align: center;
  color: #6b7280;
  font-size: 14px;
  margin-top: 12px;
}

/* ===== CONFIRMATION MODAL ===== */
.confirmation-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}

.confirmation-overlay.active {
  display: flex;
}

.confirmation-modal {
  background: #1a0a0a;
  border: 2px solid rgba(245, 158, 11, 0.4);
  border-radius: 20px;
  padding: 48px 40px;
  text-align: center;
  max-width: 450px;
  width: 100%;
  animation: modalSlideIn 0.4s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.confirmation-icon {
  font-size: 64px;
  margin-bottom: 20px;
}

.confirmation-modal h2 {
  color: #f59e0b;
  font-size: 32px;
  margin-bottom: 12px;
}

.confirmation-text {
  color: #f3f4f6;
  font-size: 17px;
  margin-bottom: 8px;
  line-height: 1.6;
}

.confirmation-detail {
  color: #9ca3af;
  font-size: 15px;
  margin-bottom: 28px;
}

/* ===== FORM VALIDATION STYLES ===== */
.checkout-form input.error,
.checkout-form textarea.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.form-error-message {
  color: #ef4444;
  font-size: 13px;
  margin-top: -8px;
  margin-bottom: 8px;
  display: none;
}

.form-error-message.show {
  display: block;
}

/* ===== RESPONSIVE ===== */

/* Tablet */
@media (max-width: 1024px) {
  .checkout-hero h1 {
    font-size: 40px;
  }

  .checkout-container {
    gap: 30px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .checkout-hero {
    padding: 100px 20px 40px;
  }

  .checkout-hero h1 {
    font-size: 32px;
  }

  .checkout-container {
    grid-template-columns: 1fr;
    padding: 30px 16px 60px;
  }

  .order-summary {
    position: relative;
    top: 0;
    padding: 24px;
  }

  .order-summary h2 {
    font-size: 24px;
  }

  .total-final {
    font-size: 20px;
  }

  .form-section {
    padding: 22px 18px;
  }

  .form-section h3 {
    font-size: 18px;
  }

  .pay-now-btn {
    font-size: 17px;
    padding: 16px;
  }

  .confirmation-modal {
    padding: 36px 24px;
  }

  .confirmation-modal h2 {
    font-size: 26px;
  }
}

/* Small Mobile */
@media (max-width: 400px) {
  .checkout-hero h1 {
    font-size: 28px;
  }

  .order-type-btn {
    font-size: 14px;
    padding: 12px;
  }

  .checkout-form input,
  .checkout-form textarea {
    padding: 12px 14px;
    font-size: 15px;
  }
}
