/*
  ============================================================
  PATHREST / INTOURS
  Booking popup: personal_data — CLEAN V11
  ------------------------------------------------------------
  Что делает:
  - превращает техническое поле select[name="personal_data"] в раскладную
    вкладку "Личные данные" по логике basic_information;
  - V5: закрытое состояние всегда показывает summary-карточку,
    как у остальных кастомных вкладок;
  - V5: MutationObserver больше не схлопывает открытую панель сразу после клика;
  - V6: поле "Пол" стало кастомным красивым выпадающим списком;
  - V6: телефонные коды и маски загружаются из базы через pathrest_get_profile_options.php;
  - V7: иконки календаря и стили полей приведены к basic_information;
  - V7: мобильные шрифты и отступы сделаны компактнее;
  - V9: финальная отправка формы блокируется, если личные данные не заполнены;
  - скрывает стандартное Tilda-сообщение errorbox внутри booking-формы;
  - использует локальные сообщения обязательных полей в стиле формы добавления тура;
  - создаёт настоящие поля формы:
    nameadult1, surnameadult1, email, phone, sexadult1,
    birthdateadult1, passportadult1, passdateadult1;
  - использует кастомный календарь Flatpickr как в выборе даты тура
    для даты рождения и срока паспорта;
  - записывает общий текст в select/hidden personal_data;
  - создаёт скрытое поле personal_data_for_telegram для отправки полного текста в Telegram;
  - валидирует поля перед "Далее" и перед отправкой формы;
  - сбрасывается вместе с booking-формой после успешной отправки.
  ============================================================
*/

/*
  Скрываем технический select Tilda, но НЕ отключаем его.
  Он остаётся enabled, получает значение и отправляется вместе с формой.
*/
#allrecords .t-input-group[data-field-name="personal_data"] .t-select__wrapper.pathrest-native-personal-data-select-hidden,
#allrecords .t-input-group[data-field-name="personal_data"] select[name="personal_data"].pathrest-native-personal-data-select-hidden {
  position: absolute !important;
  left: -99999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  min-width: 1px !important;
  min-height: 1px !important;
  max-width: 1px !important;
  max-height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

#allrecords .t-input-group[data-field-name="personal_data"].pathrest-booking-personal-anchor-ready .t-input-block {
  overflow: visible !important;
  border-radius: 0 !important;
}

#allrecords .t-input-group[data-field-name="personal_data"].pathrest-booking-personal-anchor-ready .pathrest-booking-personal-field {
  margin: 0 !important;
}

#allrecords form.pathrest-booking-personal-form-ready .t-form__errorbox-middle,
#allrecords form.pathrest-booking-personal-form-ready .t-form__errorbox-wrapper,
#allrecords .t-form.pathrest-booking-personal-form-ready .t-form__errorbox-middle,
#allrecords .t-form.pathrest-booking-personal-form-ready .t-form__errorbox-wrapper {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

#allrecords .pathrest-booking-personal-field {
  width: 100%;
  box-sizing: border-box;
  font-family: "Arian AMU Serif", "ArianAMUSerif", "Times New Roman", serif;
  color: #006c83;
}

#allrecords .pathrest-booking-personal-field,
#allrecords .pathrest-booking-personal-field * {
  box-sizing: border-box;
}

#allrecords .pathrest-booking-personal-field__button {
  width: 100%;
  min-height: 58px;
  padding: 10px 54px 10px 22px;
  border: 1px solid #ffffff;
  border-radius: 30px;
  background: #ffffff;
  color: #006c83;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-family: "Arian AMU Serif", "ArianAMUSerif", "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
  position: relative;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

#allrecords .pathrest-booking-personal-field__button:hover,
#allrecords .pathrest-booking-personal-field.is-open .pathrest-booking-personal-field__button {
  border-color: rgba(255, 139, 33, 0.48);
  box-shadow: 0 0 0 4px rgba(255, 139, 33, 0.10);
}

#allrecords .pathrest-booking-personal-field__button::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 24px;
  width: 9px;
  height: 9px;
  border-right: 1.8px solid #006c83;
  border-bottom: 1.8px solid #006c83;
  transform: translateY(-65%) rotate(45deg);
  transition: transform 0.2s ease;
}

#allrecords .pathrest-booking-personal-field.is-open .pathrest-booking-personal-field__button::after {
  transform: translateY(-35%) rotate(-135deg);
}

#allrecords .pathrest-booking-personal-field.is-open .pathrest-booking-personal-field__button,
#allrecords .pathrest-booking-personal-field.is-saved .pathrest-booking-personal-field__button {
  display: none !important;
}

#allrecords .pathrest-booking-personal-field__button-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

#allrecords .pathrest-booking-personal-field__button-title {
  color: rgba(0, 108, 131, 0.62);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 400;
}

#allrecords .pathrest-booking-personal-field__value {
  color: #006c83;
  font-size: 16px;
  line-height: 1.25;
}

#allrecords .pathrest-booking-personal-field__placeholder {
  color: rgba(0, 108, 131, 0.62);
}

#allrecords .pathrest-booking-personal-field__panel,
#allrecords .pathrest-booking-personal-field__summary {
  display: none;
  width: 100%;
  margin: 0;
  padding: 16px;
  border: 1px solid rgba(42, 101, 131, 0.24);
  border-radius: 24px;
  background: #f5fdff;
  color: #006c83;
  box-shadow: none;
}

#allrecords .pathrest-booking-personal-field.is-open .pathrest-booking-personal-field__panel {
  display: block !important;
}

#allrecords .pathrest-booking-personal-field.is-saved .pathrest-booking-personal-field__summary {
  display: block !important;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

#allrecords .pathrest-booking-personal-field.is-saved .pathrest-booking-personal-field__summary:hover {
  border-color: rgba(255, 139, 33, 0.34);
  box-shadow: 0 6px 18px rgba(255, 139, 33, 0.08);
}

#allrecords .pathrest-booking-personal-field__panel-head,
#allrecords .pathrest-booking-personal-field__summary-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 12px;
  min-height: 34px;
  margin: 0 0 12px;
}

#allrecords .pathrest-booking-personal-field__panel-head {
  cursor: pointer;
  border-radius: 18px;
  transition:
    background 0.18s ease,
    box-shadow 0.18s ease;
}

#allrecords .pathrest-booking-personal-field__panel-head:hover {
  background: rgba(255, 255, 255, 0.42);
}

#allrecords .pathrest-booking-personal-field__title,
#allrecords .pathrest-booking-personal-field__summary-title {
  min-width: 0;
  color: #2a6583;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 700;
}

#allrecords .pathrest-booking-personal-field__title {
  position: relative;
  padding-right: 34px;
}

#allrecords .pathrest-booking-personal-field__title::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255, 139, 33, 0.28);
  border-radius: 50%;
  background: rgba(255, 139, 33, 0.11);
  box-shadow: 0 5px 12px rgba(255, 139, 33, 0.08);
  transform: translateY(-50%);
}

