/* ================================
   RESTAURANT RESERVE – HERO
================================ */
.restaurant-hero {
  min-height: 45vh;
  padding-top: 120px;
  background:
    linear-gradient(rgba(0,0,0,0.48), rgba(0,0,0,0.72)),
    url("../assets/restaurants/lokanta-1741/restaurants.png") center / cover no-repeat;
  background-attachment: fixed;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  text-align: center;
}

/* ================================
   FORM WRAPPER
================================ */
.restaurant-form-wrapper {
  position: relative;
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  padding: 45px 40px 40px;
  background: rgba(10,10,10,.80);
  border: 1.5px solid #d4af37;
  border-radius: 14px;
}

/* ================================
   HEADER
================================ */
.restaurant-form-header {
  text-align: center;
  margin-bottom: 30px;
}

.restaurant-form-title {
  font-size: 28px;
  color: #d4af37;
  margin-bottom: 6px;user-select: none;
  cursor: default;
}

.restaurant-form-subline {
  font-size: 12px;
  letter-spacing: 2px;
  color:rgba(255,255,255,.75);
  text-transform: uppercase;user-select: none;
  cursor: default;
}

/* ================================
   FORM BASE
================================ */
:root {
  --form-h: 46px;
}

.restaurant-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.restaurant-form .form-group {
  display: flex;
  flex-direction: column;
}

.restaurant-form label {
  color: #d4af37;
  font-size: 13px;
  margin-bottom: 6px;
}

/* INPUT & TEXTAREA */
.restaurant-form input,
.restaurant-form textarea {
  width: 100%;
  background: #111;
  border: 1px solid #d4af37;
  border-radius: 10px;
  color: #d4af37;
  font-size: 14px;
  box-sizing: border-box;
}

.restaurant-form input {
  height: var(--form-h);
  padding: 0 14px;
}

.restaurant-form textarea {
  min-height: 120px;
  padding: 12px 16px;
  resize: vertical;
}

.restaurant-form ::placeholder {
  color: rgba(255,255,255,.6);
}

.restaurant-form input:focus,
.restaurant-form textarea:focus {
  outline: none;
  border-color: #d4af37;
  box-shadow: 0 0 0 1px rgba(212,175,55,.25);
}

/* =========================================
   INTL TEL INPUT – RESTAURANT RESERVE FORM
========================================= */

/* Ana container */
.restaurant-form-wrapper .iti {
  width: 100%;
  position: relative;
  z-index: 30;
}

/* Telefon inputu */
.restaurant-form-wrapper .iti input {
  width: 100% !important;
  box-sizing: border-box;
  padding-left: 56px !important;
  background: #111;
  color: #d4af37;
  border: 1px solid #d4af37;
}

/* Bayrak alanı */
.restaurant-form-wrapper .iti__flag-container {
  height: 100%;
}

.restaurant-form-wrapper .iti__selected-flag {
  height: 100%;
  display: flex;
  align-items: center;
}

/* COUNTRY LIST (DROPDOWN) */
.restaurant-form-wrapper .iti__country-list {
  position: absolute;
  width: 100%;
  min-width: 320px;
  max-width: 420px;
  max-height: 440px;
  background: rgba(10,10,10,0.97);
  border: 1px solid #d4af37;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(212,175,55,0.25);
  overflow-x: hidden;
  top: 100%;
  left: 0;
  z-index: 50;
}

/* Scrollbar – Webkit */
.restaurant-form-wrapper .iti__country-list::-webkit-scrollbar {
  width: 8px;
}

.restaurant-form-wrapper .iti__country-list::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.05);
}

.restaurant-form-wrapper .iti__country-list::-webkit-scrollbar-thumb {
  background: #d4af37;
  border-radius: 8px;
}

.restaurant-form-wrapper .iti__country-list::-webkit-scrollbar-thumb:hover {
  background: #f1d97a;
}

/* Scrollbar – Firefox */
.restaurant-form-wrapper .iti__country-list {
  scrollbar-width: thin;
  scrollbar-color: #d4af37 rgba(255,255,255,0.05);
}

/* INTL TEL INPUT – SEARCH BOX FIX */

/* Search container */
.restaurant-form-wrapper .iti__search {
  width: 100%;
  min-width: 260px;
  background: #111;
  border-bottom: 1px solid rgba(212,175,55,0.6);
}

/* Search input – temel */
.restaurant-form-wrapper .iti__search-input {
  position: sticky;
  top: 0;
  z-index: 10;
  width: 100%;
  min-width: 260px;
  box-sizing: border-box;
  background: #111 !important;
  border: 1px solid rgba(212,175,55,0.6) !important;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 14px;
  line-height: 1.4;
  color: #d4af37 !important;
  -webkit-text-fill-color: #d4af37 !important;
  caret-color: #d4af37 !important;
  opacity: 1 !important;
}

