.res-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,5,0,0.72);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.res-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.res-modal {
  background: var(--bone);
  border-radius: 24px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.5rem 2.5rem 2rem;
  position: relative;
  transform: translateY(28px) scale(0.97);
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1);
  box-shadow: 0 32px 80px rgba(26,5,0,0.35);
}
.res-overlay.open .res-modal {
  transform: translateY(0) scale(1);
}
.res-close {
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  background: var(--cream-warm);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--ink);
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.res-close:hover { background: var(--mustard-light); }
.res-header { margin-bottom: 1.8rem; }
.res-eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mustard);
  display: block;
  margin-bottom: 0.5rem;
}
.res-title {
  font-family: 'Fraunces', serif;
  font-size: 2rem;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 0.4rem;
}
.res-sub { color: var(--ink-soft); font-size: 0.92rem; }
.res-form { display: flex; flex-direction: column; gap: 1.1rem; }
.res-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.res-field { display: flex; flex-direction: column; gap: 0.45rem; }
.res-field label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.res-field label svg { color: var(--mustard); flex-shrink: 0; }
.res-optional { font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 0.78rem; color: #999; }
.res-field input,
.res-field select,
.res-field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--cream-warm);
  border-radius: 12px;
  font-size: 0.95rem;
  font-family: 'Outfit', sans-serif;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
}
.res-field select {
  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='%234A1500' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.res-field input:focus,
.res-field select:focus,
.res-field textarea:focus {
  border-color: var(--mustard);
  box-shadow: 0 0 0 3px var(--shadow-mustard);
}
.res-field textarea { resize: vertical; min-height: 80px; }
.res-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--mustard);
  color: #fff;
  border: none;
  border-radius: 100px;
  padding: 1rem 2rem;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: background 0.25s, transform 0.2s;
  font-family: 'Outfit', sans-serif;
  width: 100%;
}
.res-submit:hover { background: var(--mustard-deep); transform: translateY(-2px); }
.res-submit:active { transform: translateY(0); }
.res-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 0 1rem;
}
.res-success.show { display: flex; }
.res-success-icon {
  width: 72px;
  height: 72px;
  background: var(--mustard);
  color: var(--ink);
  font-size: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}
.res-success h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.8rem;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.res-success p { color: var(--ink-soft); line-height: 1.6; }
@media (max-width: 500px) {
  .res-modal { padding: 2rem 1.4rem 1.6rem; }
  .res-row { grid-template-columns: 1fr; }
  .res-title { font-size: 1.6rem; }
}

/* =============================================
   REAL-TIME BOOKING ADDITIONS
   ============================================= */

.res-error-banner {
  background: rgba(217, 83, 79, 0.08);
  border: 2px solid #D9534F;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin-bottom: 1.2rem;
  color: var(--ink);
  font-size: 0.88rem;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  animation: resFadeIn 0.3s ease;
}

@keyframes resFadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.res-error-banner svg {
  color: #D9534F;
  flex-shrink: 0;
}

.res-field.loading select {
  background-image: none !important;
  color: transparent !important;
  pointer-events: none;
}

.res-field.loading {
  position: relative;
}

.res-field.loading::after {
  content: "";
  position: absolute;
  right: 1.2rem;
  bottom: 0.85rem;
  width: 1.2rem;
  height: 1.2rem;
  border: 2px solid var(--cream-warm);
  border-radius: 50%;
  border-top-color: var(--mustard);
  animation: resSpin 0.8s linear infinite;
}

.res-submit.submitting {
  pointer-events: none;
  opacity: 0.85;
}

.res-submit-spinner {
  display: inline-block;
  width: 1.15rem;
  height: 1.15rem;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: resSpin 0.8s linear infinite;
  margin-right: 0.5rem;
}

@keyframes resSpin {
  to { transform: rotate(360deg); }
}

/* Success details table */
.res-success-details {
  width: 100%;
  margin: 1.5rem 0 0.5rem;
  background: var(--cream);
  border: 1px solid var(--cream-warm);
  border-radius: 16px;
  padding: 1.1rem 1.25rem;
  text-align: left;
  box-sizing: border-box;
}

.res-success-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(138, 47, 26, 0.08);
  padding: 0.55rem 0;
  font-size: 0.92rem;
}

.res-success-row:last-child {
  border-bottom: none;
}

.res-success-row span {
  font-weight: 500;
  color: var(--ink-soft);
}

.res-success-row strong {
  color: var(--ink);
  font-weight: 600;
}

.res-success-code {
  font-size: 0.84rem;
  color: var(--mustard-deep) !important;
  background: var(--shadow-mustard);
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  font-family: monospace;
}

