/* /css/reservation.css */

.reservation-page {
  min-height: 70vh;
  background: #f7f9fc;
  color: #161b26;
}

.reservation-container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.reservation-container--narrow {
  width: min(720px, calc(100% - 40px));
}

.reservation-hero {
  padding: 76px 0 72px;
  background:
    radial-gradient(circle at 12% 10%, rgba(18,57,186,.10), transparent 25rem),
    radial-gradient(circle at 87% 8%, rgba(255,104,40,.09), transparent 22rem),
    linear-gradient(180deg, #fff 0%, #f7f9fc 100%);
  border-bottom: 1px solid #e9edf3;
}

.reservation-hero--compact {
  padding: 58px 0 54px;
}

.reservation-eyebrow {
  margin: 0 0 13px;
  color: #1239ba;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .14em;
}

.reservation-hero h1 {
  margin: 0;
  color: #111827;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -.045em;
}

.reservation-hero p:not(.reservation-eyebrow) {
  margin: 15px 0 0;
  color: #697386;
  font-size: 16px;
  line-height: 1.7;
}

.reservation-body {
  padding: 58px 0 90px;
}

.reservation-title-block,
.reservation-section-title {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
}

.reservation-step,
.reservation-section-title > span {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: #1239ba;
  font-size: 13px;
  font-weight: 800;
}

.reservation-title-block h2,
.reservation-section-title h2 {
  margin: 0;
  color: #161b26;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.035em;
}

.reservation-title-block p,
.reservation-section-title p {
  margin: 5px 0 0;
  color: #7a8495;
  font-size: 14px;
  line-height: 1.6;
}

.reservation-search-card,
.reservation-detail-section,
.reservation-table-wrap {
  border: 1px solid #e7ebf1;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 48px rgba(20, 39, 82, .06);
}

.reservation-search-card {
  padding: 36px;
}

.reservation-search-form {
  display: grid;
  gap: 20px;
}

.reservation-field {
  display: grid;
  gap: 9px;
}

.reservation-field > span {
  color: #273142;
  font-size: 14px;
  font-weight: 700;
}

.reservation-field input {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border: 1px solid #dfe5ec;
  border-radius: 13px;
  outline: 0;
  color: #161b26;
  background: #fff;
  font: inherit;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.reservation-field input:focus {
  border-color: #1239ba;
  box-shadow: 0 0 0 4px rgba(18,57,186,.08);
}

.reservation-primary-button {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 24px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #1239ba, #235bd7);
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(18,57,186,.18);
}

.reservation-primary-button:hover {
  transform: translateY(-1px);
}

.reservation-primary-button--link {
  min-width: 170px;
}

.reservation-member-guide {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
  padding: 18px 20px;
  border-radius: 16px;
  background: #f7f9ff;
}

.reservation-member-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #1239ba;
  background: #eaf0ff;
}

.reservation-member-icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.8;
}

.reservation-member-guide strong {
  display: block;
  font-size: 14px;
}

.reservation-member-guide p {
  margin: 3px 0 0;
  color: #748094;
  font-size: 13px;
  line-height: 1.55;
}

.reservation-alert {
  margin-bottom: 20px;
  padding: 14px 16px;
  border: 1px solid #ffd7c4;
  border-radius: 12px;
  color: #b94412;
  background: #fff7f2;
  font-size: 14px;
  font-weight: 600;
}

.reservation-list-head,
.reservation-detail-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.reservation-list-head h2 {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.035em;
}

.reservation-list-head p {
  margin: 6px 0 0;
  color: #788496;
  font-size: 14px;
}

.reservation-outline-button,
.reservation-back-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 16px;
  border: 1px solid #dce2ea;
  border-radius: 12px;
  color: #384355;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
}

.reservation-table-wrap {
  overflow: hidden;
}

.reservation-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.reservation-table th {
  padding: 17px 20px;
  border-bottom: 1px solid #e8ecf2;
  color: #626d7e;
  background: #f9fafc;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.reservation-table td {
  padding: 21px 20px;
  border-bottom: 1px solid #eef1f5;
  color: #303848;
  font-size: 14px;
  text-align: center;
}

.reservation-table tbody tr:last-child td {
  border-bottom: 0;
}

.reservation-table tbody tr {
  transition: background .18s ease;
}

.reservation-table tbody tr:hover {
  background: #fbfcff;
}

.reservation-table td a {
  display: block;
}

.reservation-name-link {
  color: #1239ba;
  font-weight: 800;
}

