/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #f5f5f5;
  color: #333;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* Blurred Background */
.blurred-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: blur(15px);
  z-index: -1;
  opacity: 0.2;
}

/* Page Title */
h1 {
  text-align: center;
  margin: 20px 0;
  font-size: 2rem;
}

/* Main Container */
.checkout-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding: 20px;
  flex-direction: row-reverse;
}

/* Cart Section - smaller card */
.cart-section {
  flex: 1 1 30%;
  min-width: 280px;
  /* background-color: #fff; */
  border-radius: 12px;
  /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); */
  padding: 20px;
}

.cart-section h2 {
  margin-bottom: 15px;
}

.cart-list {
  list-style: none;
}

.cart-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  gap: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
  flex-direction: column;
  text-align: center;

}

.cart-item img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 6px;
}

.cart-details {
  font-size: 0.95rem;
}

.cart-summary {
  margin-top: 15px;
  font-size: 1.1rem;
  font-weight: bold;
}

/* Form Section - bigger card */
.form-section {
  flex: 1 1 65%;
  min-width: 320px;
}
.form-grid label {
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #333;
}

/* Card Styles */
.checkout-form {
  width: 100%;
  padding: 2rem;
  /* background-color: #ffffff; */
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.08);
}

.checkout-form h3 {
  margin-bottom: 1rem;

  font-size: 1.3rem;
}

/* Form Grid: 2 columns */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.form-grid p {
  margin: 0;
  display: flex;
  flex-direction: column;
}

.form-grid label {
  margin-bottom: 5px;
  font-weight: 500;
  font-size: 0.95rem;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  background-color: #fafafa;
  transition: border-color 0.3s;
}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  border-color: #f37254;
  outline: none;
  background-color: #fff;
}

/* Horizontal Rule */
hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 20px 0;
}

/* Payment Summary */
.payment-summary {
  margin-top: 20px;
  font-size: 1.1rem;
}

/* Buttons */
.checkout-btn,
.pay-now-btn {
  background-color: #F37254;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.2s ease;
}

.checkout-btn:hover,
.pay-now-btn:hover {
  background-color: #d95a3c;
}

/* Pay Now Button (hidden initially) */
#payment-section {
  display: none;
  text-align: center;
  margin-top: 20px;
}

/* Loading Message */
#loading-message {
  text-align: center;
  font-size: 1.2rem;
  color: #555;
  margin-top: 30px;
}

/* Responsive Layout */
@media (max-width: 768px) {
  .checkout-container {
    flex-direction: column;
    align-items: stretch;
  }

  .cart-section,
  .form-section {
    flex: 1 1 100%;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}
#loading-message {
  text-align: center;
  font-size: 1.3rem;
  padding: 20px;
  color: #333;
  background-color: #fff3e0;
  border: 1px solid #ffc107;
  border-radius: 8px;
  margin: 20px auto;
  max-width: 400px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
* {
  font-weight: bold !important;
  font-family: 'Cormorant Garamond', serif !important;
  text-decoration: none !important;
}
