* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background-color: #f8f9fa; /* Latar luar putih abu-abu */
  padding: 50px 5%;
  display: flex;
  justify-content: center;
}

/* Kotak Utama Background Abu-abu */
.checkout-container {
  background-color: #ebebeb;
  width: 100%;
  max-width: 1100px;
  border-radius: 30px;
  padding: 40px 60px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.back-link {
  font-size: 1.8rem;
  font-weight: 700;
  color: #000;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 40px;
  transition: transform 0.2s;
}

.back-link:hover {
  transform: translateX(-5px);
}

/* Layout 2 Kolom */
.checkout-content {
  display: flex;
  gap: 60px;
}

.summary-section {
  flex: 1.2;
}
.form-section {
  flex: 1;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

/* TABEL RINGKASAN */
.summary-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 50px;
}

.summary-table th {
  border-bottom: 1px solid #ccc;
  padding-bottom: 15px;
  font-weight: 500;
}

.summary-table td {
  padding: 15px 0;
}

.total-label {
  padding-top: 30px !important;
  font-weight: 500;
}

.total-price {
  padding-top: 30px !important;
  text-align: right;
  font-weight: 600;
}

.disclaimer p {
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.text-red {
  color: #ff4d4d;
}

/* FORM DATA PEMBELI */
.input-group {
  margin-bottom: 20px;
}

.input-group label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

/* Desain Input dan Textarea */
.input-group input,
.input-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ccc; /* Border abu-abu default */
  border-radius: 10px;
  font-size: 0.9rem;
  outline: none;
  background-color: #fff;
  transition: border-color 0.3s;
}

.input-group textarea {
  resize: vertical;
}

/* Placeholder yang memudar saat diisi */
.input-group input::placeholder,
.input-group textarea::placeholder {
  color: #b3b3b3;
  font-weight: 300;
}

/* === CLASS ERROR MERAH (Akan ditambahkan JS jika kosong) === */
.input-error {
  border: 1px solid #ff4d4d !important;
}

.error-text {
  color: #ff4d4d;
  font-size: 0.75rem;
  margin-top: 5px;
  display: none; /* Sembunyi secara default */
}

/* Tombol Pemesanan Hijau */
.btn-pesan {
  background-color: #61c24e;
  color: #fff;
  border: none;
  padding: 12px 40px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  float: right;
  transition: background-color 0.2s;
}

.btn-pesan:hover {
  background-color: #4fa140;
}

/* RESPONSIVE HP */
@media (max-width: 768px) {
  .checkout-content {
    flex-direction: column;
    gap: 40px;
  }
  .checkout-container {
    padding: 30px 20px;
  }
  .btn-pesan {
    width: 100%;
    float: none;
  }
}