/* Placeholder – "Search" yazısı */
.restaurant-form-wrapper .iti__search-input::placeholder {
  color: rgba(255,255,255,0.65) !important;
  -webkit-text-fill-color: rgba(255,255,255,0.65) !important;
}

/* Selection (mouse drag / shift + ok) */
.restaurant-form-wrapper .iti__search-input::selection {
  background: rgba(212,175,55,0.35);
  color: #000;
}

.restaurant-form-wrapper .iti__search-input::-moz-selection {
  background: rgba(212,175,55,0.35);
  color: #000;
}

/* Focus state */
.restaurant-form-wrapper .iti__search-input:focus {
  outline: none;
  background: #111;
  color: #d4af37;
  border-color: #d4af37 !important;
  box-shadow: 0 0 0 1px rgba(212,175,55,0.25);
}

/* COUNTRY ROWS */
.restaurant-form-wrapper .iti__country {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
}

.restaurant-form-wrapper .iti__country-name {
  color: #d4af37;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.restaurant-form-wrapper .iti__dial-code {
  color: rgba(255,255,255,0.65);
  white-space: nowrap;
}

/* Hover + Mouse */
.restaurant-form-wrapper .iti__country:hover {
  background: rgba(212,175,55,0.18);
}

.restaurant-form-wrapper .iti__country:hover .iti__dial-code,
.restaurant-form-wrapper .iti__country:hover .iti__country-name {
  color: #d4af37;
}

/* Klavye / Active / Tab */
.restaurant-form-wrapper .iti__country.iti__highlight,
.restaurant-form-wrapper .iti__country[aria-selected="true"],
.restaurant-form-wrapper .iti__country.active {
  background: rgba(212,175,55,0.18);
  outline: none;
}

.restaurant-form-wrapper .iti__country.active .iti__country-name,
.restaurant-form-wrapper .iti__country.active .iti__dial-code {
  color: #d4af37;
}


/* ================================
   CUSTOM SELECT (Guests / Time)
================================ */
.restaurant-form .custom-select {
  position: relative;
}

.restaurant-form .select-trigger {
  height: var(--form-h);
  padding: 0 14px;
  display: flex;
  align-items: center;
  background: #111;
  border: 1px solid #d4af37;
  border-radius: 10px;
  color: rgba(255,255,255,.65);
  cursor: pointer;
}

.restaurant-form .select-trigger.selected {
  color: #d4af37;
}

.restaurant-form .select-options {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #0b0b0b;
  border: 1px solid #d4af37;
  border-radius: 12px;
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  max-height: 240px;
  overflow-y: auto;
  display: none;
  z-index: 50;
}

.restaurant-form .custom-select.open .select-options {
  display: block;
}

.restaurant-form .select-options li {
  padding: 12px 16px;
  cursor: pointer;
  color: rgba(255,255,255,.6);
}

.restaurant-form .select-options li:hover,
.restaurant-form .select-options li.active {
  background: rgba(212,175,55,.2);
  color: #d4af37;
}

/* Scrollbar – dropdown */
.restaurant-form .select-options::-webkit-scrollbar {
  width: 8px;
}
.restaurant-form .select-options::-webkit-scrollbar-thumb {
  background: #d4af37;
  border-radius: 8px;
}
.restaurant-form .select-options {
  scrollbar-width: thin;
  scrollbar-color: #d4af37 rgba(255,255,255,0.05);
}

/* ================================
   TEXTAREA GROUP (Pets / Notes)
================================ */
.textarea-group {
  display: none;
  flex-direction: column;
  gap: 6px;
}

.textarea-group.active {
  display: flex;
}

/* ================================
   SUBMIT BUTTON
================================ */
.restaurant-submit-btn {
  margin-top: 15px;
  height: var(--form-h);
  background: #d4af37;
  color: #000;
  border: none;
  border-radius: 28px;
  font-size: 14px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: transform .2s ease;
}

.restaurant-submit-btn:active {
  transform: scale(.97);
}

/* ================================
   RESPONSIVE
================================ */
@media (max-width: 768px) {
  .restaurant-hero {
    background-attachment: scroll;
    background-position: center top;
  }
  .restaurant-form-wrapper {
    max-width: 94%;
    padding: 35px 25px;
  }
}

.restaurant-form textarea {
  height: auto;
  padding: 10px 14px;
  resize: none;
}

/* ==============================
   CUSTOM SELECT (TIME / GUESTS)
============================== */
.custom-select {
  position: relative;
}

.custom-select .select-trigger {
  height: 44px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid #d4af37;
  border-radius: 10px;
  background: #111;
  color: rgba(255,255,255,0.65);
  cursor: pointer;
}