#allrecords .pathrest-booking-personal-field__title::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 8px;
  z-index: 2;
  width: 7px;
  height: 7px;
  border-right: 1.7px solid #ff8b21;
  border-bottom: 1.7px solid #ff8b21;
  transform: translateY(-35%) rotate(-135deg);
  transition:
    border-color 0.18s ease,
    transform 0.18s ease;
}

#allrecords .pathrest-booking-personal-field__panel-head:hover .pathrest-booking-personal-field__title::before {
  border-color: #006c83;
  transform: translateY(-45%) rotate(-135deg);
}

#allrecords .pathrest-booking-personal-field__edit {
  min-height: auto;
  max-width: none;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: rgba(42, 101, 131, 0.66);
  font-family: "Arian AMU Serif", "ArianAMUSerif", "Times New Roman", serif;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  text-align: right;
  white-space: nowrap;
}

#allrecords .pathrest-booking-personal-field__edit:hover {
  color: #ff8b21;
  text-decoration: underline;
}

#allrecords .pathrest-booking-personal-field__summary-body {
  width: 100%;
  min-height: 50px;
  padding: 14px 16px;
  border: 1px solid rgba(42, 101, 131, 0.18);
  border-radius: 22px;
  background: #ffffff;
  color: rgba(0, 108, 131, 0.84);
  display: block;
  font-size: 14px;
  line-height: 1.45;
}

#allrecords .pathrest-booking-personal-field__summary-empty {
  color: rgba(0, 108, 131, 0.68);
  font-size: 14px;
  line-height: 1.45;
}

#allrecords .pathrest-booking-personal-field__summary-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

#allrecords .pathrest-booking-personal-field__summary-item {
  position: relative;
  padding-left: 18px;
  color: #006c83;
  font-size: 14px;
  line-height: 1.45;
}

#allrecords .pathrest-booking-personal-field__summary-item::before {
  content: "✓";
  position: absolute;
  top: 0;
  left: 0;
  color: #ff8b21;
  font-weight: 700;
}

#allrecords .pathrest-booking-personal-field__summary-item strong {
  color: #006c83;
  font-weight: 700;
}

#allrecords .pathrest-booking-personal-field__summary-item span {
  color: rgba(0, 108, 131, 0.76);
}

#allrecords .pathrest-booking-personal-field__hint {
  margin: 0 0 14px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 139, 33, 0.22);
  border-radius: 18px;
  background: rgba(255, 248, 241, 0.72);
  color: rgba(42, 101, 131, 0.82);
  font-size: 14px;
  line-height: 1.45;
}

#allrecords .pathrest-booking-personal-field__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

#allrecords .pathrest-booking-personal-field__item {
  min-width: 0;
  position: relative;
}

#allrecords .pathrest-booking-personal-field__item.is-wide {
  grid-column: 1 / -1;
}

#allrecords .pathrest-booking-personal-field__label {
  display: block;
  margin: 0 0 6px 10px;
  color: rgba(42, 101, 131, 0.78);
  font-family: "Arian AMU Serif", "ArianAMUSerif", "Times New Roman", serif;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 700;
}

#allrecords .pathrest-booking-personal-field .pathrest-booking-personal-field__input,
#allrecords .pathrest-booking-personal-field .pathrest-booking-personal-field__select {
  width: 100% !important;
  height: 54px !important;
  min-height: 54px !important;
  margin: 0 !important;
  padding: 0 18px !important;
  border: 1px solid #ffffff !important;
  border-radius: 30px !important;
  background: #ffffff !important;
  color: #006c83 !important;
  font-family: "Arian AMU Serif", "ArianAMUSerif", "Times New Roman", serif !important;
  font-size: 16px !important;
  line-height: 54px !important;
  font-weight: 400 !important;
  outline: none !important;
  box-shadow: none !important;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

#allrecords .pathrest-booking-personal-field .pathrest-booking-personal-field__input::placeholder {
  color: rgba(0, 108, 131, 0.52) !important;
  opacity: 1 !important;
}

#allrecords .pathrest-booking-personal-field .pathrest-booking-personal-field__select {
  appearance: none !important;
  -webkit-appearance: none !important;
  cursor: pointer !important;
  padding-right: 46px !important;
}

#allrecords .pathrest-booking-personal-field__select-wrap {
  position: relative;
}

#allrecords .pathrest-booking-personal-field__select-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 22px;
  width: 9px;
  height: 9px;
  border-right: 1.8px solid #006c83;
  border-bottom: 1.8px solid #006c83;
  pointer-events: none;
  transform: translateY(-65%) rotate(45deg);
}

#allrecords .pathrest-booking-personal-field__phone {
  display: flex;
  align-items: center;
  width: 100%;
  height: 54px;
  border: 1px solid #ffffff;
  border-radius: 30px;
  background: #ffffff;
  overflow: hidden;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

#allrecords .pathrest-booking-personal-field__phone-code {
  flex: 0 0 auto;
  min-width: 82px;
  height: 100%;
  padding: 0 0 0 18px;
  display: inline-flex;
  align-items: center;
  color: #006c83;
  font-family: "Arian AMU Serif", "ArianAMUSerif", "Times New Roman", serif;
  font-size: 16px;
  line-height: 1;
  font-weight: 700;
  border-right: 1px solid rgba(0, 108, 131, 0.12);
}

#allrecords .pathrest-booking-personal-field .pathrest-booking-personal-field__phone-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 52px !important;
  min-height: 52px !important;
  padding: 0 18px 0 14px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #006c83 !important;
  font-family: "Arian AMU Serif", "ArianAMUSerif", "Times New Roman", serif !important;
  font-size: 16px !important;
  line-height: 52px !important;
  outline: none !important;
  box-shadow: none !important;
}

#allrecords .pathrest-booking-personal-field .pathrest-booking-personal-field__input:focus,
#allrecords .pathrest-booking-personal-field .pathrest-booking-personal-field__select:focus,
#allrecords .pathrest-booking-personal-field__phone:focus-within {
  border-color: rgba(255, 139, 33, 0.62) !important;
  box-shadow: 0 0 0 4px rgba(255, 139, 33, 0.12) !important;
}

/* === LOCAL REQUIRED STATE / стиль формы добавления тура === */

#allrecords .pathrest-booking-personal-field.intours-addon-required-error .pathrest-booking-personal-field__panel {
  border-color: rgba(176, 0, 32, 0.72) !important;
  box-shadow: 0 0 0 4px rgba(176, 0, 32, 0.08) !important;
}

#allrecords .pathrest-booking-personal-field__item.intours-addon-required-error .pathrest-booking-personal-field__input,
#allrecords .pathrest-booking-personal-field__item.intours-addon-required-error .pathrest-booking-personal-field__select,
#allrecords .pathrest-booking-personal-field__item.intours-addon-required-error .pathrest-booking-personal-field__phone,
#allrecords .pathrest-booking-personal-field__item.is-error .pathrest-booking-personal-field__input,
#allrecords .pathrest-booking-personal-field__item.is-error .pathrest-booking-personal-field__select,
#allrecords .pathrest-booking-personal-field__item.is-error .pathrest-booking-personal-field__phone {
  border-color: rgba(176, 0, 32, 0.72) !important;
  box-shadow: 0 0 0 4px rgba(176, 0, 32, 0.08) !important;
}

