/* ========================================
   ORDER/CHECKOUT PAGE STYLES
   ======================================== */

/* HERO */
.order-hero {
  padding: 120px 0 60px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  text-align: center;
}

.order-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.order-hero p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
}

/* CHECKOUT SECTION */
.checkout-section {
  padding: 60px 0;
  background: #0a0a0a;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 40px;
  align-items: start;
}

/* CHECKOUT FORM */
.checkout-form {
  background: #151515;
  border: 1px solid #2a2a2a;
  border-radius: 16px;
  padding: 40px;
}

.checkout-form h2 {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 30px;
}

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

.form-group label {
  display: block;
  color: #ccc;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: #0d0d0d;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  color: #fff;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #ff9500;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #666;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.form-group select option {
  background: #151515;
  color: #fff;
}

/* PAYMENT METHODS */
.payment-methods {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid #2a2a2a;
}

.payment-methods h2 {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.payment-option {
  margin-bottom: 12px;
}

.payment-option input[type="radio"] {
  display: none;
}

.payment-label {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: #0d0d0d;
  border: 2px solid #2a2a2a;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.payment-label:hover {
  border-color: #444;
}

.payment-option input[type="radio"]:checked + .payment-label {
  border-color: #ff9500;
  background: rgba(255, 149, 0, 0.05);
}

.payment-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1a1a;
  border-radius: 8px;
  flex-shrink: 0;
}

.payment-icon svg {
  width: 24px;
  height: 24px;
}

.payment-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.payment-info strong {
  color: #fff;
  font-size: 1rem;
}

.payment-info span {
  color: #888;
  font-size: 0.85rem;
}

/* ORDER SUMMARY */
.order-summary {
  position: sticky;
  top: 100px;
}

.summary-card {
  background: #151515;
  border: 1px solid #2a2a2a;
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 20px;
}

.summary-card h2 {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.summary-package {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: #0d0d0d;
  border-radius: 12px;
  margin-bottom: 24px;
}

.package-name {
  color: #fff;
  font-weight: 500;
}

.package-price {
  color: #ff9500;
  font-size: 1.25rem;
  font-weight: 700;
}

.summary-details {
  border-top: 1px solid #2a2a2a;
  padding-top: 20px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  color: #888;
}

.summary-row.total {
  border-top: 1px solid #2a2a2a;
  margin-top: 10px;
  padding-top: 20px;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 600;
}

.summary-row.total span:last-child {
  color: #ff9500;
}

.checkout-btn {
  width: 100%;
  padding: 18px;
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 24px;
  border-radius: 12px;
}

.checkout-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #888;
  font-size: 0.85rem;
  margin-top: 16px;
}

/* PAYMENT DETAILS */
.payment-details {
  background: #151515;
  border: 1px solid #2a2a2a;
  border-radius: 16px;
  overflow: hidden;
}

.payment-detail-box {
  padding: 30px;
}

.payment-detail-box h3 {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.payment-detail-box p {
  color: #888;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Card Logos */
.card-logos {
  display: flex;
  gap: 16px;
  margin-top: 20px;
  padding: 16px;
  background: #fff;
  border-radius: 8px;
  justify-content: center;
}

/* QR Code */
.qr-code-container {
  text-align: center;
  margin: 20px 0;
}

.qr-image {
  width: 180px;
  height: 180px;
  margin: 0 auto 20px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  max-width: 160px;
  max-height: 160px;
}

.qr-placeholder {
  width: 200px;
  height: 200px;
  background: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  padding: 20px;
}

.qr-placeholder p {
  color: #666;
  font-size: 0.85rem;
}

.promptpay-info {
  background: #0d0d0d;
  border-radius: 12px;
  padding: 20px;
}

.promptpay-info p {
  margin: 8px 0;
  color: #ccc;
}

.promptpay-info .accepts-note {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #2a2a2a;
  color: #22c55e;
  font-size: 0.85rem;
}

.qr-note, .bank-note {
  margin-top: 20px;
  padding: 16px;
  background: rgba(255, 149, 0, 0.1);
  border-radius: 8px;
  color: #ff9500 !important;
  font-size: 0.9rem !important;
}

/* Bank Info */
.bank-info {
  background: #0d0d0d;
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
}

.bank-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #2a2a2a;
}

.bank-row:last-child {
  border-bottom: none;
}

.bank-row span {
  color: #888;
}

.bank-row strong {
  color: #fff;
}

/* Mobile Logo */
.order-page .mobile-logo {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.order-page .mobile-logo img {
  height: 30px;
  width: auto;
}

@media (min-width: 769px) {
  .order-page .mobile-logo {
    display: none;
  }
}

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

  .order-summary {
    position: static;
  }
}

@media (max-width: 768px) {
  .order-hero {
    padding: 100px 0 40px;
  }

  .order-hero h1 {
    font-size: 1.75rem;
  }

  .checkout-section {
    padding: 40px 0;
  }

  .checkout-form {
    padding: 24px;
  }

  .summary-card {
    padding: 24px;
  }

  .payment-detail-box {
    padding: 24px;
  }
}

/* PayPal Button Container */
#paypal-button-container {
  margin-top: 20px;
}

/* Success/Error Messages */
.message {
  padding: 16px 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  display: none;
}

.message.success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid #22c55e;
  color: #22c55e;
}

.message.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid #ef4444;
  color: #ef4444;
}
