/* ===== HOTEL WIDGET STYLES ===== */
/* Стиль идентичен форме трансфера (префиксы .tf-) */

/* ========== Кастомный дропдаун кода страны (без <select>) ========== */
.tf-phone-code-dropdown {
  position: relative;
  width: 70px !important;
  min-width: 70px !important;
  max-width: 70px !important;
  flex-shrink: 0;
  z-index: 100;
}

.tf-phone-code-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 40px;
  padding: 0 8px;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
  transition: all 0.2s;
  box-sizing: border-box;
  user-select: none;
}

.tf-phone-code-btn:hover {
  border-color: #e3007b;
}

.tf-phone-code-value {
  font-weight: 600;
}

.tf-phone-code-arrow {
  font-size: 10px;
  color: #94a3b8;
  margin-left: 4px;
  transition: transform 0.2s;
}

.tf-phone-code-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 90px;
  max-height: 240px;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 10000;
  box-sizing: border-box;
}

.tf-phone-code-list::-webkit-scrollbar {
  width: 4px;
}

.tf-phone-code-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.tf-phone-code-item {
  padding: 8px 12px;
  font-size: 13px;
  color: #334155;
  cursor: pointer;
  transition: background 0.15s;
  text-align: center;
  font-weight: 500;
}

.tf-phone-code-item:hover {
  background-color: #fce4f3;
  color: #e3007b;
}

.tf-phone-code-item.tf-phone-code-active {
  background-color: #e3007b;
  color: #ffffff;
  font-weight: 700;
}

/* ========== СБРОС jquery.formstyler ========== */
.tf-form-container .jq-selectbox,
.tf-form-container .jq-selectbox__dropdown,
.tf-form-container .jq-selectbox__select,
.tf-form-container .jq-selectbox__select-text,
.tf-form-container .jq-selectbox__trigger,
.tf-form-container .jq-checkbox,
.tf-form-container .jq-checkbox__inner,
#hotelPhoneContainer .jq-selectbox,
#hotelPhoneContainer .jq-selectbox__dropdown,
#hotelPhoneContainer .jq-selectbox__select {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* ========== Контейнер ========== */
.tf-form-container {
  max-width: 380px;
  background-color: #ffffff;
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  padding: 20px;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  flex-grow: 1;
}

.tf-top-line {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 6px;
  background: linear-gradient(to right, #357ebd, #e3007b);
}

.tf-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  margin-top: 8px;
}

.tf-title {
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
}

.tf-lang-switch {
  display: flex;
  gap: 8px;
  background-color: #f3f4f600;
  padding: 4px;
  border-radius: 9999px;
}

.tf-lang-img {
  width: 33px !important;
  height: 33px !important;
  cursor: pointer;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  transition: transform 0.2s;
}
.tf-lang-img:hover { transform: scale(1.1); }

/* ========== Поля ввода ========== */
#hotelPhone.tf-input-modern {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: text;
}

#hotelPhone.tf-input-modern:empty::before {
  content: attr(data-placeholder);
  color: #94a3b8;
  pointer-events: none;
}

.tf-input-modern {
  width: 100% !important;
  background-color: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 10px 14px !important;
  font-size: 14px !important;
  color: #0f172a !important;
  transition: all 0.3s ease !important;
  outline: none !important;
  box-sizing: border-box !important;
  font-family: inherit !important;
}

.tf-input-modern:focus {
  background-color: #ffffff !important;
  border-color: #e3007b !important;
  box-shadow: 0 0 0 3px rgba(227, 0, 123, 0.1) !important;
}

.tf-input-modern::placeholder {
  color: #94a3b8 !important;
}

.tf-label-modern {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
  margin-top: 16px;
}

.tf-label-modern:first-of-type,
.tf-label-modern + .tf-label-modern {
  margin-top: 12px;
}

.tf-label-tight {
  line-height: 1.2;
  height: 32px;
  display: flex;
  align-items: flex-end;
  margin-bottom: 6px;
}

/* ========== Сетка рядов ========== */
.tf-flex-row {
  display: flex;
  gap: 10px;
}
.tf-w-half { width: 50%; }
.tf-w-35 {
  width: 35% !important;
  padding-left: 4px !important;
  padding-right: 4px !important;
  cursor: pointer;
}
.tf-w-65 { width: 65%; }

/* ========== Счётчик ========== */
.tf-counter-wrapper {
  display: flex;
  align-items: center;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  height: 40px;
}

