/* ----------------------------------------
   0) GLOBAL RESET & BOX-SIZING
---------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ----------------------------------------
   1) BODY & GENEL
---------------------------------------- */
body {
  background-color: #FBEEDF;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  padding: 20px;
}

/* ----------------------------------------
   2) WRAPPER: PRICE + FORM YAN YANA
---------------------------------------- */
.reservation-wrapper {
  display: flex;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: flex-start;
  animation: fadeIn 0.6s ease-out;
}

/* ----------------------------------------
   3) BLOKLAR İÇİN ORTAK STİL & FADE-IN
---------------------------------------- */
/* <h3> başlık gizle */
#price_receipt h3 {
  display: none;
}

/* Container’lar */
#price_receipt,
.rs-reservation-form {
  position: relative;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  padding: 20px;
  padding-top: 60px; /* Başlık için üst boşluk */
  flex: 1;
  opacity: 0;
  animation: fadeIn 0.6s ease-out forwards;
}
#price_receipt { animation-delay: 0.2s; }
.rs-reservation-form { animation-delay: 0.4s;}

/* data-title ile başlık */
#price_receipt::before,
.rs-reservation-form::before {
  content: attr(data-title);
  position: absolute;
  top: 5px; left: 20px; right: 20px;
  font-size: 1.4rem;
  font-weight: 700;
  color: #FF7A00;
  border-bottom: 2px solid #FF7A00;
  padding-bottom: 8px;
  background: #fff;
  z-index: 1;
}

/* ----------------------------------------
   4) PRICE RECEIPT FLEX & STİL
---------------------------------------- */
#price_receipt {
  display: flex;
  flex-direction: column; /* Grid yerine flex kullanarak esnek yapı */
  gap: 20px;
}

/* pricing (soldaki fiyat listesi) */
#price_receipt ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr; /* Fiyat listesi yan yana */
  gap: 15px;
}

#price_receipt ul li {
  background: #FFF5E6;
  border-radius: 6px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-height: none; /* Yüksekliği serbest bırak */
}

#price_receipt ul li span:first-child {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 6px;
  text-align: center;
}

#price_receipt ul li span:last-child {
  font-size: 1.3rem;
  font-weight: 700;
  color: #E66C00;
}

/* details (sağdaki dinamik liste + toplam) */
#price_receipt #receipt_details {
  background: #fff;
  border-radius: 6px;
  padding: 15px;
  /* max-height ve overflow-y kaldırıldı, alan içeriğe göre büyüyecek */
}

/* Toplam fiyat kısmı */
#price_receipt #receipt_details .receipt-total {
  margin-top: 20px;
  padding-top: 10px;
  border-top: 1px solid #ddd;
  font-size: 1.3rem;
  font-weight: 700;
  color: #E66C00;
  text-align: center;
}

/* Günlük liste için ek stil */
#price_receipt #receipt_details p:not(.receipt-total) {
  font-size: 1.4rem;
  color: #E66C00;
  margin-bottom: 8px;
}

/* ----------------------------------------
   5) FORM STİLLERİ
---------------------------------------- */
.rs-reservation-form .rs-form-group {
  margin-bottom: 15px;
}

.rs-reservation-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
}

/* "Kişi Sayısı" için özel yazı tipi */
.rs-reservation-form label[for="people"] {
  font-family: 'Poppins', sans-serif; /* Google Fonts'tan Poppins */
  font-weight: 500;
  font-size: 1.1rem; /* Biraz daha büyük yapalım */
  color: #FF7A00; /* Turuncu renk, formun temasına uygun */
  letter-spacing: 0.5px; /* Harfler arasında hafif boşluk */
}

.rs-reservation-form input[type="text"],
.rs-reservation-form input[type="email"],
.rs-reservation-form input[type="number"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  transition: border-color 0.3s;
}

.rs-reservation-form input:focus {
  border-color: #FF7A00;
  outline: none;
}

/* Tarih alanlarını yan yana */
.rs-form-row {
  display: flex;
  gap: 10px;
}
.rs-form-row .rs-form-group {
  flex: 1;
}

