/* Reservation modal — mockup-aligned design */
:root {
  --rsv-or: #e8580a;
  --rsv-or2: #ff6a1a;
  --rsv-or3: #ff9a5c;
  --rsv-bg: #080400;
  --rsv-panel: #100804;
  --rsv-font: 'Plus Jakarta Sans', system-ui, sans-serif;
  --rsv-serif: 'Fraunces', Georgia, serif;
  --rsv-display: 'Outfit', system-ui, sans-serif;
}

.rsv-overlay,
.ct-overlay.rsv-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    radial-gradient(circle at 18% 12%, rgba(232, 88, 10, 0.22), transparent 34%),
    radial-gradient(circle at 84% 88%, rgba(255, 154, 92, 0.14), transparent 32%),
    rgba(8, 4, 0, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.rsv-overlay.is-open,
.ct-overlay.rsv-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.rsv-modal {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.44fr) minmax(0, 0.56fr);
  align-items: stretch;
  width: min(980px, calc(100vw - 32px));
  max-height: min(90vh, 700px);
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255, 176, 111, 0.14);
  background: var(--rsv-bg);
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.62),
    0 0 0 1px rgba(232, 88, 10, 0.1);
  color: #fff;
  font-family: var(--rsv-font);
}

.rsv-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.rsv-modal__close:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 176, 111, 0.35);
}

/* —— Left showcase —— */
.rsv-showcase {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 0;
  padding: clamp(20px, 2.8vw, 28px);
  overflow: hidden;
  border-right: 1px solid rgba(255, 176, 111, 0.06);
  background-color: #1a0e06;
  background-image:
    linear-gradient(110deg, rgba(8, 4, 0, 0.45) 0%, rgba(8, 4, 0, 0.16) 52%, rgba(0, 0, 0, 0.1) 100%),
    linear-gradient(to top, rgba(0, 0, 0, 0.32) 0%, transparent 52%),
    url('../images/Reservation.png');
  background-size: cover;
  background-position: 62% center;
  background-repeat: no-repeat;
}

.rsv-showcase::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(circle at 18% 88%, rgba(232, 88, 10, 0.12), transparent 42%);
  pointer-events: none;
}

.rsv-showcase__copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
  flex: 1;
}

.rsv-showcase__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  text-decoration: none;
  color: inherit;
}

.rsv-showcase__brand img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.rsv-showcase__wordmark {
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 1;
  text-transform: none;
}

.rsv-showcase__wordmark .logo-ramen {
  font-family: "Great Vibes", cursive;
  font-size: 2.15rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.75;
  text-transform: none;
  color: #fff8f2;
}

.rsv-showcase__wordmark .logo-downtown {
  font-family: var(--rsv-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--rsv-or);
  margin-top: 2px;
}

.rsv-showcase__title {
  margin: 0 0 10px;
  font-family: var(--rsv-serif);
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: #fff;
}

.rsv-showcase__title em {
  color: var(--rsv-or);
  font-style: italic;
  font-weight: 700;
}

.rsv-showcase__subtitle {
  margin: 0 0 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 176, 111, 0.24);
  font-family: var(--rsv-serif);
  font-size: clamp(1rem, 1.75vw, 1.18rem);
  font-weight: 600;
  font-style: italic;
  color: var(--rsv-or3);
  line-height: 1.25;
}

.rsv-showcase__text {
  margin: 0;
  max-width: 34ch;
  font-family: var(--rsv-serif);
  font-size: clamp(0.78rem, 1.15vw, 0.86rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
}

.rsv-showcase__pills {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 16px;
}

.rsv-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  min-height: 40px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 176, 111, 0.24);
  border-radius: 999px;
  background: rgba(12, 6, 2, 0.55);
  backdrop-filter: blur(8px);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
}

.rsv-pill svg {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  stroke: var(--rsv-or3);
}

/* —— Right panel —— */
.rsv-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: clamp(20px, 2.8vw, 28px);
  background: linear-gradient(180deg, #0e0704 0%, #0a0503 100%);
  overflow-y: auto;
}

.rsv-panel__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 20px;
  padding: 2px 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.rsv-panel__head-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(232, 88, 10, 0.18);
  border: 1px solid rgba(232, 88, 10, 0.35);
  color: var(--rsv-or);
}

.rsv-panel__head-icon svg {
  width: 18px;
  height: 18px;
}