#allrecords .pathrest-booking-personal-field__item.intours-addon-required-error .pathrest-booking-personal-field__label,
#allrecords .pathrest-booking-personal-field__item.is-error .pathrest-booking-personal-field__label {
  color: #b00020 !important;
}

#allrecords .pathrest-booking-personal-field__item .intours-addon-field-error,
#allrecords .pathrest-booking-personal-field__error {
  display: none;
  margin: 6px 0 0 10px;
  color: #b00020;
  font-family: "Arian AMU Serif", "Times New Roman", serif;
  font-size: 12px;
  line-height: 1.25;
}

#allrecords .pathrest-booking-personal-field__item.intours-addon-required-error .intours-addon-field-error,
#allrecords .pathrest-booking-personal-field__item.is-error .pathrest-booking-personal-field__error {
  display: block;
}

#allrecords .pathrest-booking-personal-field__footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(42, 101, 131, 0.10);
}

#allrecords .pathrest-booking-personal-field__save {
  min-height: 42px;
  padding: 11px 22px;
  border: 1px solid #ff8b21;
  border-radius: 30px;
  background: #ff8b21;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Arian AMU Serif", "ArianAMUSerif", "Times New Roman", serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.15;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

#allrecords .pathrest-booking-personal-field__save:hover {
  background: #ffffff;
  color: #ff8b21;
  box-shadow: 0 6px 16px rgba(255, 139, 33, 0.16);
  transform: translateY(-1px);
}

#allrecords .pathrest-booking-personal-field__save:active {
  transform: translateY(0) scale(0.98);
}

#allrecords .pathrest-booking-personal-field.is-shake .pathrest-booking-personal-field__panel {
  animation: pathrestPersonalDataShake 0.28s ease;
}

@keyframes pathrestPersonalDataShake {
  0% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-4px);
  }

  50% {
    transform: translateX(4px);
  }

  75% {
    transform: translateX(-3px);
  }

  100% {
    transform: translateX(0);
  }
}

@media (min-width: 900px) {
  #allrecords .pathrest-booking-personal-field__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (max-width: 767px) {
  #allrecords .t-input-group[data-field-name="personal_data"] .pathrest-booking-personal-field {
    position: relative !important;
    left: 50% !important;
    width: min(calc(100% + 20px), calc(100vw - 32px)) !important;
    max-width: calc(100vw - 32px) !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    transform: translateX(-50%) !important;
  }

  #allrecords .pathrest-booking-personal-field__button {
    min-height: 54px !important;
    padding: 14px 48px 14px 18px !important;
    font-size: 15px !important;
  }

  #allrecords .pathrest-booking-personal-field__button-title {
    font-size: 11.5px !important;
  }

  #allrecords .pathrest-booking-personal-field__value {
    font-size: 15px !important;
  }

  #allrecords .pathrest-booking-personal-field__panel,
  #allrecords .pathrest-booking-personal-field__summary {
    padding: 15px 14px 16px !important;
    border-radius: 24px !important;
  }

  #allrecords .pathrest-booking-personal-field__panel-head,
  #allrecords .pathrest-booking-personal-field__summary-head {
    column-gap: 8px !important;
    margin-bottom: 12px !important;
  }

  #allrecords .pathrest-booking-personal-field__title,
  #allrecords .pathrest-booking-personal-field__summary-title {
    font-size: 14.5px !important;
    line-height: 1.22 !important;
  }

  #allrecords .pathrest-booking-personal-field__edit {
    font-size: 11.5px !important;
    line-height: 1.2 !important;
  }

  #allrecords .pathrest-booking-personal-field__summary-body {
    min-height: 48px !important;
    padding: 12px 14px !important;
    border-radius: 18px !important;
    font-size: 12.8px !important;
    line-height: 1.36 !important;
  }

  #allrecords .pathrest-booking-personal-field__summary-empty,
  #allrecords .pathrest-booking-personal-field__summary-item,
  #allrecords .pathrest-booking-personal-field__summary-item strong,
  #allrecords .pathrest-booking-personal-field__summary-item span {
    font-size: 12.8px !important;
    line-height: 1.36 !important;
  }

  #allrecords .pathrest-booking-personal-field__hint {
    margin-bottom: 12px !important;
    padding: 11px 12px !important;
    border-radius: 18px !important;
    font-size: 12.4px !important;
    line-height: 1.34 !important;
  }

  #allrecords .pathrest-booking-personal-field__grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  #allrecords .pathrest-booking-personal-field__item.is-wide {
    grid-column: auto !important;
  }

  #allrecords .pathrest-booking-personal-field__label {
    margin-left: 10px !important;
    font-size: 11.8px !important;
  }

  #allrecords .pathrest-booking-personal-field .pathrest-booking-personal-field__input,
  #allrecords .pathrest-booking-personal-field .pathrest-booking-personal-field__select,
  #allrecords .pathrest-booking-personal-field__phone {
    height: 52px !important;
    min-height: 52px !important;
    line-height: 52px !important;
  }

  #allrecords .pathrest-booking-personal-field .pathrest-booking-personal-field__phone-input {
    height: 50px !important;
    min-height: 50px !important;
    line-height: 50px !important;
  }

  #allrecords .pathrest-booking-personal-field__save {
    width: 100% !important;
    min-height: 39px !important;
    padding: 10px 18px !important;
    font-size: 13px !important;
  }

  #allrecords .pathrest-booking-personal-field__item .intours-addon-field-error,
  #allrecords .pathrest-booking-personal-field__error {
    font-size: 11.5px !important;
  }
}

@media (max-width: 420px) {
  #allrecords .t-input-group[data-field-name="personal_data"] .pathrest-booking-personal-field {
    width: min(calc(100% + 16px), calc(100vw - 24px)) !important;
    max-width: calc(100vw - 24px) !important;
  }

  #allrecords .pathrest-booking-personal-field__title,
  #allrecords .pathrest-booking-personal-field__summary-title {
    font-size: 14px !important;
  }
}


/* === V6 CUSTOM GENDER AND PHONE CODE DROPDOWNS === */

#allrecords .pathrest-booking-personal-field .pathrest-booking-personal-field__native-select-hidden {
  position: absolute !important;
  left: -99999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  min-width: 1px !important;
  min-height: 1px !important;
  max-width: 1px !important;
  max-height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

#allrecords .pathrest-booking-personal-field__choice,
#allrecords .pathrest-booking-personal-field__phone-code-choice {
  position: relative;
  min-width: 0;
}

#allrecords .pathrest-booking-personal-field__choice-button,
#allrecords .pathrest-booking-personal-field__phone-code-button {
  width: 100%;
  min-height: 54px;
  margin: 0;
  padding: 0 46px 0 18px;
  border: 1px solid #ffffff;
  border-radius: 30px;
  background: #ffffff;
  color: #006c83;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: "Arian AMU Serif", "ArianAMUSerif", "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
  outline: none;
  box-shadow: none;
  position: relative;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
}

