/* Book Now page */

:root {
  --bn-accent: #34cf79;
  --bn-accent-soft: #e8faf0;
  --bn-heading: #0a0b1d;
  --bn-muted: #747375;
  --bn-border: #e8e8ea;
  --bn-shadow: 0 8px 28px rgba(17, 21, 46, 0.08);
}

.book-now-page {
  background: #f7f8fa;
  min-height: 100vh;
  font-family: Inter, sans-serif;
  color: var(--bn-heading);
}

.book-now-page button,
.book-now-page input,
.book-now-page textarea,
.book-now-page label {
  font-family: Inter, sans-serif;
}

.book-now-header.header-view {
  background: #fff;
  border-bottom: 1px solid rgb(17 21 46 / 8%);
  opacity: 1;
  transform: none;
  overflow: visible;
}

.book-now-header .header {
  position: relative;
  z-index: 5;
}

.book-now-header .header-content {
  display: none;
}

.book-now-header .action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

@media (max-width: 1023px) {
  .book-now-header .header-right .action-btn {
    display: none !important;
  }
}

.book-now-header .logo,
.book-now-header .header-menu li,
.book-now-header .header-right {
  opacity: 1;
  transform: none;
}

.book-now-main {
  position: relative;
  max-width: none;
  margin: 0;
  padding: 48px 24px 80px;
  overflow: visible;
}

.book-now-title {
  margin: 0 0 36px;
  text-align: center;
  font-family: Inter, sans-serif;
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--bn-heading);
}

.book-now-layout {
  position: relative;
  display: block;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  overflow: visible;
}

.book-now-form {
  width: 100%;
  position: relative;
  z-index: 2;
  overflow: visible;
}

.book-section-label {
  margin: 0 0 14px;
  color: var(--bn-muted);
  font-size: 15px;
  font-weight: 500;
}

.book-section-label + .book-datetime,
.book-section-label + .book-field {
  margin-top: 0;
}

.book-datetime {
  position: relative;
  margin-bottom: 8px;
  z-index: 20;
}

.book-fields-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.book-field {
  margin-bottom: 14px;
}

.book-field--dropdown {
  position: relative;
  margin-bottom: 0;
  z-index: 1;
}

.book-field--dropdown.is-open {
  z-index: 30;
}

.book-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--bn-heading);
}

.book-trigger,
.book-field input,
.book-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--bn-border);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--bn-shadow);
  font: inherit;
  color: var(--bn-heading);
  outline: none;
}

.book-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 52px;
  padding: 0 16px;
  cursor: pointer;
  text-align: left;
}

.book-trigger.is-open {
  border-color: var(--bn-accent);
  box-shadow: 0 0 0 3px rgba(52, 207, 121, 0.18);
}

.book-trigger.is-open .book-chevron {
  transform: rotate(180deg);
}

.book-chevron {
  transition: transform 0.2s ease;
}

.book-trigger:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.book-trigger span {
  color: var(--bn-muted);
}

.book-trigger.is-filled span {
  color: var(--bn-heading);
  font-weight: 500;
}

.book-trigger svg {
  flex-shrink: 0;
  color: #111;
}

.book-field input {
  height: 52px;
  padding: 0 16px;
}

.book-field textarea {
  min-height: 120px;
  padding: 14px 16px;
  resize: vertical;
}

.book-field input:focus,
.book-field textarea:focus,
.book-trigger:focus-visible {
  border-color: var(--bn-accent);
  box-shadow: 0 0 0 3px rgba(52, 207, 121, 0.18);
}

.book-dropdown-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 40;
  min-width: 280px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(17, 21, 46, 0.16);
  border: 1px solid var(--bn-border);
  padding: 16px;
  animation: book-dropdown-in 0.16s ease;
}

.book-dropdown-panel--time {
  min-width: 240px;
}

.book-dropdown-panel[hidden] {
  display: none !important;
}

@keyframes book-dropdown-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.cal-month-btn {
  border: 0;
  background: none;
  font: inherit;
  font-weight: 600;
  color: var(--bn-heading);
  cursor: default;
}

.cal-nav {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: var(--bn-heading);
}

.cal-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.cal-nav:hover:not(:disabled) {
  background: #f3f4f6;
}

.cal-weekdays,
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}

.cal-weekdays span {
  font-size: 12px;
  font-weight: 600;
  color: var(--bn-muted);
  padding: 6px 0;
}

.cal-day {
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--bn-heading);
  cursor: pointer;
}

.cal-day:hover:not(:disabled):not(.is-selected) {
  background: #f3f4f6;
}

.cal-day.is-selected {
  background: var(--bn-accent);
  color: #fff;
}

.cal-day:disabled,
.cal-day.is-outside {
  color: #c5c6cb;
  cursor: default;
}

.cal-day.is-empty {
  visibility: hidden;
  pointer-events: none;
}

.book-time-title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--bn-muted);
}

.book-time-list {
  max-height: 280px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 4px;
}

.book-time-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 42px;
  padding: 8px 12px;
  border: 1.5px solid transparent;
  border-radius: 10px;
  background: transparent;
  font: inherit;
  font-size: 14px;
  color: var(--bn-heading);
  cursor: pointer;
  text-align: left;
}

.book-time-option:hover:not(:disabled):not(.is-selected) {
  background: #f7f8fa;
}

.book-time-option.is-selected {
  border-color: var(--bn-accent);
  background: var(--bn-accent-soft);
  font-weight: 600;
}

.book-time-option:disabled {
  color: #b0b1b6;
  cursor: not-allowed;
}

.book-time-option .check {
  width: 18px;
  height: 18px;
  color: var(--bn-accent);
  opacity: 0;
}

.book-time-option.is-selected .check {
  opacity: 1;
}

.book-time-empty {
  margin: 12px 0;
  color: var(--bn-muted);
  font-size: 14px;
  text-align: center;
}

.book-submit {
  display: block;
  width: min(240px, 100%);
  margin: 28px auto 0;
  height: 54px;
  border: 0;
  border-radius: 999px;
  background: var(--bn-accent);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.book-submit:hover:not(:disabled) {
  background: #2bbd6c;
}

.book-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.book-form-error,
.book-form-success {
  margin: 12px 0 0;
  font-size: 14px;
  text-align: center;
}

.book-form-error {
  color: #dc2626;
}

.book-form-success {
  color: #15803d;
}

.book-now-mascot {
  position: absolute;
  right: 120px;
  top: 25%;
}

.book-now-mascot img {
  display: block;
}

@media (max-width: 900px) {
  .book-now-layout {
    max-width: 520px;
  }

  .book-now-mascot {
    display: none;
  }

  .book-now-title {
    font-size: 32px;
    margin-bottom: 28px;
  }

  .book-now-main {
    padding: 28px 16px 100px;
  }

  .book-fields-row {
    grid-template-columns: 1fr;
  }

  .book-dropdown-panel {
    left: 0;
    right: 0;
    min-width: 0;
    width: 100%;
  }
}