/* ----------------------------------------
   6) KİŞİ SAYISI + / – BUTONLARI
---------------------------------------- */
.number-group .number-input {
  display: flex;
  align-items: center;
}

.number-input button {
  background: #FF7A00;
  color: #fff;
  border: none;
  padding: 6px 12px;
  font-size: 1.1rem;
  border-radius: 4px;
  cursor: pointer;
}

.number-input input {
  text-align: center;
  flex: 1;
  margin: 0 5px;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Checkbox Stilleri */
.rs-checkbox-group {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.rs-checkbox-group label {
  display: flex;
  align-items: center;
  font-weight: 500;
  cursor: pointer;
}

.rs-checkbox-group input[type="checkbox"] {
  margin-right: 8px;
  width: 18px;
  height: 18px;
  accent-color: #FF7A00; /* Checkbox rengini temaya uygun yap */
  cursor: pointer;
}

.rs-checkbox-group span {
  font-size: 0.95rem;
  color: #333;
}

.rs-checkbox-group span a {
  color: #FF7A00;
  text-decoration: none;
  font-weight: 500;
}

.rs-checkbox-group span a:hover {
  text-decoration: underline;
}

/* ----------------------------------------
   7) BUTON & SPINNER MESAJLI
---------------------------------------- */
.rs-reservation-form button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #FF7A00;
  color: #fff;
  font-size: 1rem;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  overflow: hidden;
  transition: background 0.3s;
}

.rs-reservation-form button:hover {
  background: #e66c00;
}
.rs-reservation-form button:disabled {
  background-color: #cccccc;
  color: #fff;
  cursor: not-allowed;
}

.btn-spinner {
  width: 18px;
  height: 18px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-left: 8px;
  display: inline-block;
  background-color: rgba(255, 0, 0, 0.3);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ----------------------------------------
   8) ANİMASYONLAR
---------------------------------------- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ----------------------------------------
   9) RESPONSIVE TASARIM (768px ve altı)
---------------------------------------- */
/* Mobil cihazlar için düzenlemeler (768px ve altı) */
@media (max-width: 768px) {
  .reservation-wrapper {
    flex-direction: column;
  }

  #price_receipt,
  .rs-reservation-form {
    padding: 50px 15px 20px;
  }

  #price_receipt ul {
    grid-template-columns: 1fr; /* Mobilde tek sütun */
  }

  /* Form elemanlarını düzelt */
  .rs-reservation-form .rs-form-group {
    margin-bottom: 20px;
  }

  .rs-reservation-form label {
    margin-bottom: 8px;
    font-size: 1rem;
    line-height: 1.2;
  }

  .rs-reservation-form input[type="text"],
  .rs-reservation-form input[type="email"],
  .rs-reservation-form input[type="number"] {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
  }

  /* Tarih alanlarını mobilde alt alta getir */
  .rs-form-row {
    flex-direction: column;
    gap: 15px;
  }

  .rs-form-row .rs-form-group {
    margin-bottom: 0;
  }

  /* Kişi Sayısı alanı */
  .number-group .number-input {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px; /* Butonlar ve input arasındaki boşluk */
  }

  .number-input button {
    padding: 8px 10px; /* Buton boyutunu küçült */
    font-size: 1rem; /* Yazı boyutunu küçült */
    min-width: 40px; /* Butonun minimum genişliği */
    height: 40px; /* Buton yüksekliği */
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .number-input input {
    max-width: 80px; /* Input genişliğini artır */
    padding: 10px;
    font-size: 1rem;
    flex: none; /* Flex büyümesini engelle */
    width: 80px; /* Sabit genişlik */
  }

  /* Checkbox alanı */
  .rs-checkbox-group {
    margin-bottom: 20px;
  }

  .rs-checkbox-group label {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  /* Rezervasyon Yap butonu */
  .rs-reservation-form button {
    width: 100%;
    padding: 14px;
    font-size: 1.1rem;
  }
}