/* ============================================
   RESERVATION PAGE — reservation.css
   Premium form design
   Mobile-first approach
   ============================================ */

/* --- Disabled State --- */
.res-disabled {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 0 80px;
}
.res-disabled-card {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
  background: var(--surface);
  border-radius: 20px;
  padding: 56px 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}
.res-disabled-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--gold-wash);
  color: var(--gold-deep);
  margin-bottom: 28px;
}
.res-disabled-card h1 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  margin-bottom: 16px;
}
.res-disabled-msg {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 32px;
}
.res-disabled-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

/* Shared CTA button styles for disabled / success */
.btn-wa-lg {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: #25D366;
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn-wa-lg:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.35);
}
.btn-phone-lg {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn-phone-lg:hover {
  background: var(--gold-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

/* --- Breadcrumb --- */
.res-breadcrumb {
  padding: 100px 0 0;
}
.res-breadcrumb .wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--muted);
  flex-wrap: wrap;
}
.res-breadcrumb a {
  color: var(--muted);
  transition: color 0.3s var(--ease);
}
.res-breadcrumb a:hover {
  color: var(--gold);
}
.res-breadcrumb .sep {
  color: var(--line);
  font-size: 0.75rem;
}
.res-breadcrumb .current {
  color: var(--ink);
  font-weight: 500;
}

/* --- Section --- */
.res-section {
  padding: 32px 0 80px;
}

/* --- Two-Column Layout --- */
.res-layout {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}
.res-form-col {
  flex: 1 1 0;
  min-width: 0;
}
.res-sidebar {
  flex: 0 0 380px;
  display: none; /* hidden on mobile, shown on desktop */
}

/* --- Form Header --- */
.res-form-header {
  margin-bottom: 36px;
}
.res-form-header .tag {
  margin-bottom: 16px;
}
.res-form-header h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-top: 8px;
  margin-bottom: 8px;
}
.res-form-header .section-subtitle {
  margin-top: 4px;
}

/* --- Form --- */
.res-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Form groups */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Inputs, selects, textareas */
.res-form input[type="text"],
.res-form input[type="tel"],
.res-form input[type="email"],
.res-form input[type="date"],
.res-form input[type="number"],
.res-form select,
.res-form textarea {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.res-form textarea {
  height: auto;
  padding: 14px 16px;
  resize: vertical;
  min-height: 100px;
}
.res-form select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B6B6B' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.res-form input[type="number"] {
  -moz-appearance: textfield;
}
.res-form input[type="number"]::-webkit-inner-spin-button,
.res-form input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Focus states */
.res-form input:focus,
.res-form select:focus,
.res-form textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.15);
}

/* Invalid field styling (after attempted submit) */
.res-form.was-validated input:invalid,
.res-form.was-validated select:invalid {
  border-color: #E53E3E;
}
.res-form.was-validated input:invalid:focus,
.res-form.was-validated select:invalid:focus {
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.15);
}

/* Placeholder */
.res-form input::placeholder,
.res-form textarea::placeholder {
  color: var(--line);
  font-weight: 400;
}

/* Form row (side by side) */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Select with availability badge */
.select-with-badge {
  display: flex;
  align-items: center;
  gap: 12px;
}
.select-with-badge select {
  flex: 1;
}

/* Availability badge */
#availBadge {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
  transition: all 0.3s var(--ease);
  min-height: 24px;
}
#availBadge:empty {
  display: none;
}
.avail-ok {
  background: #C6F6D5;
  color: #276749;
}
.avail-full {
  background: #FED7D7;
  color: #9B2C2C;
}
.avail-checking {
  background: var(--gold-wash);
  color: var(--gold-deep);
  animation: pulse-badge 1.2s ease infinite;
}
@keyframes pulse-badge {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* --- Submit Button --- */
.res-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 54px;
  padding: 0 32px;
  background: var(--gold);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  margin-top: 8px;
}
.res-submit:hover {
  background: var(--gold-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}
.res-submit:active {
  transform: translateY(0);
}
.res-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.res-submit svg {
  transition: transform 0.3s var(--ease);
}
.res-submit:hover svg {
  transform: translateX(4px);
}

/* --- Error Banner --- */
.res-error {
  animation: shake 0.5s var(--ease);
}
.res-error-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: #FFF5F5;
  border: 1px solid #FED7D7;
  border-radius: 10px;
  color: #C53030;
  font-size: 0.92rem;
  font-weight: 500;
}
.res-error-inner svg {
  flex-shrink: 0;
  color: #E53E3E;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 50%, 90% { transform: translateX(-4px); }
  30%, 70% { transform: translateX(4px); }
}