#allrecords .pathrest-booking-personal-field__choice-button:hover,
#allrecords .pathrest-booking-personal-field__choice-button:focus,
#allrecords .pathrest-booking-personal-field__choice.is-open .pathrest-booking-personal-field__choice-button,
#allrecords .pathrest-booking-personal-field__phone-code-button:hover,
#allrecords .pathrest-booking-personal-field__phone-code-button:focus,
#allrecords .pathrest-booking-personal-field__phone.is-phone-code-open .pathrest-booking-personal-field__phone-code-button {
  border-color: rgba(255, 139, 33, 0.62) !important;
  box-shadow: 0 0 0 4px rgba(255, 139, 33, 0.12) !important;
}

#allrecords .pathrest-booking-personal-field__choice-button::after,
#allrecords .pathrest-booking-personal-field__phone-code-button::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 21px;
  width: 9px;
  height: 9px;
  border-right: 1.8px solid #006c83;
  border-bottom: 1.8px solid #006c83;
  transform: translateY(-65%) rotate(45deg);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease;
}

#allrecords .pathrest-booking-personal-field__choice.is-open .pathrest-booking-personal-field__choice-button::after,
#allrecords .pathrest-booking-personal-field__phone.is-phone-code-open .pathrest-booking-personal-field__phone-code-button::after {
  border-color: #ff8b21;
  transform: translateY(-35%) rotate(-135deg);
}

#allrecords .pathrest-booking-personal-field__choice-text,
#allrecords .pathrest-booking-personal-field__phone-code-current {
  min-width: 0;
  overflow: hidden;
  color: #006c83;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#allrecords .pathrest-booking-personal-field__choice-placeholder {
  color: rgba(0, 108, 131, 0.52);
}

#allrecords .pathrest-booking-personal-field__choice-panel,
#allrecords .pathrest-booking-personal-field__phone-code-panel {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 2147483647;
  max-height: 260px;
  padding: 8px;
  border: 1px solid rgba(42, 101, 131, 0.20);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(42, 101, 131, 0.18);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

#allrecords .pathrest-booking-personal-field__choice.is-open .pathrest-booking-personal-field__choice-panel,
#allrecords .pathrest-booking-personal-field__phone.is-phone-code-open .pathrest-booking-personal-field__phone-code-panel {
  display: block;
}

#allrecords .pathrest-booking-personal-field__choice-option,
#allrecords .pathrest-booking-personal-field__phone-code-option {
  width: 100%;
  min-height: 42px;
  margin: 0;
  padding: 10px 12px;
  border: none;
  border-radius: 15px;
  background: transparent;
  color: #006c83;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 12px;
  font-family: "Arian AMU Serif", "ArianAMUSerif", "Times New Roman", serif;
  font-size: 14px;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
  transition:
    background 0.16s ease,
    color 0.16s ease,
    box-shadow 0.16s ease;
}

#allrecords .pathrest-booking-personal-field__choice-option:hover,
#allrecords .pathrest-booking-personal-field__choice-option.is-selected,
#allrecords .pathrest-booking-personal-field__phone-code-option:hover,
#allrecords .pathrest-booking-personal-field__phone-code-option.is-selected {
  background: rgba(255, 248, 241, 0.96);
  color: #ff8b21;
}

#allrecords .pathrest-booking-personal-field__choice-option.is-selected,
#allrecords .pathrest-booking-personal-field__phone-code-option.is-selected {
  box-shadow: inset 0 0 0 1px rgba(255, 139, 33, 0.24);
}

#allrecords .pathrest-booking-personal-field__choice-option-title,
#allrecords .pathrest-booking-personal-field__phone-code-title {
  min-width: 0;
  overflow: hidden;
  color: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

#allrecords .pathrest-booking-personal-field__choice-option-mark {
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255, 139, 33, 0.28);
  border-radius: 50%;
  background: rgba(255, 139, 33, 0.10);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ff8b21;
  font-family: Arial, sans-serif;
  font-size: 14px;
  line-height: 1;
  opacity: 0;
}

#allrecords .pathrest-booking-personal-field__choice-option.is-selected .pathrest-booking-personal-field__choice-option-mark {
  opacity: 1;
}

#allrecords .pathrest-booking-personal-field__phone {
  position: relative !important;
  display: grid !important;
  grid-template-columns: minmax(112px, auto) minmax(0, 1fr) !important;
  overflow: visible !important;
}

#allrecords .pathrest-booking-personal-field__phone-code-choice {
  height: 100%;
  min-width: 112px;
}

#allrecords .pathrest-booking-personal-field__phone-code-button {
  height: 100%;
  min-height: 52px;
  padding: 0 36px 0 18px;
  border: none !important;
  border-right: 1px solid rgba(0, 108, 131, 0.12) !important;
  border-radius: 30px 0 0 30px !important;
  box-shadow: none !important;
  font-weight: 700;
}

#allrecords .pathrest-booking-personal-field__phone-code-button:hover,
#allrecords .pathrest-booking-personal-field__phone-code-button:focus,
#allrecords .pathrest-booking-personal-field__phone.is-phone-code-open .pathrest-booking-personal-field__phone-code-button {
  box-shadow: none !important;
  background: rgba(255, 248, 241, 0.72);
}

#allrecords .pathrest-booking-personal-field__phone-code-button::after {
  right: 16px;
  width: 7px;
  height: 7px;
}

#allrecords .pathrest-booking-personal-field__phone-code-panel {
  right: auto;
  width: min(360px, calc(100vw - 48px));
  max-height: 285px;
}

#allrecords .pathrest-booking-personal-field__phone-code-option {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  row-gap: 3px;
}

#allrecords .pathrest-booking-personal-field__phone-code-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

#allrecords .pathrest-booking-personal-field__phone-code-sub {
  color: rgba(0, 108, 131, 0.62);
  font-size: 12px;
  line-height: 1.22;
  font-weight: 400;
}

#allrecords .pathrest-booking-personal-field__phone-code-value {
  color: #ff8b21;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 700;
  white-space: nowrap;
}

#allrecords .pathrest-booking-personal-field__phone-code-loading {
  padding: 10px 12px;
  color: rgba(0, 108, 131, 0.62);
  font-size: 13px;
  line-height: 1.35;
}

#allrecords .pathrest-booking-personal-field__item.intours-addon-required-error .pathrest-booking-personal-field__choice-button,
#allrecords .pathrest-booking-personal-field__item.is-error .pathrest-booking-personal-field__choice-button {
  border-color: rgba(176, 0, 32, 0.72) !important;
  box-shadow: 0 0 0 4px rgba(176, 0, 32, 0.08) !important;
}