.custom-select .select-options {
  position: absolute;
  top: calc(100% + 6px);
  left: 0 !important;
  text-align: left;         /* seçenekler solda */
  width: 100%;
  background: #111;
  border: 1px solid #d4af37;
  border-radius: 10px;
  max-height: 220px;
  overflow-y: auto;
  display: none;
  z-index: 40;
}

.custom-select.open .select-options {
  display: block;
}

.custom-select .select-options li {
  padding: 10px 14px;
  cursor: pointer;
  color: #d4af37;
}

.custom-select .select-options li:hover,
.custom-select .select-options li.active {
  background: rgba(212,175,55,0.15);
}

/* ==============================
   TEXTAREA GROUPS (PETS / ALLERGY / NOTES)
============================== */
.textarea-group {
  display: none;
  flex-direction: column;
  gap: 6px;
}

.textarea-group.active {
  display: flex;
}

.char-count {
  font-size: 11px;
  text-align: right;
  color: rgba(255,255,255,0.45);
}

/* ==============================
   CHILDREN
============================== */
.children-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.children-ages {
  display: none;
  flex-wrap: wrap;
  gap: 14px;
}

.children-ages.active {
  display: flex;
}

.child-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.child-input {
  width: 56px;
  height: 32px;
  font-size: 13px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;
  border-radius: 6px;
  padding: 0 6px;
}

/* ==============================
   CHECKBOX BASE
============================== */
input[type="checkbox"] {
  accent-color: #d4af37;
  cursor: pointer;
}