/* --- Success Card --- */
.res-success {
  text-align: center;
  padding: 48px 24px;
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  animation: fadeInUp 0.6s var(--ease);
}
.res-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #C6F6D5;
  color: #276749;
  margin-bottom: 24px;
  animation: scaleCheck 0.5s 0.2s var(--ease-snap) both;
}
@keyframes scaleCheck {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.res-success h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 12px;
}
.res-success-msg {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 480px;
  margin-inline: auto;
}
.res-success-summary {
  display: inline-flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 28px;
  background: var(--bg);
  border-radius: 12px;
  border: 1px solid var(--line);
  margin-bottom: 28px;
  text-align: left;
  font-size: 0.92rem;
}
.res-success-summary .summary-row {
  display: flex;
  gap: 12px;
}
.res-success-summary .summary-label {
  font-weight: 600;
  color: var(--muted);
  min-width: 100px;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  padding-top: 2px;
}
.res-success-summary .summary-value {
  color: var(--ink);
}
.res-success .btn-wa-lg {
  margin-bottom: 16px;
}
.res-success-home {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.3s var(--ease);
}
.res-success-home:hover {
  color: var(--gold);
}

/* --- Sidebar --- */
.res-sidebar-sticky {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Info card */
.res-info-card {
  background: var(--surface);
  border-radius: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.res-info-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-soft);
}
.res-info-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 10px;
}
.res-info-header h3 {
  font-size: 1.1rem;
  margin-bottom: 2px;
}
.res-info-city {
  font-size: 0.82rem;
  color: var(--muted);
}
.res-info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.res-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.res-info-list li svg {
  flex-shrink: 0;
  color: var(--gold);
  margin-top: 1px;
}
.res-info-list li strong {
  font-weight: 600;
  color: var(--ink);
}

/* Contact card */
.res-contact-card {
  background: var(--surface);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.res-contact-card h4 {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 16px;
}
.res-contact-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.res-contact-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.res-contact-btn:hover {
  transform: translateY(-1px);
}
.res-contact-phone {
  background: var(--ink);
  color: var(--bg);
}
.res-contact-phone:hover {
  background: var(--gold-deep);
  box-shadow: var(--shadow-gold);
}
.res-contact-wa {
  background: #25D366;
  color: #fff;
}
.res-contact-wa:hover {
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
}
.res-contact-email {
  background: var(--gold-wash);
  color: var(--gold-deep);
  border: 1px solid var(--gold-pale);
}
.res-contact-email:hover {
  background: var(--gold);
  color: #fff;
}

/* Note card */
.res-note-card {
  display: flex;
  gap: 12px;
  padding: 20px;
  background: var(--gold-wash);
  border-radius: 12px;
  border: 1px solid var(--gold-pale);
}
.res-note-card svg {
  flex-shrink: 0;
  color: var(--gold-deep);
  margin-top: 1px;
}
.res-note-card p {
  font-size: 0.85rem;
  color: var(--gold-deep);
  line-height: 1.6;
}

/* --- Mobile Contact Bar --- */
.res-mobile-contact {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 91;
  padding: 12px 16px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  background: var(--surface);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 20px rgba(26, 26, 26, 0.08);
  gap: 10px;
}
.res-mobile-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  background: var(--ink);
  color: var(--bg);
  min-height: 48px;
  transition: background 0.25s var(--ease);
  -webkit-tap-highlight-color: rgba(0,0,0,0.1);
}
.res-mobile-btn:hover {
  background: var(--gold-deep);
}
.res-mobile-wa {
  background: #25D366;
  color: #fff;
}
.res-mobile-wa:hover {
  background: #20BD5A;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Mobile/tablet kombine — sidebar gizle, mobile contact göster */
/* --bp-tablet (1024px) — desktop layout aktivasyon eşiği */
@media (max-width: 1023px) {
  .res-layout {
    flex-direction: column;
  }
  .res-sidebar {
    display: none;
  }
  .res-mobile-contact {
    display: flex;
  }
  /* WhatsApp FAB & scroll-top yukarı kaydır (mobile bar'ın üstüne) */
  .page-reservation .whatsapp-wrap { bottom: 80px; }
  .page-reservation .scroll-top { bottom: 150px; }
  /* Add bottom padding for mobile bar */
  .page-reservation .site-footer {
    padding-bottom: 72px;
  }
  .res-section {
    padding-bottom: 40px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .select-with-badge {
    flex-direction: column;
    align-items: flex-start;
  }
  .res-disabled-card {
    padding: 40px 24px;
  }
  /* Mobilde form input boyutları */
  .res-form input[type="text"],
  .res-form input[type="tel"],
  .res-form input[type="email"],
  .res-form input[type="date"],
  .res-form input[type="number"],
  .res-form select,
  .res-form textarea {
    height: 52px;
    font-size: 16px;
  }
  .res-submit { height: 56px; font-size: 1.02rem; }
}

/* Tablet portrait range — --bp-sm-tablet (600) → --bp-tablet (1024) */
@media (min-width: 600px) and (max-width: 1023px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
  .select-with-badge {
    flex-direction: row;
    align-items: center;
  }
}

/* Desktop — --bp-tablet (1024px+) */
@media (min-width: 1024px) {
  .res-sidebar {
    display: block;
  }
  .res-mobile-contact {
    display: none;
  }
}

/* Large desktop — --bp-desktop (1280px+) */
@media (min-width: 1280px) {
  .res-layout {
    gap: 64px;
  }
  .res-sidebar {
    flex: 0 0 400px;
  }
}