@media (max-width: 767px) {
  #allrecords .pathrest-booking-personal-field__choice-button,
  #allrecords .pathrest-booking-personal-field__phone-code-button {
    min-height: 52px !important;
    font-size: 14px !important;
  }

  #allrecords .pathrest-booking-personal-field__phone {
    grid-template-columns: minmax(98px, auto) minmax(0, 1fr) !important;
  }

  #allrecords .pathrest-booking-personal-field__phone-code-choice {
    min-width: 98px !important;
  }

  #allrecords .pathrest-booking-personal-field__phone-code-button {
    padding-left: 15px !important;
    padding-right: 31px !important;
  }

  #allrecords .pathrest-booking-personal-field__phone-code-button::after {
    right: 13px !important;
  }

  #allrecords .pathrest-booking-personal-field__choice-panel,
  #allrecords .pathrest-booking-personal-field__phone-code-panel {
    max-height: 230px !important;
    border-radius: 18px !important;
  }
}

/* === PATHREST BOOKING PERSONAL DATA CUSTOM CALENDAR V2 === */

#allrecords .pathrest-booking-personal-field__date-wrap {
  position: relative;
  width: 100%;
}

#allrecords .pathrest-booking-personal-field__date-wrap .pathrest-booking-personal-field__input {
  padding-right: 52px !important;
  cursor: pointer !important;
}

#allrecords .pathrest-booking-personal-field__date-icon {
  position: absolute !important;
  top: 50% !important;
  right: 18px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 24px !important;
  height: 24px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #006c83 !important;
  cursor: pointer !important;
  transform: translateY(-50%) !important;
  outline: none !important;
  box-shadow: none !important;
}

#allrecords .pathrest-booking-personal-field__date-icon svg {
  display: block !important;
  width: 22px !important;
  height: 22px !important;
  fill: currentColor !important;
  opacity: 0.72 !important;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

#allrecords .pathrest-booking-personal-field__date-icon:hover svg,
#allrecords .pathrest-booking-personal-field__date-icon:focus svg {
  opacity: 1 !important;
  transform: scale(1.04) !important;
}

/*
  Используем тот же визуальный класс календаря, что и у поля "Дата тура":
  .pathrest-booking-basic-flatpickr.
  Ниже продублированы ключевые стили, чтобы календарь личных данных
  выглядел одинаково даже на странице без отдельного блока даты тура.
*/

.pathrest-booking-personal-flatpickr,
.pathrest-booking-basic-flatpickr.pathrest-booking-personal-flatpickr {
  font-family: "Arian AMU Serif", "ArianAMUSerif", "Times New Roman", serif;
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
  font-size: 15px;
  color: #006B81;
  width: auto !important;
  z-index: 2147483647 !important;
  border: none;
}

.pathrest-booking-personal-flatpickr.open,
.pathrest-booking-basic-flatpickr.pathrest-booking-personal-flatpickr.open {
  width: auto !important;
}

.pathrest-booking-personal-flatpickr::before,
.pathrest-booking-personal-flatpickr::after,
.pathrest-booking-basic-flatpickr.pathrest-booking-personal-flatpickr::before,
.pathrest-booking-basic-flatpickr.pathrest-booking-personal-flatpickr::after {
  display: none !important;
  border: none !important;
}

.pathrest-booking-personal-flatpickr .flatpickr-days .dayContainer,
.pathrest-booking-basic-flatpickr.pathrest-booking-personal-flatpickr .flatpickr-days .dayContainer {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  max-width: 100% !important;
  box-sizing: border-box;
}

.pathrest-booking-personal-flatpickr .flatpickr-months,
.pathrest-booking-basic-flatpickr.pathrest-booking-personal-flatpickr .flatpickr-months {
  margin-bottom: 10px;
}

.pathrest-booking-personal-flatpickr .flatpickr-month,
.pathrest-booking-basic-flatpickr.pathrest-booking-personal-flatpickr .flatpickr-month {
  font-size: 18px;
  font-weight: 700;
  color: #006B81;
}

.pathrest-booking-personal-flatpickr .flatpickr-current-month,
.pathrest-booking-basic-flatpickr.pathrest-booking-personal-flatpickr .flatpickr-current-month {
  color: #006B81;
  font-size: 18px;
  font-weight: 700;
}

.pathrest-booking-personal-flatpickr .flatpickr-current-month input.cur-year,
.pathrest-booking-basic-flatpickr.pathrest-booking-personal-flatpickr .flatpickr-current-month input.cur-year {
  color: #006B81 !important;
  font-family: "Arian AMU Serif", "ArianAMUSerif", "Times New Roman", serif;
  font-weight: 700;
}

.pathrest-booking-personal-flatpickr .flatpickr-current-month .flatpickr-monthDropdown-months,
.pathrest-booking-personal-flatpickr .flatpickr-current-month .flatpickr-monthDropdown-months option,
.pathrest-booking-personal-flatpickr .flatpickr-monthDropdown-months,
.pathrest-booking-personal-flatpickr .flatpickr-monthDropdown-months option,
.pathrest-booking-basic-flatpickr.pathrest-booking-personal-flatpickr .flatpickr-current-month .flatpickr-monthDropdown-months,
.pathrest-booking-basic-flatpickr.pathrest-booking-personal-flatpickr .flatpickr-current-month .flatpickr-monthDropdown-months option,
.pathrest-booking-basic-flatpickr.pathrest-booking-personal-flatpickr .flatpickr-monthDropdown-months,
.pathrest-booking-basic-flatpickr.pathrest-booking-personal-flatpickr .flatpickr-monthDropdown-months option {
  color: #006B81 !important;
  font-family: "Arian AMU Serif", "ArianAMUSerif", "Times New Roman", serif;
  font-weight: 700;
}

.pathrest-booking-personal-flatpickr .flatpickr-weekdays,
.pathrest-booking-basic-flatpickr.pathrest-booking-personal-flatpickr .flatpickr-weekdays {
  font-family: "Arian AMU Serif", "ArianAMUSerif", "Times New Roman", serif;
  color: #006B81;
}

.pathrest-booking-personal-flatpickr .flatpickr-weekday,
.pathrest-booking-basic-flatpickr.pathrest-booking-personal-flatpickr .flatpickr-weekday {
  font-family: "Arian AMU Serif", "ArianAMUSerif", "Times New Roman", serif;
  font-size: 13px;
  color: #006B81;
  font-weight: 700;
}

.pathrest-booking-personal-flatpickr .flatpickr-day,
.pathrest-booking-basic-flatpickr.pathrest-booking-personal-flatpickr .flatpickr-day {
  font-size: 15px;
  width: 32px;
  height: 32px;
  margin: 2px;
  line-height: 32px;
  border-radius: 6px;
  color: #006B81;
  transition: background .2s ease;
}

.pathrest-booking-personal-flatpickr .flatpickr-day.selected,
.pathrest-booking-personal-flatpickr .flatpickr-day.startRange,
.pathrest-booking-personal-flatpickr .flatpickr-day.endRange,
.pathrest-booking-basic-flatpickr.pathrest-booking-personal-flatpickr .flatpickr-day.selected,
.pathrest-booking-basic-flatpickr.pathrest-booking-personal-flatpickr .flatpickr-day.startRange,
.pathrest-booking-basic-flatpickr.pathrest-booking-personal-flatpickr .flatpickr-day.endRange {
  background: #006B81 !important;
  color: #ffffff !important;
  border-color: #006B81 !important;
}

