/* Booking modal and cookie banner, ported from egskinclinic (booking-modal.css, custom.css) in Miltown Durusu colours
   (--primary-color #805231, --heading-font-color #341F16). */

/* ---------- Booking modal: full-screen dark overlay, centred form ---------- */
.booking-modal .modal-content, .lang-modal .modal-content { background-color: rgba(52, 31, 22, 0.97); }
.booking-modal .modal-body, .lang-modal .modal-body { display: flex; padding: 90px 16px 30px; overflow-y: auto; overscroll-behavior: contain; }
.booking-modal form { position: relative; width: 100%; max-width: 760px; margin: auto; }

.booking-close {
  position: absolute; top: 40px; right: 40px; z-index: 2; width: 60px; height: 60px; line-height: 60px;
  border: none; border-radius: 50%; font-size: 26px; color: var(--primary-color); background-color: #ffffff;
  transform: rotate(0); transition: all ease 0.4s;
}
.booking-close:hover { color: #ffffff; background-color: var(--primary-color); transform: rotate(90deg); }

.booking-title { color: #ffffff; text-align: center; margin: 0 0 10px; }
.booking-intro { color: rgba(255, 255, 255, 0.8); text-align: center; margin: 0 0 28px; }
.booking-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.booking-wide { grid-column: 1 / -1; }

.booking-modal form input:not([type=checkbox]),
.booking-modal form textarea {
  display: block; width: 100%; height: 58px; padding: 0 28px; font-size: 16px; color: #ffffff;
  background-color: transparent; border: 2px solid rgba(255, 255, 255, 0.85); border-radius: 50px; outline: 0; color-scheme: dark;
}
.booking-modal form textarea { height: auto; min-height: 110px; padding: 16px 28px; border-radius: 30px; resize: vertical; }
.booking-modal form input::placeholder, .booking-modal form textarea::placeholder { color: rgba(255, 255, 255, 0.85); }
.booking-modal form input:focus, .booking-modal form textarea:focus { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3); }

/* Server messages under each field (enquiry-form.js adds .is-invalid) */
.booking-modal .invalid-feedback { color: #ff9c8f; font-size: 13px; line-height: 1.4; padding: 6px 0 0 28px; margin: 0; }
.booking-modal form .is-invalid { border-color: #ff9c8f !important; }

/* KVKK consent: round tick box */
.booking-consent { position: relative; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0 12px; margin: 20px 0; }
.booking-consent input[type=checkbox] {
  flex: 0 0 20px; width: 20px; height: 20px; margin: 2px 0 0; appearance: none; -webkit-appearance: none; cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.85); border-radius: 50%; background-color: transparent;
}
.booking-consent input[type=checkbox]:checked { background-color: var(--primary-color); border-color: #ffffff; box-shadow: inset 0 0 0 3px rgba(52, 31, 22, 0.97); }
.booking-consent input[type=checkbox]:focus-visible { outline: 2px solid #ffffff; outline-offset: 2px; }
.booking-consent label { flex: 1; color: rgba(255, 255, 255, 0.85); font-size: 14px; line-height: 1.5; margin: 0; cursor: pointer; }
.booking-consent label a { color: #ffffff; text-decoration: underline; }
.booking-consent .invalid-feedback { flex-basis: 100%; padding-left: 32px; }
.booking-consent .booking-kvkk { flex-basis: 100%; margin: 8px 0 0; padding-left: 32px; color: rgba(255, 255, 255, 0.7); font-size: 13px; line-height: 1.5; }
.booking-consent .booking-kvkk a { color: #ffffff; text-decoration: underline; }

.booking-modal form button.booking-submit {
  display: block; width: 100%; height: 58px; font-size: 16px; font-weight: 700; color: var(--heading-font-color);
  background-color: #ffffff; border: 2px solid #ffffff; border-radius: 50px; transition: all ease 0.3s;
}
.booking-modal form button.booking-submit:hover { color: #ffffff; background-color: var(--primary-color); border-color: var(--primary-color); }
.booking-modal form button.booking-submit:disabled { opacity: 0.6; cursor: wait; }

@media (max-width: 767px) {
  .booking-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .booking-title { font-size: 30px; }
  .booking-intro { margin-bottom: 20px; }
  .booking-close { top: 16px; right: 16px; width: 48px; height: 48px; line-height: 48px; font-size: 22px; }
  .booking-modal .modal-body { padding-top: 76px; }
}

/* ---------- Language picker: header button + full-screen modal ---------- */
.lang-toggle {
  display: inline-flex; align-items: center; gap: 6px; margin-right: 10px; padding: 6px 12px; border-radius: 30px;
  font-size: 14px; font-weight: 600; line-height: 1; color: #ffffff; text-decoration: none;
  background-color: rgba(52, 31, 22, 0.55); border: 1px solid rgba(255, 255, 255, 0.35); transition: background-color 0.3s;
}
.lang-toggle:hover { color: #ffffff; background-color: var(--primary-color); }
.lang-toggle img { width: 22px; height: 15px; object-fit: cover; border-radius: 3px; }
.lang-panel { width: 100%; max-width: 560px; margin: auto; }
.lang-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.lang-card {
  display: flex; align-items: center; gap: 16px; padding: 20px 24px; border-radius: 16px; font-size: 18px; font-weight: 500;
  color: #ffffff; text-decoration: none; border: 2px solid rgba(255, 255, 255, 0.35); transition: all 0.3s;
}
.lang-card img { width: 42px; height: 28px; object-fit: cover; border-radius: 4px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2); }
.lang-card i { margin-left: auto; }
.lang-card:hover { color: #ffffff; border-color: #ffffff; background-color: rgba(255, 255, 255, 0.06); }
.lang-card.active, .lang-card.active:hover { color: var(--heading-font-color); background-color: #ffffff; border-color: #ffffff; }
@media (max-width: 575px) {
  .lang-grid { grid-template-columns: minmax(0, 1fr); }
  .lang-toggle { margin-right: 6px; padding: 6px 10px; }
}

/* ---------- Mobile tab bar (below lg) ---------- */
/* height: auto overrides the theme's mobile "nav { height: 0 }" (style.css) */
.mobile-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; display: flex; height: auto; box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.12); }
.mobile-tabbar a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 8px 10px; font-size: 15px; font-weight: 500; line-height: 1.2; text-align: center; color: var(--heading-font-color); }
.mobile-tabbar i { font-size: 20px; }
.mobile-tabbar-book { background-color: #f2e9e3; }
.mobile-tabbar-whatsapp { background-color: #faf6f3; }
.mobile-tabbar a:hover { color: var(--primary-color); }
@media (max-width: 991px) {
  /* Room for the tab bar so it never covers the footer */
  body { padding-bottom: 56px; }
}

/* ---------- Cookie banner ---------- */
.cookie-consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1040; max-width: 760px; margin: 0 auto; padding: 18px 22px; background: #ffffff; color: var(--body-font-color); border-radius: 10px; box-shadow: 0 8px 30px rgba(52, 31, 22, 0.18); }
.cookie-consent[hidden] { display: none; }
.cookie-consent-inner { display: flex; align-items: center; gap: 20px; }
.cookie-consent-text { margin: 0; font-size: 14px; line-height: 1.5; }
.cookie-consent-text a { color: var(--primary-color); text-decoration: underline; }
.cookie-consent-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-consent-btn { min-width: 104px; padding: 10px 18px; border: 1px solid var(--primary-color); border-radius: 30px; font-size: 14px; font-weight: 500; line-height: 1.2; cursor: pointer; transition: background-color 0.2s, color 0.2s; }
.cookie-consent-reject { background: #ffffff; color: var(--primary-color); }
.cookie-consent-reject:hover { background: rgba(var(--primary-color-rgb), 0.1); }
.cookie-consent-accept { background: var(--primary-color); color: #ffffff; }
.cookie-consent-accept:hover { background: var(--heading-font-color); border-color: var(--heading-font-color); }
@media (max-width: 991px) {
  /* Above the fixed mobile Randevu Al / WhatsApp bar */
  .cookie-consent { bottom: 68px; }
}
@media (max-width: 767px) {
  .cookie-consent-inner { flex-direction: column; align-items: stretch; gap: 14px; }
  .cookie-consent-actions .cookie-consent-btn { flex: 1; }
}