.tf-counter-btn {
  width: 32px;
  height: 100%;
  background: transparent;
  border: none;
  color: #e3007b;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tf-counter-btn:hover { background-color: #f1f5f9; }
.tf-counter-btn:active { background-color: #e2e8f0; }

.tf-counter-input {
  flex: 1;
  width: 100%;
  border: none !important;
  background: transparent !important;
  text-align: center;
  font-size: 14px !important;
  font-weight: 600;
  color: #0f172a !important;
  padding: 0 !important;
  outline: none !important;
}
.tf-counter-input:focus { box-shadow: none !important; }

/* ========== Блок детей ========== */
#hotelChildrenContainer {
  margin-top: 8px;
}

.tf-child-box {
  display: flex;
  gap: 8px;
  padding: 8px;
  background-color: rgba(253, 242, 248, 0.5);
  border: 1px solid #fce7f3;
  border-radius: 12px;
  margin-bottom: 6px;
}

.tf-child-age {
  width: 40%;
  padding: 8px !important;
  font-size: 14px !important;
}

.tf-child-age-label {
  display: flex;
  align-items: center;
  font-size: 12px;
  color: #475569;
  width: 60%;
}

/* ========== Чекбоксы ========== */
.tf-cb-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
  cursor: pointer;
  user-select: none;
}

.tf-cb-hidden {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.tf-cb-custom {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background-color: #f8fafc;
  border: 2px solid #cbd5e1;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  margin-top: 2px;
}

.tf-cb-hidden:checked ~ .tf-cb-custom {
  background-color: #e3007b !important;
  border-color: #e3007b !important;
}

.tf-cb-custom::after {
  content: "";
  display: none !important;
  width: 5px !important;
  height: 10px !important;
  border: solid white !important;
  border-width: 0 2px 2px 0 !important;
  transform: rotate(45deg) !important;
  margin-bottom: 2px !important;
}

.tf-cb-hidden:checked ~ .tf-cb-custom::after {
  display: block !important;
}

.tf-cb-text {
  font-size: 11px;
  color: #475569;
  line-height: 1.4;
  margin-top: 3px;
}

.tf-policies-box {
  margin-top: 12px;
  background-color: #f9fafb;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid #f3f4f6;
}

.tf-policies-box .tf-cb-wrapper { margin-top: 6px; }
.tf-policies-box .tf-cb-wrapper:first-child { margin-top: 0; }
.tf-policies-box .tf-cb-text { font-size: 11px; }

/* ========== Ошибки ========== */
.tf-error-shadow {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.3) !important;
  border-color: #ef4444 !important;
}

.tf-cb-error {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.3) !important;
  border-color: #ef4444 !important;
}

.tf-error-text {
  font-size: 11px;
  color: #ef4444;
  margin-top: 4px;
  margin-bottom: 0;
  font-weight: 500;
  display: none;
}

/* ========== Утилиты ========== */
.tf-hidden { display: none !important; }
.tf-mt-2 { margin-top: 8px; }
.tf-input-modern { resize: none; }
textarea.tf-input-modern::-webkit-scrollbar { width: 6px; }
textarea.tf-input-modern::-webkit-scrollbar-track { background: transparent; }
textarea.tf-input-modern::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }

/* ========== Кнопка ========== */
.tf-submit-btn {
  width: 100%;
  margin-top: 20px;
  color: #fff;
  background-color: #e3007b;
  padding: 15px 0 17px 0;
  border-radius: 94px;
  font-size: 16px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 15px -3px rgba(236, 72, 153, 0.3);
  transition: all 0.3s ease;
  font-family: inherit;
  letter-spacing: 0.5px;
}
.tf-submit-btn:hover {
  box-shadow: 0 10px 25px -3px rgba(236, 72, 153, 0.5);
  transform: translateY(-2px);
}
.tf-submit-btn:disabled {
  background-color: #ccc;
  box-shadow: none;
  transform: none;
  cursor: not-allowed;
}

/* ========== Анимация ========== */
.tf-fade-in { animation: tfFadeIn 0.3s ease-in-out; }
@keyframes tfFadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ========== Модальное окно «Спасибо» ========== */
.tf-modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.tf-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.tf-modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  width: 320px;
  transform: translateY(-20px);
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
.tf-modal-overlay.active .tf-modal-content {
  transform: translateY(0);
}
.tf-modal-title {
  margin: 0 0 10px 0;
  color: #e3007b;
  font-size: 22px;
}
.tf-modal-text {
  color: #475569;
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.5;
}
.tf-modal-btn {
  background: #e3007b;
  color: #fff;
  border: none;
  padding: 10px 28px;
  border-radius: 99px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
}
.tf-modal-btn:hover {
  background: #c5006a;
}