.pathrest-booking-personal-flatpickr .flatpickr-day.today,
.pathrest-booking-basic-flatpickr.pathrest-booking-personal-flatpickr .flatpickr-day.today {
  border: 1px solid #006B81;
}

.pathrest-booking-personal-flatpickr .flatpickr-day:not(.flatpickr-disabled):hover,
.pathrest-booking-basic-flatpickr.pathrest-booking-personal-flatpickr .flatpickr-day:not(.flatpickr-disabled):hover {
  background: rgba(0, 107, 129, .2);
  border-color: rgba(0, 107, 129, .2);
}

.pathrest-booking-personal-flatpickr .flatpickr-day.prevMonthDay,
.pathrest-booking-personal-flatpickr .flatpickr-day.nextMonthDay,
.pathrest-booking-basic-flatpickr.pathrest-booking-personal-flatpickr .flatpickr-day.prevMonthDay,
.pathrest-booking-basic-flatpickr.pathrest-booking-personal-flatpickr .flatpickr-day.nextMonthDay {
  visibility: hidden !important;
  pointer-events: none;
}

.pathrest-booking-personal-flatpickr .flatpickr-day.flatpickr-disabled,
.pathrest-booking-basic-flatpickr.pathrest-booking-personal-flatpickr .flatpickr-day.flatpickr-disabled {
  color: rgba(0, 108, 131, 0.34) !important;
  background: none !important;
  border-color: transparent !important;
  cursor: not-allowed !important;
  opacity: .55;
}

.pathrest-booking-personal-flatpickr .flatpickr-day.flatpickr-disabled:hover,
.pathrest-booking-personal-flatpickr .flatpickr-day.flatpickr-disabled:focus,
.pathrest-booking-basic-flatpickr.pathrest-booking-personal-flatpickr .flatpickr-day.flatpickr-disabled:hover,
.pathrest-booking-basic-flatpickr.pathrest-booking-personal-flatpickr .flatpickr-day.flatpickr-disabled:focus {
  color: rgba(0, 108, 131, 0.34) !important;
  background: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.pathrest-booking-personal-flatpickr .flatpickr-prev-month,
.pathrest-booking-personal-flatpickr .flatpickr-next-month,
.pathrest-booking-basic-flatpickr.pathrest-booking-personal-flatpickr .flatpickr-prev-month,
.pathrest-booking-basic-flatpickr.pathrest-booking-personal-flatpickr .flatpickr-next-month {
  fill: #006B81 !important;
  color: #006B81 !important;
  opacity: 1 !important;
}

.pathrest-booking-personal-flatpickr .flatpickr-prev-month:hover,
.pathrest-booking-personal-flatpickr .flatpickr-next-month:hover,
.pathrest-booking-personal-flatpickr .flatpickr-prev-month:focus,
.pathrest-booking-personal-flatpickr .flatpickr-next-month:focus,
.pathrest-booking-basic-flatpickr.pathrest-booking-personal-flatpickr .flatpickr-prev-month:hover,
.pathrest-booking-basic-flatpickr.pathrest-booking-personal-flatpickr .flatpickr-next-month:hover,
.pathrest-booking-basic-flatpickr.pathrest-booking-personal-flatpickr .flatpickr-prev-month:focus,
.pathrest-booking-basic-flatpickr.pathrest-booking-personal-flatpickr .flatpickr-next-month:focus {
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}

@media (max-width: 640px) {
  .pathrest-booking-personal-flatpickr,
  .pathrest-booking-basic-flatpickr.pathrest-booking-personal-flatpickr {
    position: absolute !important;
    right: 0 !important;
    left: unset !important;
    margin-right: 16px !important;
    width: auto !important;
    max-width: calc(100vw - 32px) !important;
    box-sizing: border-box;
    padding: 12px 14px;
    transform: none !important;
  }

  .pathrest-booking-personal-flatpickr .flatpickr-month,
  .pathrest-booking-basic-flatpickr.pathrest-booking-personal-flatpickr .flatpickr-month {
    font-size: 15px;
  }

  .pathrest-booking-personal-flatpickr .flatpickr-current-month input.cur-year,
  .pathrest-booking-basic-flatpickr.pathrest-booking-personal-flatpickr .flatpickr-current-month input.cur-year {
    font-size: 20px;
  }

  .pathrest-booking-personal-flatpickr .flatpickr-weekday,
  .pathrest-booking-basic-flatpickr.pathrest-booking-personal-flatpickr .flatpickr-weekday {
    font-size: 12px !important;
    padding: 2px 0;
  }

  .pathrest-booking-personal-flatpickr .flatpickr-day,
  .pathrest-booking-basic-flatpickr.pathrest-booking-personal-flatpickr .flatpickr-day {
    width: 30px;
    height: 30px;
    font-size: 12px !important;
    line-height: 30px;
    margin: 1.5px;
    border-radius: 5px;
  }
}

/*
  ============================================================
  V7 VISUAL PATCH
  ------------------------------------------------------------
  - Поля внутри вкладки приведены к стилю basic_information:
    белые карточные поля, радиус 18px, мягкая бирюзовая рамка,
    оранжевый focus-ring.
  - Иконка календаря сделана как в основной информации:
    круглая мягкая кнопка с stroke-svg.
  - На мобильной версии шрифты, высоты и отступы уменьшены,
    чтобы вкладка выглядела легче и аккуратнее.
  ============================================================
*/

#allrecords .pathrest-booking-personal-field__grid {
  gap: 14px !important;
}

#allrecords .pathrest-booking-personal-field__item {
  min-width: 0 !important;
}

#allrecords .pathrest-booking-personal-field__label {
  margin: 0 0 7px 3px !important;
  color: #006c83 !important;
  font-size: 13px !important;
  line-height: 1.24 !important;
  font-weight: 700 !important;
}

#allrecords .pathrest-booking-personal-field .pathrest-booking-personal-field__input,
#allrecords .pathrest-booking-personal-field .pathrest-booking-personal-field__select,
#allrecords .pathrest-booking-personal-field__choice-button {
  min-height: 50px !important;
  height: 50px !important;
  padding: 13px 16px !important;
  border: 1px solid rgba(0, 108, 131, 0.15) !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  color: #006c83 !important;
  font-size: 15px !important;
  line-height: 1.25 !important;
  font-weight: 400 !important;
  box-shadow: none !important;
}

#allrecords .pathrest-booking-personal-field__choice-button {
  padding-right: 44px !important;
}

#allrecords .pathrest-booking-personal-field .pathrest-booking-personal-field__input::placeholder,
#allrecords .pathrest-booking-personal-field__choice-placeholder,
#allrecords .pathrest-booking-personal-field__phone-input::placeholder {
  color: rgba(0, 108, 131, 0.58) !important;
  opacity: 1 !important;
}

#allrecords .pathrest-booking-personal-field .pathrest-booking-personal-field__input:hover,
#allrecords .pathrest-booking-personal-field .pathrest-booking-personal-field__select:hover,
#allrecords .pathrest-booking-personal-field__choice-button:hover,
#allrecords .pathrest-booking-personal-field__phone:hover {
  border-color: rgba(255, 139, 33, 0.38) !important;
}

