:root {
  --primary: rgb(255, 255, 255);
  --bg: rgb(218, 194, 131);
  --kolor: rgb(210, 6, 6);
  --teks: black;
  --rgba: rgba(0, 0, 0, 0.2);
}

/* Payment Page Styles */
.payment-container {
  padding: 8rem 5% 2rem;
  min-height: 100vh;
  background: linear-gradient(var(--primary), var(--bg));
}

.payment-header {
  text-align: center;
  margin-bottom: 3rem;
}

.payment-header h1 {
  font-style: italic;
  font-size: 4rem;
  margin-bottom: 1rem;
  color: var(--kolor);
}

.payment-header h1 span {
  color: var(--kolor);
  font-style: italic;
}

.payment-header p {
  font-size: 1.4rem;
  color: var(--teks);
}

.payment-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

/* Order Summary */
.order-summary {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  height: fit-content;
}

.order-summary h3 {
  color: var(--kolor);
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

#order-items {
  margin-bottom: 1.5rem;
}

.order-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid #eee;
}

.order-item:last-child {
  border-bottom: none;
}

.order-item-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.order-item-info img {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
}

.order-item-details h4 {
  margin: 0;
  color: #333;
  font-size: 1rem;
}

.order-item-details p {
  margin: 0.2rem 0 0;
  color: #666;
  font-size: 0.9rem;
}

.order-item-price {
  font-weight: bold;
  color: #d4af37;
}

.order-total {
  border-top: 2px solid #d4af37;
  padding-top: 1rem;
  margin-top: 1rem;
}

.order-total h4 {
  color: var(--kolor);
  font-size: 1.4rem;
  margin: 0;
}

.order-total span {
  color: #d4af37;
  font-weight: bold;
}

/* Payment Methods */
.payment-methods {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.payment-methods h3 {
  color: var(--kolor);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.payment-option {
  margin-bottom: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.payment-option:hover {
  transform: translateY(-2px);
}

.payment-option input[type="radio"] {
  display: none;
}

.payment-option label {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  border: 2px solid #eee;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.payment-option input[type="radio"]:checked + label {
  border-color: #d4af37;
  background: linear-gradient(135deg, #fff9e6 0%, #fff5d6 100%);
}

.payment-option i {
  font-size: 1.5rem;
  color: #d4af37;
  width: 30px;
}

.payment-info h4 {
  margin: 0 0 0.5rem 0;
  color: #333;
  font-size: 1.1rem;
}

.payment-info p {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
}

/* Customer Information */
.customer-info {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  grid-column: 1 / -1;
  margin-top: 2rem;
}

.customer-info h3 {
  color: var(--kolor);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #333;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid #eee;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #d4af37;
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

/* Payment Action */
.payment-action {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 2rem;
}

#pay-button {
  background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
  color: white;
  border: none;
  padding: 1rem 3rem;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

#pay-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

#pay-button:disabled {
  background: var(--kolor);
  cursor: not-allowed;
  box-shadow: none;
}

.payment-note {
  margin-top: 1rem;
  color: var(--teks);
  font-size: 0.9rem;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: white;
  margin: 15% auto;
  padding: 3rem;
  border-radius: 20px;
  width: 90%;
  max-width: 500px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.success-icon {
  margin-bottom: 1.5rem;
}

.success-icon i {
  font-size: 4rem;
  color: #28a745;
}

.modal-content h2 {
  color: #333;
  margin-bottom: 1rem;
}

.modal-content p {
  color: #666;
  margin-bottom: 2rem;
}

.order-details {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 10px;
  margin-bottom: 2rem;
  text-align: left;
}

.order-details p {
  margin: 0.5rem 0;
  color: #333;
}

.modal-content button {
  background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-content button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
  .payment-content {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .payment-container {
    padding: 6rem 3% 2rem;
  }

  .payment-header h1 {
    font-size: 2rem;
  }

  .order-summary,
  .payment-methods,
  .customer-info {
    padding: 1.5rem;
  }

  .modal-content {
    margin: 10% auto;
    padding: 2rem;
  }
}

@media (max-width: 480px) {
  .payment-option label {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .order-item {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  #pay-button {
    padding: 0.8rem 2rem;
    font-size: 1rem;
  }
}

/* Delivery Notice */
.delivery-notice {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  border-radius: 10px;
  margin-bottom: 20px;
  border-left: 4px solid #2196f3;
}

.notice-icon {
  font-size: 2rem;
  color: #2196f3;
}

.notice-content h4 {
  color: #1976d2;
  margin: 0 0 5px 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.notice-content p {
  color: #424242;
  margin: 0;
  font-size: 0.9rem;
}

/* Shipping Item */
.shipping-item {
  background: #f8f9fa;
  border-left: 4px solid #28a745;
}

.shipping-item .order-item-details h4 {
  color: #28a745;
}

.shipping-item .order-item-price {
  color: #28a745;
  font-weight: 700;
}
