/* Booking modal styles */

.lh-modal {
  position: fixed; inset: 0; z-index: 100;
  display: none; align-items: flex-start; justify-content: center;
  padding: 24px 12px;
  background: rgba(12, 29, 54, 0.7);
  backdrop-filter: blur(4px);
  overflow-y: auto;
}
.lh-modal[data-open="true"] { display: flex; }
body[data-modal-open="true"] { overflow: hidden; }

.lh-modal-card {
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 640px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  margin-top: 40px;
}

.lh-modal-header {
  padding: 24px 28px;
  background: linear-gradient(135deg, #0c1d36, #162d4f);
  color: #fff;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.lh-modal-header h2 { font-size: 20px; font-weight: 800; margin: 0 0 4px; line-height: 1.2; }
.lh-modal-header .rate { color: #fbbf24; font-weight: 600; font-size: 14px; }
.lh-modal-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 36px; height: 36px; border-radius: 50%;
  font-size: 20px; line-height: 1; cursor: pointer;
}
.lh-modal-close:hover { background: rgba(255, 255, 255, 0.2); }

.lh-modal-body {
  padding: 24px 28px;
  max-height: calc(100vh - 240px);
  overflow-y: auto;
}

.lh-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: #6b7280;
  margin-bottom: 6px;
}
.lh-input, .lh-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-size: 14px;
  color: #0c1d36;
  background: #fff;
  font-family: inherit;
}
.lh-input:focus, .lh-textarea:focus {
  outline: none;
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}
.lh-input-group { margin-bottom: 14px; }
.lh-input-group-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }

.lh-section {
  border-top: 1px solid #f3f4f6;
  margin-top: 20px;
  padding-top: 20px;
}
.lh-section-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #f59e0b;
  font-weight: 800;
  margin-bottom: 10px;
}

.lh-waiver-scroll {
  max-height: 200px;
  overflow-y: auto;
  padding: 16px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.6;
  color: #374151;
  margin-bottom: 16px;
}
.lh-waiver-scroll h3 { margin: 8px 0 4px; font-size: 13px; color: #0c1d36; text-transform: uppercase; letter-spacing: 0.05em; }
.lh-waiver-scroll h3:first-child { margin-top: 0; }
.lh-waiver-scroll p { margin: 4px 0; }
.lh-waiver-scroll ul { padding-left: 16px; margin: 4px 0; }

.lh-initial {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 13px;
  color: #374151;
}
.lh-initial input {
  width: 56px;
  text-align: center;
  text-transform: uppercase;
  font-weight: 700;
}

.lh-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: #374151;
  margin: 8px 0;
}
.lh-checkbox input { margin-top: 2px; }

.lh-price-summary {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  margin-top: 16px;
}
.lh-price-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #6b7280;
  padding: 4px 0;
}
.lh-price-row.total {
  color: #0c1d36;
  font-weight: 800;
  font-size: 18px;
  border-top: 1px solid #e5e7eb;
  margin-top: 8px;
  padding-top: 8px;
}

.lh-modal-footer {
  padding: 16px 28px 24px;
  border-top: 1px solid #f3f4f6;
}
.lh-submit {
  width: 100%;
  background: #f59e0b;
  color: #fff;
  font-weight: 700;
  padding: 14px;
  border-radius: 12px;
  border: none;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.15s;
}
.lh-submit:hover { background: #d97706; }
.lh-submit:disabled { background: #9ca3af; cursor: not-allowed; }
.lh-error {
  margin-top: 12px;
  background: #fef2f2;
  color: #991b1b;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.4;
}
.lh-error:empty { display: none; }

.lh-loading {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: lh-spin 0.8s linear infinite;
  vertical-align: -2px;
  margin-right: 6px;
}
@keyframes lh-spin { to { transform: rotate(360deg); } }

/* Flatpickr overrides so the calendar matches our brand */
.flatpickr-day.selected, .flatpickr-day.startRange, .flatpickr-day.endRange,
.flatpickr-day.selected.inRange, .flatpickr-day.startRange.inRange,
.flatpickr-day.endRange.inRange {
  background: #f59e0b !important;
  border-color: #f59e0b !important;
}
.flatpickr-day.inRange { background: #fef3c7 !important; border-color: #fef3c7 !important; color: #92400e; }
.flatpickr-day.today { border-color: #0c1d36; }