/* ========== Responsive ========== */
@media (max-width: 480px) {
  .tf-form-container {
    max-width: 100%;
    padding: 16px 12px;
  }
  .tf-modal-content {
    width: 280px;
    padding: 24px 16px;
  }
}

/* ===== HOTEL DATEPICKER STYLES ===== */
/* Переопределяем daterangepicker под дизайн формы (.tf-) */

.daterangepicker {
  border: none !important;
  border-radius: 16px !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18) !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
  padding: 12px !important;
  width: auto !important;
  min-width: 520px !important;
}

.daterangepicker::before,
.daterangepicker::after {
  display: none !important;
}

.daterangepicker .calendar-table {
  border: none !important;
  background: #fff !important;
  border-radius: 12px !important;
}

.daterangepicker td,
.daterangepicker th {
  min-width: 38px !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  border: none !important;
  text-align: center !important;
}

.daterangepicker th {
  color: #999 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
}

.daterangepicker td.available:hover {
  background-color: #fce4f3 !important;
  color: #e3007b !important;
  border-radius: 10px !important;
}

.daterangepicker td.off,
.daterangepicker td.off.in-range,
.daterangepicker td.off.start-date,
.daterangepicker td.off.end-date {
  background-color: transparent !important;
  color: #ccc !important;
}

.daterangepicker td.available.today {
  border: 2px solid #e3007b !important;
  font-weight: 700 !important;
  color: #e3007b !important;
}

.daterangepicker td.active,
.daterangepicker td.active:hover {
  background-color: #e3007b !important;
  color: #fff !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
}

.daterangepicker td.in-range {
  background-color: #fce4f3 !important;
  color: #e3007b !important;
  border-radius: 0 !important;
}

.daterangepicker td.start-date {
  border-radius: 10px 0 0 10px !important;
}

.daterangepicker td.end-date {
  border-radius: 0 10px 10px 0 !important;
}

.daterangepicker td.start-date.end-date {
  border-radius: 10px !important;
}

.daterangepicker .drp-calendar {
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Заголовки месяцев */
.daterangepicker .month {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #1f2937 !important;
  margin-bottom: 8px !important;
}

.daterangepicker .month select {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #1f2937 !important;
  border: none !important;
  background: transparent !important;
  cursor: pointer !important;
}

.daterangepicker select.monthselect,
.daterangepicker select.yearselect {
  font-size: 14px !important;
  color: #333 !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  padding: 4px 8px !important;
  background-color: #f8fafc !important;
  font-family: inherit !important;
  cursor: pointer !important;
  outline: none !important;
}

.daterangepicker select.monthselect:focus,
.daterangepicker select.yearselect:focus {
  border-color: #e3007b !important;
  box-shadow: 0 0 0 2px rgba(227, 0, 123, 0.1) !important;
}

/* Стрелки навигации */
.daterangepicker .drp-calendar .next span,
.daterangepicker .drp-calendar .prev span {
  border-color: #666 !important;
  width: 8px !important;
  height: 8px !important;
}

.daterangepicker .drp-calendar .next:hover span,
.daterangepicker .drp-calendar .prev:hover span {
  border-color: #e3007b !important;
}

/* Кнопки */
.daterangepicker .drp-buttons {
  border-top: 1px solid #eee !important;
  padding-top: 10px !important;
  margin-top: 10px !important;
}

.daterangepicker .drp-buttons .btn {
  padding: 8px 20px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  border: none !important;
  font-family: inherit !important;
}

.daterangepicker .drp-buttons .applyBtn {
  background-color: #e3007b !important;
  color: #fff !important;
}

.daterangepicker .drp-buttons .applyBtn:hover {
  background-color: #c5006a !important;
}

.daterangepicker .drp-buttons .cancelBtn {
  background-color: #f1f5f9 !important;
  color: #475569 !important;
}

.daterangepicker .drp-buttons .cancelBtn:hover {
  background-color: #e2e8f0 !important;
}

/* Disabled */
.daterangepicker td.disabled,
.daterangepicker option.disabled {
  color: #ccc !important;
  text-decoration: none !important;
  cursor: default !important;
}

/* Респонсив */
@media (max-width: 768px) {
  .daterangepicker {
    min-width: 280px !important;
  }
}