.reservation-status {
  display: inline-flex;
  min-width: 64px;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.reservation-status--large {
  min-width: 78px;
  min-height: 36px;
  font-size: 13px;
}

.reservation-status.is-received {
  color: #87540a;
  background: #fff3d7;
}

.reservation-status.is-quoted {
  color: #0d5a8c;
  background: #e9f5ff;
}

.reservation-status.is-confirmed {
  color: #0e7146;
  background: #e7f8ef;
}

.reservation-status.is-cancelled {
  color: #9a3440;
  background: #fff0f1;
}

.reservation-list-guide {
  margin: 14px 4px 0;
  color: #8a94a4;
  font-size: 12px;
  text-align: right;
}

.reservation-empty {
  display: grid;
  min-height: 290px;
  place-items: center;
  align-content: center;
  gap: 8px;
  border: 1px solid #e5e9ef;
  border-radius: 22px;
  color: #727d8e;
  background: #fff;
  text-align: center;
}

.reservation-empty--small {
  min-height: 130px;
}

.reservation-empty-icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 5px;
  place-items: center;
  border-radius: 50%;
  color: #8090a6;
  background: #f1f4f8;
}

.reservation-empty-icon svg {
  width: 27px;
  height: 27px;
  stroke-width: 1.6;
}

.reservation-empty strong {
  color: #323c4c;
  font-size: 17px;
}

.reservation-empty p {
  margin: 0;
  font-size: 13px;
}

.reservation-detail-section {
  margin-bottom: 26px;
  padding: 32px;
}

.reservation-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #e7ebf1;
  border-radius: 16px;
}

.reservation-info-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  min-height: 58px;
  border-bottom: 1px solid #edf0f4;
}

.reservation-info-item:nth-child(odd):not(.reservation-info-item--full) {
  border-right: 1px solid #edf0f4;
}

.reservation-info-item--full {
  grid-column: 1 / -1;
}

.reservation-info-item > span,
.reservation-info-item > strong {
  display: flex;
  min-width: 0;
  align-items: center;
  padding: 15px 16px;
}

.reservation-info-item > span {
  color: #697386;
  background: #f8fafc;
  font-size: 13px;
  font-weight: 700;
}

.reservation-info-item > strong {
  color: #253044;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.65;
  word-break: break-word;
}

.reservation-info-grid .reservation-info-item:nth-last-child(-n+2) {
  border-bottom: 0;
}

.reservation-info-item--full:last-child {
  border-bottom: 0;
}

.reservation-people-detail,
.reservation-request-text {
  align-items: flex-start !important;
}

.reservation-group-number {
  margin: 26px 0 12px;
  color: #1239ba;
  font-size: 16px;
}

.reservation-detail-actions {
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

@media (max-width: 760px) {
  .reservation-container,
  .reservation-container--narrow {
    width: calc(100% - 28px);
  }

  .reservation-hero,
  .reservation-hero--compact {
    padding: 42px 0 38px;
  }

  .reservation-body {
    padding: 34px 0 64px;
  }

  .reservation-search-card,
  .reservation-detail-section {
    padding: 22px 18px;
    border-radius: 18px;
  }

  .reservation-list-head,
  .reservation-detail-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .reservation-table-wrap {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .reservation-table,
  .reservation-table tbody,
  .reservation-table tr,
  .reservation-table td {
    display: block;
    width: 100%;
  }

  .reservation-table thead {
    display: none;
  }

  .reservation-table tbody {
    display: grid;
    gap: 12px;
  }

  .reservation-table tr {
    overflow: hidden;
    border: 1px solid #e6eaf0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(20,39,82,.04);
  }

  .reservation-table td {
    display: grid;
    grid-template-columns: 90px 1fr;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #eef1f5;
    text-align: left;
  }

  .reservation-table td::before {
    color: #788496;
    content: attr(data-label);
    font-size: 12px;
    font-weight: 700;
  }

  .reservation-table td a {
    text-align: right;
  }

  .reservation-table td:last-child {
    border-bottom: 0;
  }

  .reservation-list-guide {
    text-align: left;
  }

  .reservation-info-grid {
    grid-template-columns: 1fr;
  }

  .reservation-info-item,
  .reservation-info-item--full {
    grid-column: auto;
    grid-template-columns: 105px 1fr;
    border-right: 0 !important;
  }

  .reservation-info-grid .reservation-info-item {
    border-bottom: 1px solid #edf0f4 !important;
  }

  .reservation-info-grid .reservation-info-item:last-child {
    border-bottom: 0 !important;
  }

  .reservation-info-item > span,
  .reservation-info-item > strong {
    padding: 13px 12px;
  }
}