#allrecords .pathrest-booking-personal-field .pathrest-booking-personal-field__input:focus,
#allrecords .pathrest-booking-personal-field .pathrest-booking-personal-field__select:focus,
#allrecords .pathrest-booking-personal-field__choice-button:focus,
#allrecords .pathrest-booking-personal-field__choice.is-open .pathrest-booking-personal-field__choice-button,
#allrecords .pathrest-booking-personal-field__phone:focus-within,
#allrecords .pathrest-booking-personal-field__phone.is-phone-code-open {
  border-color: rgba(255, 139, 33, 0.58) !important;
  box-shadow: 0 0 0 4px rgba(255, 139, 33, 0.10) !important;
}

#allrecords .pathrest-booking-personal-field__choice-button::after {
  right: 18px !important;
  width: 8px !important;
  height: 8px !important;
  border-right-color: #006c83 !important;
  border-bottom-color: #006c83 !important;
}

#allrecords .pathrest-booking-personal-field__choice.is-open .pathrest-booking-personal-field__choice-button::after {
  border-right-color: #ff8b21 !important;
  border-bottom-color: #ff8b21 !important;
}

#allrecords .pathrest-booking-personal-field__phone {
  min-height: 50px !important;
  height: 50px !important;
  border: 1px solid rgba(0, 108, 131, 0.15) !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  overflow: visible !important;
  box-shadow: none !important;
}

#allrecords .pathrest-booking-personal-field__phone-code-choice {
  min-width: 108px !important;
}

#allrecords .pathrest-booking-personal-field__phone-code-button {
  min-height: 48px !important;
  height: 48px !important;
  padding: 0 34px 0 15px !important;
  border: none !important;
  border-right: 1px solid rgba(0, 108, 131, 0.12) !important;
  border-radius: 18px 0 0 18px !important;
  background: transparent !important;
  color: #006c83 !important;
  font-size: 15px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}

#allrecords .pathrest-booking-personal-field__phone-code-button:hover,
#allrecords .pathrest-booking-personal-field__phone-code-button:focus,
#allrecords .pathrest-booking-personal-field__phone.is-phone-code-open .pathrest-booking-personal-field__phone-code-button {
  background: rgba(255, 248, 241, 0.72) !important;
  box-shadow: none !important;
}

#allrecords .pathrest-booking-personal-field__phone-code-button::after {
  right: 14px !important;
  width: 7px !important;
  height: 7px !important;
}

#allrecords .pathrest-booking-personal-field .pathrest-booking-personal-field__phone-input {
  min-height: 48px !important;
  height: 48px !important;
  padding: 0 15px 0 13px !important;
  border: none !important;
  border-radius: 0 18px 18px 0 !important;
  background: transparent !important;
  color: #006c83 !important;
  font-size: 15px !important;
  line-height: 48px !important;
  box-shadow: none !important;
}

#allrecords .pathrest-booking-personal-field__choice-panel,
#allrecords .pathrest-booking-personal-field__phone-code-panel {
  top: calc(100% + 7px) !important;
  padding: 8px !important;
  border: 1px solid rgba(42, 101, 131, 0.18) !important;
  border-radius: 24px !important;
  background: #ffffff !important;
  box-shadow: 0 14px 32px rgba(42, 101, 131, 0.16) !important;
}

#allrecords .pathrest-booking-personal-field__choice-option,
#allrecords .pathrest-booking-personal-field__phone-code-option {
  min-height: 40px !important;
  padding: 9px 11px !important;
  border-radius: 14px !important;
  font-size: 13.5px !important;
  line-height: 1.24 !important;
}

#allrecords .pathrest-booking-personal-field__date-wrap .pathrest-booking-personal-field__input {
  padding-right: 45px !important;
  cursor: pointer !important;
}

#allrecords .pathrest-booking-personal-field__date-icon {
  position: absolute !important;
  top: 50% !important;
  right: 11px !important;
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  min-height: 28px !important;
  padding: 0 !important;
  border: 1px solid rgba(255, 139, 33, 0.26) !important;
  border-radius: 50% !important;
  background: rgba(255, 139, 33, 0.11) !important;
  color: #ff8b21 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transform: translateY(-50%) !important;
  outline: none !important;
  box-shadow: 0 5px 12px rgba(255, 139, 33, 0.08) !important;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease !important;
}

#allrecords .pathrest-booking-personal-field__date-icon:hover,
#allrecords .pathrest-booking-personal-field__date-icon:focus {
  border-color: rgba(255, 139, 33, 0.44) !important;
  background: rgba(255, 139, 33, 0.16) !important;
  box-shadow:
    0 5px 12px rgba(255, 139, 33, 0.10),
    0 0 0 3px rgba(255, 139, 33, 0.10) !important;
}

#allrecords .pathrest-booking-personal-field__date-icon:active {
  transform: translateY(-50%) scale(0.96) !important;
}

#allrecords .pathrest-booking-personal-field__date-icon svg,
#allrecords .pathrest-booking-personal-field__date-svg {
  display: block !important;
  width: 15px !important;
  height: 15px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.8 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  opacity: 1 !important;
  transform: none !important;
}

#allrecords .pathrest-booking-personal-field__date-icon:hover svg,
#allrecords .pathrest-booking-personal-field__date-icon:focus svg {
  opacity: 1 !important;
  transform: none !important;
}

#allrecords .pathrest-booking-personal-field__item.intours-addon-required-error .pathrest-booking-personal-field__input,
#allrecords .pathrest-booking-personal-field__item.intours-addon-required-error .pathrest-booking-personal-field__select,
#allrecords .pathrest-booking-personal-field__item.intours-addon-required-error .pathrest-booking-personal-field__choice-button,
#allrecords .pathrest-booking-personal-field__item.intours-addon-required-error .pathrest-booking-personal-field__phone,
#allrecords .pathrest-booking-personal-field__item.is-error .pathrest-booking-personal-field__input,
#allrecords .pathrest-booking-personal-field__item.is-error .pathrest-booking-personal-field__select,
#allrecords .pathrest-booking-personal-field__item.is-error .pathrest-booking-personal-field__choice-button,
#allrecords .pathrest-booking-personal-field__item.is-error .pathrest-booking-personal-field__phone {
  border-color: rgba(176, 0, 32, 0.68) !important;
  box-shadow: 0 0 0 4px rgba(176, 0, 32, 0.07) !important;
}

@media (min-width: 900px) {
  #allrecords .pathrest-booking-personal-field__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }
}

