#booking-layout {
  display: flex;
  gap: 1.4rem;
  background: #f9f7f2;
  border-radius: 16px;
  padding: 1.4rem;
  box-shadow: 0 4px 12px rgba(35,57,76,0.1);
  align-items: stretch;
  min-height: 390px;
  width: fit-content;
  margin: 0 auto;
}
#calendar-container {
  flex: 0 0 360px;
  background: #ffffff;
  border-radius: 12px;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
}
.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-weight: 600;
  color: #23394C;
  font-size: 1.1rem;
}
.calendar-header button {
  background: none;
  border: 1px solid #d4d0c7;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  font-size: 1.3rem;
  cursor: pointer;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}
.day-name {
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: #777;
  padding: 6px 2px;
  text-transform: uppercase;
}
.calendar-day {
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 500;
  border-radius: 9px;
  background: #fff;
  border: 1px solid #e8e4dc;
  transition: all 0.2s ease;
}
.calendar-day:hover:not(.unavailable) {
  background: #fff7e0;
  border-color: #D9B400;
}
.calendar-day.today { font-weight: 700; background: #fffdf0; }
.calendar-day.selected {
  background: #23394C !important;
  color: #fff;
  border-color: #23394C;
}
.calendar-day.unavailable {
  color: #aaa;
  background: #f6f4ed;
  cursor: not-allowed;
}
#time-column {
  flex: 0 0 240px;              /* ← explicit width (like original) — this is the key fix */
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.timeline {
  flex: 1;                      /* ← fills the full height of the column */
  min-height: 390px;            /* ← safety so it never collapses */
  position: relative;
  background: #f9f7f2;
  border: 1px solid #e0dcd4;
  border-radius: 10px;
  overflow: hidden;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 62px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: #e0dcd4;
  z-index: 2;
}
.hour-mark {
  position: absolute;
  left: 0;
  width: 62px;
  height: 31px;
  border-top: 1px dashed #d0ccc4;
  font-size: 0.82rem;
  color: #888;
  padding-left: 12px;
  display: flex;
  align-items: center;
  background: #f0ede6;
  z-index: 1;
}
.hour-mark:first-child { border-top: none; }
.hour-mark.unavailable { background: #f1e8e8; }
.hour-mark.lunch { background: #f8f0e8; }
.slot-block {
  position: absolute;
  left: 63px;
  right: 0;
  background: #fff;
  border: 1px solid #e8e4dc;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.2s ease;
}
.slot-block:hover {
  background: #fff7e0;
  border-color: #D9B400;
}
.slot-block.selected {
  background: #23394C !important;
  border-color: #23394C;
}
.timeline-header {
  display: none;
}

#expand-book input:not([type="checkbox"]):not([type="radio"]),
#expand-book textarea {
  width: 100% !important;
  padding: 0.9rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1.02rem;
  margin-bottom: 1rem;
}

.name-email-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}
.name-email-row input {
  flex: 1;
  margin-bottom: 0 !important;
}

@media (max-width: 480px) {
  .name-email-row {
    flex-direction: column;
    gap: 0;
  }
  .name-email-row input {
    margin-bottom: 1rem !important;
  }
}


#expand-book textarea {
  min-height: 110px;
}
#expand-book button[type="submit"] {
  background: #FF9F4F;
  color: #ffffff;
  border: none;
  padding: 13px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  width: 100%;
  box-shadow: 0 3px 8px rgba(255, 159, 79, 0.35);
  transition: all 0.2s ease;
  margin-top: 0.5rem;
}
#expand-book button[type="submit"]:hover {
  background: #FF8838;
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(255, 159, 79, 0.45);
}
@media (max-width: 768px) {
  #booking-layout {
    flex-direction: column;
    min-height: auto;
    width: 100%;
    gap: 1.2rem;
  }
  #calendar-container {
    flex: none;
    width: 100%;
  }
  #time-column {
    flex: none;
    width: 100%;
  }
  .timeline {
    min-height: 340px;
  }
}
.calendar-header button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}
.calendar-header button .material-icons-outlined {
  font-size: 1.45rem;
  line-height: 1;
  color: #23394C;
}
.calendar-header button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  border-color: #d4d0c7;
  background: #f6f4ed;
}
.calendar-header button:disabled .material-icons-outlined {
  color: #aaa;
}

/* === NDA PANEL === */
#nda-fields {
  background: #f9f7f2;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  margin: 0;
  border: 1px solid #e8e4dc;
}

.nda-fields-content {
  display: none;
  margin-top: 0.25rem;
}

#expand-book input[type="checkbox"],
#expand-book input[type="radio"] {
  width: auto !important;
  padding: 0 !important;
  margin: 0;
  flex-shrink: 0;
  accent-color: #23394C;
  vertical-align: middle;
}

#nda-fields input:not([type="checkbox"]):not([type="radio"]) {
  margin-bottom: 0.6rem;
}

#nda-fields label {
  margin-bottom: 0.4rem;
}
