/* Booking dialog only. Keep the rest of the site and checkout behavior intact. */
#rentModal {
  height: 100vh;
  height: 100dvh;
  padding: 24px;
  align-items: center;
  background: rgba(15, 18, 22, .55);
  overflow: hidden;
}
#rentModal .modal-content {
  width: min(100%, 880px);
  max-width: 880px;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 70px rgba(0, 0, 0, .18);
  scrollbar-gutter: stable;
}
#rentModal .modal-head {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 19px 28px;
  border-bottom: 1px solid #ececec;
  border-radius: 0;
  background: #fff;
  color: #202124;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.45;
  text-align: left;
  overflow-wrap: anywhere;
}
#rentModal .modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #e6e6e6;
  border-radius: 9px;
  background: #fafafa;
  color: #444;
  font-size: 27px;
  font-weight: 400;
  line-height: 1;
}
#rentModal .modal-close:hover { background: #f0f0f0; }
#rentModal .form-row.mobile {
  display: grid;
  grid-template-columns: minmax(0, 270px) minmax(0, 1fr);
  align-items: start;
  gap: 30px;
  margin: 0;
  padding: 28px;
}
#rentModal .form-row.mobile > .form-group { margin: 0; min-width: 0; }
#rentModal .form-group-mobile { display: block; }
#rentModal .form-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  margin: 0 0 16px;
  padding: 8px;
  border: 1px solid #eeeeee;
  border-radius: 10px;
  background: #fafafa;
  object-fit: contain;
}
#rentModal .form-group-mobile > p {
  margin: 0;
  color: #5b6067;
  font-size: .9rem;
  line-height: 1.65;
}
#rentModal .storage-notice {
  margin: 18px 0 0;
  padding: 14px;
  border: 1px solid #e8e8e8;
  border-radius: 9px;
  background: #fafafa;
  color: #62666b;
  font-size: .8rem;
  line-height: 1.6;
}
#rentModal .storage-notice strong { margin-bottom: 4px; color: #34383c; font-weight: 600; }
#rentModal #rentalForm { width: 100%; min-width: 0; margin: 0; }
#rentModal #rentalForm .form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
}
#rentModal #rentalForm .form-group { min-width: 0; margin: 0 0 18px; }
#rentModal #rentalForm label {
  margin-bottom: 7px;
  color: #34383c;
  font-size: .86rem;
  font-weight: 600;
  line-height: 1.5;
}
#rentModal #rentalForm input:not([type="checkbox"]):not([type="hidden"]) {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid #dcdfe3;
  border-radius: 8px;
  background: #fff;
  color: #202124;
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
  box-shadow: none;
}
#rentModal #rentalForm input::placeholder { color: #90959b; opacity: 1; }
#rentModal #rentalForm input:not([type="checkbox"]):focus {
  border-color: #a74804;
  outline: 2px solid rgba(167, 72, 4, .12);
  outline-offset: 1px;
  box-shadow: none;
}
#rentModal #rentalForm input[type="checkbox"] {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 2px 0 0;
  padding: 0;
  accent-color: #a74804;
}
#rentModal #rentalForm .company-checkbox { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 9px; }
#rentModal #rentalForm .company-checkbox label { margin: 0; cursor: pointer; }
#rentModal #rentalForm .terms-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 18px;
}
#rentModal #rentalForm .terms-row label { margin: 0; font-weight: 400; }
#rentModal .terms-row a { color: #a74804; text-underline-offset: 3px; }
#rentModal #priceDisplay { display: none; }
#rentModal .booking-summary {
  margin: 0 0 16px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fafafa;
}
#rentModal .booking-summary > div { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; padding: 5px 0; font-size: .88rem; }
#rentModal .booking-summary > div > span { color: #646970; }
#rentModal .booking-summary > div > strong { color: #24272b; font-weight: 700; }
#rentModal .booking-summary p { margin: 11px 0 0; padding-top: 12px; border-color: #e5e7eb; color: #646970; font-size: .78rem; line-height: 1.6; }
#rentModal .checkout-note { margin: 0 0 16px; color: #747980; font-size: .78rem; line-height: 1.6; }
#rentModal .checkout-status { margin: 0 0 16px; border-color: #e5d5c8; background: #fff9f3; color: #633e22; font-size: .86rem; line-height: 1.5; }
#rentModal .submit-btn {
  width: 100%;
  min-height: 49px;
  margin: 0;
  padding: 13px 16px;
  border-radius: 9px;
  background: #a74804;
  color: #fff;
  font: inherit;
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.5;
}
#rentModal .submit-btn:hover { background: #893b04; transform: none; }
#rentModal .submit-btn:disabled { opacity: .65; }
#rentModal .iti { display: block; width: 100%; }
#rentModal .iti input[type="tel"] { padding-left: 54px !important; }
#rentModal .iti__country-list { max-width: min(320px, calc(100vw - 64px)); white-space: normal; font-size: .88rem; }
#rentModal .flatpickr-wrapper { display: block; width: 100%; }
#rentModal .flatpickr-calendar.static.open { position: relative; top: auto; left: auto; width: 100%; max-width: 308px; margin-top: 8px; border: 1px solid #e5e7eb; border-radius: 8px; box-shadow: none; }
#rentModal .flatpickr-calendar::before, #rentModal .flatpickr-calendar::after { display: none; }
#rentModal .flatpickr-innerContainer, #rentModal .flatpickr-rContainer, #rentModal .flatpickr-days { width: 100%; min-width: 0; }
#rentModal .dayContainer { width: 100%; min-width: 0; max-width: 100%; }
#rentModal .flatpickr-day { max-width: none; }
#rentModal #rentalForm .flatpickr-current-month input.cur-year {
  display: inline-block;
  width: 100%;
  min-height: 0;
  height: auto;
  padding: 0 0 0 .5ch;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}
@media (max-width: 860px) {
  #rentModal { padding: 16px; }
  #rentModal .modal-content { width: min(100%, 580px); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); }
  #rentModal .modal-head { padding: 16px 22px; font-size: 1.02rem; }
  #rentModal .form-row.mobile { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 22px; }
  #rentModal .form-group-mobile { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 14px; }
  #rentModal .form-image { width: 100%; height: clamp(220px, 60vw, 320px); max-height: none; margin: 0; padding: 8px; object-fit: contain; }
  #rentModal .form-group-mobile > p { font-size: .85rem; }
  #rentModal .storage-notice { grid-column: 1 / -1; margin: 0; padding: 11px 13px; }
  #rentModal .storage-notice strong { display: inline; margin-right: 4px; }
}
@media (max-width: 480px) {
  #rentModal { padding: 8px; }
  #rentModal .modal-content { max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); border-radius: 12px; scrollbar-gutter: auto; }
  #rentModal .modal-head { padding: 14px 16px; gap: 10px; font-size: .94rem; }
  #rentModal .form-row.mobile { gap: 20px; padding: 18px 16px; }
  #rentModal #rentalForm .form-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  #rentModal #rentalForm .form-group { margin-bottom: 16px; }
  #rentModal .booking-summary { padding: 13px; }
}
@media (max-height: 560px) and (min-width: 761px) {
  #rentModal { padding: 8px; }
  #rentModal .modal-content { max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); }
  #rentModal .modal-head { padding-block: 12px; }
}