/* <- FLATPICKR TAKVİM STİLİ – RENKLER VE GÖRÜNÜM -> */
      .flatpickr-calendar { background: #2b2b2b; border: none; box-shadow: 0 12px 30px rgba(0,0,0,.4);} /* Takvim arka planı ve gölgesi */
      .flatpickr-prev-month svg,
      .flatpickr-next-month svg {fill: #ffffff;} /* Ay değiştirme okları beyaz */
      .flatpickr-prev-month:hover svg,
      .flatpickr-next-month:hover svg {fill: #d4af37;} /* Hover altın rengi */
      .flatpickr-current-month,
      .flatpickr-current-month span.cur-month,
      .flatpickr-current-month input.cur-year {color: #d4af37; font-weight: 500;} /* Ay ve yıl rengi */
      .flatpickr-day {color: #d4af37; border-radius: 8px;} /* Günler rengi ve köşe yuvarlama */
      .flatpickr-day.prevMonthDay,
      .flatpickr-day.nextMonthDay,
      .flatpickr-day.flatpickr-disabled {color: #ffffff; opacity: 0.35; cursor: not-allowed;} /* Geçmiş veya seçilemez günler */
      .flatpickr-day:not(.flatpickr-disabled):hover {background: #ffffff; color: #000;} /* Hover günü */
      .flatpickr-day.selected,
      .flatpickr-day.startRange,
      .flatpickr-day.endRange {background: #d4af37; color: #000; font-weight: 600;} /* Seçili günler */
      .flatpickr-day.today {border: 1px solid #d4af37;} /* Bugünün günü */
      .flatpickr-day:focus {outline: none;} /* Focus mavi çizgiyi kaldır */
      .flatpickr-prev-month svg,
      .flatpickr-next-month svg {fill: #ffffff !important; stroke: #ffffff !important;} /* Nav okları beyaz */
      .flatpickr-prev-month:hover svg,
      .flatpickr-next-month:hover svg {fill: #d4af37 !important; stroke: #d4af37 !important;} /* Hover altın */
      .flatpickr-current-month .numInputWrapper span::after {border-top-color: #ffffff !important; border-bottom-color: #ffffff !important;} /* Yıl okları beyaz */
      .flatpickr-current-month .numInputWrapper span:hover::after {border-top-color: #d4af37 !important; border-bottom-color: #d4af37 !important;} /* Hover altın */
      .flatpickr-weekday {color: #d4af37 !important; font-weight: 500;} /* Gün isimleri rengi */
      .flatpickr-current-month {color: #ffffff;} /* Ay başlığı beyaz */
      .flatpickr-monthDropdown-months {background-color: #2b2b2b !important; color: rgba(255,255,255,0.60);} /* Ay dropdown arka plan ve rengi */
      .flatpickr-monthDropdown-months option {background-color: #2b2b2b !important; color: #ffffff !important;} /* Ay seçenekleri */
      .flatpickr-monthDropdown-months option:hover {background-color: #d4af37 !important; color: #000000 !important;} /* Hover edilen ay */
      .flatpickr-monthDropdown-months,
      .flatpickr-monthDropdown-months * {background: #2b2b2b !important; color: #ffffff !important;} /* Tüm ay dropdown elemanları */

/* ==============================
   INLINE ALERT
============================== */
#formInlineAlert {
  height: 48px;
  margin-bottom: 18px;
  padding: 12px 16px;
  border: 1px solid rgba(212,175,55,0.6);
  background: rgba(212,175,55,0.08);
  color: #d4af37;
  font-size: 13px;
  text-align: center;
  border-radius: 10px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

/* ==============================
   SUBMIT BUTTON
============================== */
.restaurant-form .submit-btn {
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #d4af37, #b9982f);
  border: none;
  color: #000;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}

.restaurant-form .submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(212,175,55,0.35);
}
/* =========================================
   CUSTOM SELECT – FONT SIZE FIX (RESERVE)
========================================= */

.restaurant-form-wrapper .custom-select .select-trigger {
  font-size: 14px;              /* inputlarla birebir */
  line-height: 1.4;
  padding: 12px 14px;           /* input padding ile uyum */
  color: rgba(255,255,255,0.65); /* placeholder hissi */
}

/* Seçim yapıldıktan sonra */
.restaurant-form-wrapper .custom-select.has-value .select-trigger {
  color: #d4af37;               /* seçili değer altın */
}

/* Dropdown item font */
.restaurant-form-wrapper .custom-select .select-options li {
  font-size: 14px;
  line-height: 1.4;
}
/* ==============================
   CHECKBOX FIX – RESTAURANT FORM
============================== */

/* Checkbox'ları input stilinden kurtar */
.restaurant-form input[type="checkbox"] {
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

/* Checkbox + yazıyı aynı hizada tut */
.restaurant-form label,
.restaurant-form .child-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Checkbox boyutu (kontrollü & estetik) */
.restaurant-form input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Allergy label da aynı hizaya gelsin */
.restaurant-form .form-group > label {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Checkboxlar asla ortalanmasın */
.restaurant-form input[type="checkbox"] {
  align-self: flex-start;
}
/* Checkbox seçili + focus */
.checkbox-option input[type="checkbox"]:checked:focus-visible + .checkbox-custom {
  background: rgba(212, 175, 55, 0.18);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.35);
  border-color: #f1d97a;
}
/* CHILDREN AGE GROUP – ROW LAYOUT */
#childrenAges {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

/* Each age option (checkbox + input) */
.child-age {
  display: flex;
  align-items: center;
  gap: 8px;
}

.age-item { /* her checkbox + input sarmalayıcı */
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Small number input next to checkbox */
.child-input {
  display: none; /* JS açacak */
  width: 64px;
  max-width: 64px;
  padding: 6px 8px;
  font-size: 14px;
  text-align: center;

  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 8px;
  background: rgba(0,0,0,0.35);
  color: #fff;
}

/* Focus luxury effect */
.child-input:focus {
  outline: none;
  border-color: #d4af37;
  box-shadow: 0 0 0 2px rgba(212,175,55,0.25);
}

/* ==============================
   CHECKBOX FOCUS & HOVER
============================== */

/* Hover ile fark */
input[type="checkbox"]:hover {
  outline: none;
  border: 2px solid #d4af37;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.25);
  background: rgba(212, 175, 55, 0.05);
}

/* Tab ile focus geldiğinde */
input[type="checkbox"]:focus-visible {
  outline: none;
  border: 2px solid #d4af37;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.35);
  background: rgba(212, 175, 55, 0.08);
}

/* Checkbox + custom label wrapper */
.child-checkbox:hover,
.child-checkbox:focus-within {
  background: rgba(212, 175, 55, 0.05);
  border-radius: 6px;
  transition: background 0.2s ease;
}

/* Luxury glow effect */
input[type="checkbox"]:checked:focus-visible {
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.5);
}


/* Lokanta 1741-specific reservation information */
.lokanta-reservation-note{margin:0 0 24px;padding:18px 20px;border:1px solid rgba(212,175,55,.42);border-radius:10px;background:rgba(212,175,55,.07);text-align:left}
.lokanta-reservation-note[hidden],.children-form-group[hidden]{display:none!important}
.lokanta-reservation-note strong{display:block;margin-bottom:8px;color:#d4af37;font-size:13px}
.lokanta-reservation-note p{margin:6px 0;color:rgba(255,255,255,.76);font-size:12px;line-height:1.7}

/* Preferred contact method */
.preferred-method-options{display:flex;gap:14px}
.preferred-method-option{flex:1;display:flex!important;align-items:center;gap:10px;min-height:46px;padding:0 14px;border:1px solid rgba(212,175,55,.75);border-radius:10px;background:#111;color:#d4af37;cursor:pointer;box-sizing:border-box}
.restaurant-form .preferred-method-option input[type="radio"]{width:16px;height:16px;margin:0;accent-color:#d4af37}
.preferred-method-option span{color:#d4af37;font-size:14px}
@media(max-width:480px){.preferred-method-options{flex-direction:column;gap:10px}}


/* Match the simple white focus border used by the text fields. */
.restaurant-form .preferred-method-option:focus-within {
  border-color: #fff;
}