@media (max-width: 767px) {
  #allrecords .pathrest-booking-personal-field__grid {
    gap: 9px !important;
  }

  #allrecords .pathrest-booking-personal-field__label {
    margin: 0 0 5px 3px !important;
    font-size: 10.8px !important;
    line-height: 1.18 !important;
    letter-spacing: 0.01em !important;
  }

  #allrecords .pathrest-booking-personal-field .pathrest-booking-personal-field__input,
  #allrecords .pathrest-booking-personal-field .pathrest-booking-personal-field__select,
  #allrecords .pathrest-booking-personal-field__choice-button {
    min-height: 44px !important;
    height: 44px !important;
    padding: 10px 13px !important;
    border-radius: 15px !important;
    font-size: 12.8px !important;
    line-height: 1.22 !important;
  }

  #allrecords .pathrest-booking-personal-field__choice-button {
    padding-right: 38px !important;
  }

  #allrecords .pathrest-booking-personal-field__choice-button::after {
    right: 15px !important;
    width: 7px !important;
    height: 7px !important;
    border-right-width: 1.5px !important;
    border-bottom-width: 1.5px !important;
  }

  #allrecords .pathrest-booking-personal-field__phone {
    min-height: 44px !important;
    height: 44px !important;
    border-radius: 15px !important;
  }

  #allrecords .pathrest-booking-personal-field__phone-code-choice {
    min-width: 92px !important;
  }

  #allrecords .pathrest-booking-personal-field__phone-code-button {
    min-height: 42px !important;
    height: 42px !important;
    padding-left: 12px !important;
    padding-right: 27px !important;
    border-radius: 15px 0 0 15px !important;
    font-size: 12.8px !important;
  }

  #allrecords .pathrest-booking-personal-field__phone-code-button::after {
    right: 11px !important;
    width: 6px !important;
    height: 6px !important;
  }

  #allrecords .pathrest-booking-personal-field .pathrest-booking-personal-field__phone-input {
    min-height: 42px !important;
    height: 42px !important;
    padding: 0 12px 0 10px !important;
    border-radius: 0 15px 15px 0 !important;
    font-size: 12.8px !important;
    line-height: 42px !important;
  }

  #allrecords .pathrest-booking-personal-field__date-wrap .pathrest-booking-personal-field__input {
    padding-right: 39px !important;
  }

  #allrecords .pathrest-booking-personal-field__date-icon {
    right: 10px !important;
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
  }

  #allrecords .pathrest-booking-personal-field__date-icon svg,
  #allrecords .pathrest-booking-personal-field__date-svg {
    width: 13px !important;
    height: 13px !important;
  }

  #allrecords .pathrest-booking-personal-field__choice-panel,
  #allrecords .pathrest-booking-personal-field__phone-code-panel {
    top: calc(100% + 6px) !important;
    max-height: 214px !important;
    padding: 7px !important;
    border-radius: 17px !important;
  }

  #allrecords .pathrest-booking-personal-field__choice-option,
  #allrecords .pathrest-booking-personal-field__phone-code-option {
    min-height: 36px !important;
    padding: 8px 10px !important;
    border-radius: 12px !important;
    font-size: 12.3px !important;
    line-height: 1.2 !important;
  }

  #allrecords .pathrest-booking-personal-field__phone-code-sub {
    font-size: 10.8px !important;
    line-height: 1.18 !important;
  }

  #allrecords .pathrest-booking-personal-field__phone-code-value {
    font-size: 11.6px !important;
  }

  #allrecords .pathrest-booking-personal-field__item .intours-addon-field-error,
  #allrecords .pathrest-booking-personal-field__error {
    margin-top: 5px !important;
    margin-left: 4px !important;
    font-size: 10.8px !important;
    line-height: 1.22 !important;
  }

  #allrecords .pathrest-booking-personal-field__save {
    min-height: 38px !important;
    padding: 9px 17px !important;
    font-size: 12.6px !important;
  }
}

@media (max-width: 420px) {
  #allrecords .pathrest-booking-personal-field__label {
    font-size: 10.5px !important;
  }

  #allrecords .pathrest-booking-personal-field .pathrest-booking-personal-field__input,
  #allrecords .pathrest-booking-personal-field .pathrest-booking-personal-field__select,
  #allrecords .pathrest-booking-personal-field__choice-button,
  #allrecords .pathrest-booking-personal-field__phone-code-button,
  #allrecords .pathrest-booking-personal-field .pathrest-booking-personal-field__phone-input {
    font-size: 12.4px !important;
  }
}



/*
  ============================================================
  PATHREST / INTOURS
  Personal data V9 — softer rounded fields
  ============================================================
*/

#allrecords .pathrest-booking-personal-field .pathrest-booking-personal-field__input,
#allrecords .pathrest-booking-personal-field .pathrest-booking-personal-field__select,
#allrecords .pathrest-booking-personal-field__choice-button {
  border-radius: 28px !important;
}

#allrecords .pathrest-booking-personal-field__phone {
  border-radius: 28px !important;
}

#allrecords .pathrest-booking-personal-field__phone-code-button {
  border-radius: 28px 0 0 28px !important;
}

#allrecords .pathrest-booking-personal-field .pathrest-booking-personal-field__phone-input {
  border-radius: 0 28px 28px 0 !important;
}

#allrecords .pathrest-booking-personal-field__choice-panel,
#allrecords .pathrest-booking-personal-field__phone-code-panel {
  border-radius: 28px !important;
}

#allrecords .pathrest-booking-personal-field__choice-option,
#allrecords .pathrest-booking-personal-field__phone-code-option {
  border-radius: 22px !important;
}

@media (max-width: 767px) {
  #allrecords .pathrest-booking-personal-field .pathrest-booking-personal-field__input,
  #allrecords .pathrest-booking-personal-field .pathrest-booking-personal-field__select,
  #allrecords .pathrest-booking-personal-field__choice-button {
    border-radius: 24px !important;
  }

  #allrecords .pathrest-booking-personal-field__phone {
    border-radius: 24px !important;
  }

  #allrecords .pathrest-booking-personal-field__phone-code-button {
    border-radius: 24px 0 0 24px !important;
  }

  #allrecords .pathrest-booking-personal-field .pathrest-booking-personal-field__phone-input {
    border-radius: 0 24px 24px 0 !important;
  }

  #allrecords .pathrest-booking-personal-field__choice-panel,
  #allrecords .pathrest-booking-personal-field__phone-code-panel {
    border-radius: 24px !important;
  }

  #allrecords .pathrest-booking-personal-field__choice-option,
  #allrecords .pathrest-booking-personal-field__phone-code-option {
    border-radius: 18px !important;
  }
}



/* === CLEAN V10: final personal rounded fields + exact native select cleanup === */
#allrecords .pathrest-booking-personal-field__panel,
#allrecords .pathrest-booking-personal-field__summary {
  border-radius: 30px !important;
}

#allrecords .pathrest-booking-personal-field__summary-body,
#allrecords .pathrest-booking-personal-field__item,
#allrecords .pathrest-booking-personal-field__input,
#allrecords .pathrest-booking-personal-field__select-button,
#allrecords .pathrest-booking-personal-field__phone-wrap,
#allrecords .pathrest-booking-personal-field__phone-country,
#allrecords .pathrest-booking-personal-field__phone-input {
  border-radius: 30px !important;
}

#allrecords .pathrest-booking-personal-field__date-input {
  border-radius: 30px !important;
}

@media (max-width: 767px) {
  #allrecords .pathrest-booking-personal-field__panel,
  #allrecords .pathrest-booking-personal-field__summary {
    border-radius: 30px !important;
  }
}

