/* Reservation Start Page - actual start.php markup */

.page--reservation {
  padding: 40px 0 72px;
}

.page--reservation .container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-header {
  margin-bottom: 24px;
}

.page-title {
  margin: 0 0 14px;
  font-size: 52px;
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #181818;
}

.page-subtitle {
  margin: 0;
  max-width: 820px;
  color: #4e4e4e;
  font-size: 16px;
  line-height: 1.7;
}

.reservation-card {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 28px;
  align-items: start;
  background: #ffffff;
  border: 1px solid #ece5d8;
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(17, 17, 17, 0.06);
  overflow: hidden;
}

.reservation-card__left {
  padding: 30px 30px 28px;
}

.reservation-card__right {
  padding: 30px 28px;
  background: linear-gradient(180deg, #fcfaf6 0%, #f7f2e8 100%);
  border-left: 1px solid #ece5d8;
}

.field-label {
  display: block;
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #202020;
}

.field-input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid #d9d2c5;
  border-radius: 14px;
  background: #fff;
  color: #1f1f1f;
  font-size: 15px;
  line-height: 52px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  box-sizing: border-box;
}

.field-input:focus {
  border-color: #c4932f;
  box-shadow: 0 0 0 4px rgba(196, 147, 47, 0.12);
}

.field-hint {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.65;
  color: #6b6b6b;
}

.st {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  margin-left: 6px;
}

.st.ok { background: #e8f8ee; color: #177245; }
.st.wait { background: #fff5e5; color: #a56a00; }
.st.lock { background: #fdecec; color: #ab2424; }

.delivery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.reservation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.14s ease, opacity 0.14s ease, box-shadow 0.14s ease;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn:active:not(:disabled) {
  transform: translateY(0);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  box-shadow: none;
}

.btn--primary {
  background: #c4932f;
  color: #fff;
  box-shadow: 0 10px 22px rgba(196, 147, 47, 0.24);
}

.btn--ghost {
  background: #f2f2f2;
  color: #222;
}

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

.summary-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.summary-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.summary-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #816c43;
}

.summary-value {
  text-align: right;
  font-size: 15px;
  font-weight: 600;
  color: #1d1d1d;
}

.summary-value.ok { color: #177245; }
.summary-value.wait { color: #a56a00; }
.summary-value.lock { color: #ab2424; }

.summary-muted {
  max-width: 240px;
  font-size: 14px;
  line-height: 1.65;
  color: #6e6558;
  font-weight: 500;
}

.reservation-debug {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff8ea;
  border: 1px solid #ead9b0;
  color: #7b5c18;
  font-size: 13px;
  line-height: 1.5;
}

.notice.notice--warn {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #ead9b0;
  background: #fff8ea;
  color: #7b5c18;
  font-size: 14px;
}

.page--reservation .flatpickr-calendar {
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  border: 1px solid #eadfca;
  border-radius: 16px;
}

.page--reservation .flatpickr-day.selected,
.page--reservation .flatpickr-day.startRange,
.page--reservation .flatpickr-day.endRange {
  background: #c4932f;
  border-color: #c4932f;
}

.page--reservation .flatpickr-day.inRange {
  background: rgba(196, 147, 47, 0.14);
  border-color: rgba(196, 147, 47, 0.14);
  box-shadow: none;
}

.page--reservation .flatpickr-day.today {
  border-color: #c4932f;
}

@media (max-width: 992px) {
  .page--reservation {
    padding: 28px 0 56px;
  }

  .page-title {
    font-size: 40px;
  }

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

  .reservation-card__right {
    border-left: 0;
    border-top: 1px solid #ece5d8;
  }
}

@media (max-width: 640px) {
  .page--reservation .container {
    padding: 0 14px;
  }

  .page-title {
    font-size: 34px;
  }

  .reservation-card__left,
  .reservation-card__right {
    padding: 20px 18px;
  }

  .reservation-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .summary-row {
    flex-direction: column;
    gap: 6px;
  }

  .summary-value {
    text-align: left;
  }

  .summary-muted {
    max-width: none;
  }

  .delivery-grid {
    grid-template-columns: 1fr;
  }
}