.rsv-panel__title {
  margin: 0 0 2px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.rsv-panel__title em {
  color: var(--rsv-or);
  font-style: italic;
  font-weight: 700;
}

.rsv-panel__sub {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
}

/* —— Form —— */
.rsv-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rsv-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
}

.rsv-form__row--visit {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rsv-field {
  min-width: 0;
}

.rsv-field--full {
  grid-column: 1 / -1;
}

.rsv-field--mobile-name {
  display: none;
}

.rsv-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.rsv-label svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  stroke: rgba(255, 176, 111, 0.55);
}

.rsv-input,
.rsv-select,
.rsv-textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  background: rgba(6, 3, 1, 0.65);
  color: #fff;
  font: inherit;
  font-size: 0.86rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.rsv-input::placeholder,
.rsv-textarea::placeholder {
  color: rgba(255, 255, 255, 0.28);
}

.rsv-input:focus,
.rsv-select:focus,
.rsv-textarea:focus {
  border-color: rgba(232, 88, 10, 0.55);
  box-shadow: 0 0 0 3px rgba(232, 88, 10, 0.12);
}

.rsv-input::-webkit-calendar-picker-indicator {
  filter: invert(58%) sepia(91%) saturate(1652%) hue-rotate(349deg) brightness(100%) contrast(94%);
  cursor: pointer;
}

.rsv-input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(58%) sepia(91%) saturate(1652%) hue-rotate(349deg) brightness(100%) contrast(94%);
  cursor: pointer;
}

.rsv-input::-webkit-datetime-edit {
  color: #fff;
}

.rsv-input[type="number"]::-webkit-inner-spin-button,
.rsv-input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.rsv-input[type="number"] {
  -moz-appearance: textfield;
}

.rsv-select {
  appearance: none;
  padding-right: 34px;
  background-color: #fff;
  color: #2a1408;
  border-color: rgba(255, 176, 111, 0.38);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23E8580A' stroke-width='2'%3E%3Cpath d='M3 5l3 3 3-3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}

.rsv-select option {
  background: #fff;
  color: #2a1408;
}

.rsv-select:focus {
  background-color: #fff;
  border-color: rgba(232, 88, 10, 0.62);
  box-shadow: 0 0 0 3px rgba(232, 88, 10, 0.14);
}

.rsv-textarea-wrap {
  position: relative;
}

.rsv-textarea {
  min-height: 88px;
  resize: vertical;
  padding-bottom: 28px;
}

.rsv-char-count {
  position: absolute;
  right: 12px;
  bottom: 10px;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.32);
  pointer-events: none;
}

.rsv-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  margin-top: 4px;
  padding: 14px 20px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--rsv-or) 0%, var(--rsv-or2) 100%);
  color: #fff;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 12px 36px rgba(232, 88, 10, 0.45);
  transition: transform 0.2s, filter 0.2s, box-shadow 0.2s;
}

.rsv-submit:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 16px 44px rgba(232, 88, 10, 0.52);
}

.rsv-submit:disabled {
  opacity: 0.72;
  cursor: wait;
  transform: none;
}

.rsv-submit__arrow {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.rsv-submit__arrow svg {
  width: 14px;
  height: 14px;
}

.rsv-message {
  display: none;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.8rem;
  line-height: 1.45;
}

.rsv-foot {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 2px;
}

.rsv-foot__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(232, 88, 10, 0.15);
  border: 1px solid rgba(232, 88, 10, 0.28);
  color: var(--rsv-or);
}

.rsv-foot__icon svg {
  width: 13px;
  height: 13px;
}

.rsv-foot p {
  margin: 4px 0 0;
  font-size: 0.72rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.42);
}

/* —— Tablet (matches desktop side-by-side layout) —— */
@media (min-width: 641px) and (max-width: 1100px) {
  .rsv-modal {
    width: min(940px, calc(100vw - 28px));
    grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
  }

  .rsv-showcase__title {
    font-size: clamp(1.55rem, 2.6vw, 2rem);
  }

  .rsv-form__row--visit {
    gap: 10px 12px;
  }
}

