.tour-request-dialog {
  width: min(660px, calc(100vw - 24px));
  max-height: calc(100dvh - 30px);
  overflow: auto;
  border: 1px solid #4c6082;
  border-radius: 17px;
  padding: 0;
  background: #202227;
  color: #eef4ff;
  box-shadow: 0 25px 90px #0009;
}
.tour-request-dialog::backdrop {
  background: #202227bb;
}
.tour-request-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  background: #202227;
  border-bottom: 1px solid #364b6c;
}
.tour-request-head h2 {
  margin: 0;
  font-size: 25px;
}
.tour-request-head p {
  margin: 7px 0 0;
  color: #b9cbe4;
  line-height: 1.5;
  font-size: 16px;
}
.tour-request-head button {
  align-self: start;
  border: 0;
  background: transparent;
  color: white;
  font-size: 29px;
  cursor: pointer;
}
.tour-request-form {
  padding: 22px 24px;
  display: grid;
  gap: 19px;
  font-size: 17px;
}
.tour-request-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.tour-request-form label,
.tour-counter {
  display: grid;
  gap: 9px;
  min-width: 0;
}
.tour-request-form select,
.tour-request-form input:not([type='checkbox']) {
  width: 100%;
  min-width: 0;
  padding: 12px;
  background: #202227;
  color: #fff;
  border: 1px solid #49607e;
  border-radius: 9px;
  font: inherit;
  color-scheme: dark;
}
.tour-request-form label small {
  font-size: 14px;
  color: #b9cbe4;
  line-height: 1.4;
}
.tour-counter > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #202227;
  border: 1px solid #49607e;
  border-radius: 9px;
  padding: 5px;
}
.tour-counter button {
  width: 39px;
  height: 39px;
  border: 1px solid #415c7a;
  border-radius: 8px;
  background: #202227;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}
.tour-counter button:disabled {
  opacity: 0.35;
  cursor: default;
}
.tour-counter output {
  font-size: 21px;
  font-weight: 700;
}
.tour-child-ages {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.tour-child-ages:empty {
  display: none;
}
.tour-country-field > label {
  margin-bottom: 9px;
}
.tour-country-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.tour-country-chips button {
  background: #202227;
  color: #9be7f1;
  border: 1px solid #407085;
  border-radius: 8px;
  padding: 8px 11px;
  font: inherit;
  cursor: pointer;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.tour-country-hint {
  font-size: 14px;
  color: #b9cbe4;
  margin: 8px 0 0;
}
.tour-request-terms {
  padding: 17px;
  border: 1px solid #78653a;
  border-radius: 12px;
  background: #202227;
}
.tour-request-terms strong {
  color: #ffe28b;
  font-size: 18px;
}
.tour-request-terms p {
  font-size: 15px;
  line-height: 1.6;
  margin: 8px 0;
}
.tour-paid-consent {
  display: flex !important;
  align-items: flex-start;
  gap: 10px !important;
  font-size: 15px;
  line-height: 1.5;
  margin-top: 13px;
}
.tour-paid-consent[hidden] {
  display: none !important;
}
.tour-paid-consent input {
  flex: none;
  width: 19px;
  height: 19px;
  margin: 3px 0;
  accent-color: #f2c94c;
}
.tour-request-history {
  color: #cde5f1;
}
.tour-request-status {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: #ffe28b;
}
.tour-request-status:empty {
  display: none;
}
.tour-request-submit {
  border: 0;
  border-radius: 10px;
  padding: 14px;
  background: #f2cf50;
  color: #15191f;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.tour-request-submit:disabled {
  opacity: 0.65;
  cursor: default;
}
@media (max-width: 520px) {
  .tour-request-head,
  .tour-request-form {
    padding: 18px;
  }
  .tour-request-grid {
    gap: 12px;
  }
  .tour-request-form {
    font-size: 16px;
  }
  .tour-request-head h2 {
    font-size: 23px;
  }
  .tour-child-ages {
    grid-template-columns: 1fr;
  }
}
.tour-budget {
  min-width: 0;
  border: 0;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.tour-budget legend {
  padding: 0;
  margin-bottom: 8px;
}
.tour-budget label {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 7px;
}
.tour-budget output {
  text-align: right;
  color: #ffe28b;
  font-size: 16px;
  font-weight: 700;
}
.tour-budget input[type='range'] {
  grid-column: 1/-1;
  padding: 0 !important;
  height: 24px;
  accent-color: #f2cf50;
  cursor: pointer;
  border: 0 !important;
  background: transparent !important;
}
.tour-budget small {
  color: #b9cbe4;
  font-size: 14px;
  line-height: 1.5;
}
.tour-request-grid:has(.tour-budget) {
  grid-template-columns: minmax(140px, 0.7fr) minmax(0, 1.3fr);
  align-items: start;
}
@media (max-width: 420px) {
  .tour-request-grid:has(.tour-budget) {
    grid-template-columns: 1fr;
  }
}

.tour-budget output {
  grid-column: 1/-1;
}

.tour-date-window {
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
}
.tour-date-window legend {
  padding: 0;
  margin-bottom: 9px;
}
.tour-date-window > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.tour-date-window label {
  font-size: 14px;
}
.tour-request-grid:has(.tour-date-window) {
  grid-template-columns: minmax(150px, 0.75fr) minmax(0, 1.25fr);
}
@media (max-width: 540px) {
  .tour-request-grid:has(.tour-date-window) {
    grid-template-columns: 1fr;
  }
}

.tour-request-grid:has(.tour-date-window) {
  grid-template-columns: 1fr;
}
.tour-date-window > div.tour-calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tour-calendar-head button {
  background: #202227;
  color: #fff;
  border: 1px solid #49607e;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  font-size: 24px;
}
.tour-calendar-head button:disabled {
  opacity: 0.35;
}
.tour-date-window > div.tour-calendar-week,
.tour-date-window > div.tour-calendar-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
  text-align: center;
}
.tour-calendar-week {
  margin: 12px 0 7px;
  font-size: 14px;
  color: #b9cbe4;
}
.tour-calendar-days button {
  height: 38px;
  min-width: 0;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: #fff;
  color: #111827;
  font: inherit;
  cursor: pointer;
}
.tour-calendar-days button[aria-pressed='true'] {
  background: #f2cf50;
  color: #15191f;
  border-color: #f2cf50;
  font-weight: 700;
}
.tour-calendar-days button:disabled {
  background: #202227;
  color: #6f8099;
  border-color: transparent;
  cursor: default;
}
.tour-calendar-days button:focus-visible {
  outline: 2px solid #7dd3fc;
  outline-offset: 2px;
}
.tour-calendar-selected {
  font-size: 14px;
  line-height: 1.5;
  color: #ffe28b;
  overflow-wrap: anywhere;
}
.tour-date-window > small {
  font-size: 14px;
  color: #b9cbe4;
}