/* —— Mobile: same side-by-side layout as desktop/tablet —— */
@media (max-width: 640px) {
  .rsv-overlay,
  .ct-overlay.rsv-overlay {
    padding: 8px;
    align-items: center;
  }

  .rsv-modal {
    display: grid;
    grid-template-columns: minmax(0, 0.38fr) minmax(0, 0.62fr);
    width: min(980px, calc(100vw - 16px));
    max-height: min(94dvh, 700px);
    height: auto;
    border-radius: 16px;
  }

  .rsv-modal__close {
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
    background: rgba(8, 4, 0, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .rsv-showcase {
    padding: 10px 8px;
    border-right: 1px solid rgba(255, 176, 111, 0.06);
    border-bottom: none;
    background-position: 62% center;
    overflow: hidden;
  }

  .rsv-showcase__brand {
    margin-bottom: 6px;
    gap: 5px;
  }

  .rsv-showcase__brand img {
    height: 22px;
  }

  .rsv-showcase__wordmark {
    letter-spacing: 0.12em;
  }

  .rsv-showcase__wordmark .logo-ramen {
    font-size: 1.7rem;
  }

  .rsv-showcase__wordmark .logo-downtown {
    font-size: 0.52rem;
  }

  .rsv-showcase__title {
    font-size: clamp(0.78rem, 3.2vw, 0.95rem);
    margin-bottom: 4px;
    line-height: 1.06;
  }

  .rsv-showcase__subtitle {
    font-size: clamp(0.62rem, 2.5vw, 0.72rem);
    margin-bottom: 5px;
    padding-bottom: 5px;
  }

  .rsv-showcase__text {
    font-size: 0.56rem;
    line-height: 1.45;
    max-width: none;
  }

  .rsv-showcase__pills {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin-top: 8px;
    overflow: visible;
  }

  .rsv-pill {
    width: 100%;
    min-height: 0;
    padding: 4px 7px;
    font-size: 0.48rem;
    gap: 5px;
    white-space: normal;
  }

  .rsv-pill svg {
    width: 9px;
    height: 9px;
  }

  .rsv-panel {
    padding: 10px 8px 12px;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .rsv-panel__head {
    margin-bottom: 8px;
    padding-bottom: 8px;
    gap: 8px;
  }

  .rsv-panel__head-icon {
    width: 28px;
    height: 28px;
  }

  .rsv-panel__head-icon svg {
    width: 14px;
    height: 14px;
  }

  .rsv-panel__title {
    font-size: 0.82rem;
  }

  .rsv-panel__sub {
    font-size: 0.62rem;
  }

  .rsv-form {
    gap: 8px;
  }

  .rsv-field--desktop-name {
    display: none;
  }

  .rsv-field--mobile-name {
    display: block;
  }

  .rsv-form__row--names {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .rsv-form__row:not(.rsv-form__row--names) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 8px;
  }

  .rsv-form__row--visit {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px 6px;
  }

  .rsv-form__row--visit .rsv-label {
    font-size: 0.44rem;
    letter-spacing: 0.06em;
  }

  .rsv-form__row--visit .rsv-input {
    padding: 7px 5px;
    font-size: 12px;
    min-height: 34px;
  }

  .rsv-label {
    font-size: 0.46rem;
    margin-bottom: 3px;
    gap: 4px;
  }

  .rsv-label svg {
    width: 10px;
    height: 10px;
  }

  .rsv-input,
  .rsv-select,
  .rsv-textarea {
    min-height: 36px;
    padding: 8px 7px;
    font-size: 13px;
    border-radius: 8px;
  }

  .rsv-textarea {
    min-height: 56px;
    padding-bottom: 22px;
  }

  .rsv-char-count {
    font-size: 0.58rem;
    right: 8px;
    bottom: 8px;
  }

  .rsv-submit {
    min-height: 38px;
    padding: 10px 12px;
    font-size: 0.56rem;
    letter-spacing: 0.1em;
    border-radius: 10px;
  }

  .rsv-submit__arrow {
    width: 22px;
    height: 22px;
  }

  .rsv-foot {
    align-items: flex-start;
  }

  .rsv-foot p {
    font-size: 0.56rem;
    margin-top: 0;
    line-height: 1.45;
  }
}

@media (max-width: 380px) {
  .rsv-modal {
    grid-template-columns: minmax(0, 0.36fr) minmax(0, 0.64fr);
    width: calc(100vw - 10px);
    border-radius: 14px;
  }

  .rsv-showcase {
    padding: 8px 6px;
  }

  .rsv-showcase__title {
    font-size: clamp(0.72rem, 3.5vw, 0.88rem);
  }

  .rsv-showcase__text {
    font-size: 0.52rem;
  }

  .rsv-pill {
    font-size: 0.44rem;
    padding: 3px 6px;
  }

  .rsv-panel {
    padding: 8px 6px 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rsv-overlay,
  .rsv-submit {
    transition: none;
  }

  .rsv-submit:hover {
    transform: none;
  }
}
