#isr_left {
    font-size: 20px;
    float: left;
}

#isr_right {
    font-size: 20px;
    float: right;
}

#isr_Cell {
    border: 1px solid #fff;
    display: table-cell;
    padding: 3px 10px;
}

.information-services-amenities td {
    color: white !important;
    background-color: #003c78;
}

.information_services_row {
    display: table-row;
}

.information_services_row>div {
    background-color: #003c78;
    color: white;
    display: table-cell;
}

.information_services_error {
    background-color: crimson;
    color: white;
}

.information-services-container {
    margin-top: 10px;
}

#edit-submit {
    margin-top: 15px;
}

.results_detailed_container {
    width: 940px;
}

.information_services_result_detailed {
    display: table-row;
}

.information_services_result_detailed>div {
    background-color: #003c78;
    color: white;
}

#isr_Head {
    border: 1px solid #AAAAAA;
    padding: 3px 2px;
    display: inline;
}

.results_detailed_container {
    display: table;
    width: 100%;
}

.results_detailed_row_head {
    display: table-row;
}

.results_detailed_headers {
    border: 1px solid #999999;
    display: table-cell;
    padding: 3px;
    clear: both;
    width: 129px;
}

.result_detailed_row1 {
    display: table-row;
    clear: both;
}

.result_detailed_row2 {
    display: table-row;
    clear: both;
}

.result_detailed_cell {
    background-color: #003c78;
    border: 1px solid #fff;
    display: table-cell;
    padding: 3px;
    float: left;
    color: white;
}

.result_detailed_cell {
    width: 129.2px;
    height: 28px;
}

/* Стили для раскрывающихся блоков в форме assomi_callback */

.form-assomi-callback details.webform-element-more {
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    margin: 10px 0;
    background: white;
}

.form-assomi-callback details.webform-element-more:hover {
    border-color: #e0e0e0;
}

/* Заголовок */
.form-assomi-callback details.webform-element-more summary {
    background: linear-gradient(135deg, #f9f6fc, #f0e8f8);
    padding: 16px 20px;
    color: #663479;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    position: relative;
    list-style: none;
    outline: none;
    transition: all 0.3s ease;
    width: 100%;
}

.form-assomi-callback details.webform-element-more summary::-webkit-details-marker {
    display: none;
}

.form-assomi-callback details.webform-element-more summary:hover {
    background: linear-gradient(135deg, #f0e8f8, #e8dff5);
    color: #5a2d6b;
}

/* Стрелка */
.form-assomi-callback details.webform-element-more summary::before {
    content: '⯆';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
    color: #5a2d6b;
    font-size: 22px;
}

/* Контент */
.form-assomi-callback details.webform-element-more .details-wrapper {
    padding: 20px;
    border-top: 1px solid #f0f0f0;
    /* Устанавливаем размер шрифта 14px для всего текста внутри */
    font-size: 14px;
    line-height: 1.6;
    color: #313234;
}

/* Дополнительно для параграфов, чтобы они наследовали размер */
.form-assomi-callback details.webform-element-more .details-wrapper p {
    font-size: inherit; /* наследует 14px от .details-wrapper */
    margin: 0 0 15px 0;
}

.form-assomi-callback details.webform-element-more .details-wrapper p:last-child {
    margin-bottom: 0;
}

/* Для списков и других элементов также наследуем */
.form-assomi-callback details.webform-element-more .details-wrapper ul,
.form-assomi-callback details.webform-element-more .details-wrapper ol {
    font-size: inherit;
    padding-left: 20px;
    margin: 0 0 15px 0;
}

.form-assomi-callback details.webform-element-more .details-wrapper li {
    font-size: inherit;
    margin-bottom: 5px;
}

/* Открытое состояние */
.form-assomi-callback details.webform-element-more[open] {
    border-color: #a87bca;
    box-shadow: 0 4px 12px rgba(102, 52, 121, 0.1);
}

.form-assomi-callback details.webform-element-more[open] summary {
    background: linear-gradient(135deg, #663479, #a87bca);
    color: white;
    font-weight: 700;
}

.form-assomi-callback details.webform-element-more[open] summary::before {
    transform: translateY(-50%) rotate(180deg);
    color: white;
}

.form-assomi-callback details.webform-element-more[open] summary:hover {
    background: linear-gradient(135deg, #5a2d6b, #9c6dc4);
    color: white;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Стилизация чекбокса */

.form-assomi-callback .form-item-consent {
    display: flex;
    align-items: flex-start; 
    font-size: 14px;
}

.form-assomi-callback input.consent-checkbox {
        -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    display: inline-block;
    position: relative;
    top: 3px;
    margin: 0 5px 0 0;
    padding: 0;
    background: #fff;
    width: 16px !important;
    height: 16px !important;
    border-radius: 4px;
    border: 1px solid #ccc;
    cursor: pointer;
    vertical-align: middle;
}

/* Стилизация текста метки */
.form-assomi-callback label.consent-label {
    flex: 1;
    cursor: pointer;
    font-size: 14px;
}

.form-assomi-callback .form-submit,
.form-assomi-callback #edit-submit {
    width: 100%;
    padding: 15px 25px;
    margin: 0;
}

/* Корневой контейнер формы */
form#formassomicallback {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

form#formassomicallback > fieldset {
    margin: 0;
}

/*Livesearch*/

/* Контейнер поиска */
/* .live-search-block {
  margin-top: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
} */
.live-search-block legend {
  font-size: 1.2em;
  font-weight: bold;
  color: #333;
}

/* Строка с полем и селектором: 70% поле, 30% селектор */
.live-search-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  align-items: flex-start;
}

/* Сбрасываем стандартные отступы у обёрток полей */
.live-search-row .form-item {
  margin: 0;
}

/* Поле поиска — 7 частей */
.live-search-row .form-item-live-query {
  flex: 7 1 0;
}

/* Селектор региона — 3 части */
.live-search-row .form-item-region-select {
  flex: 3 1 0;
}

/* Внутри обёрток элементы растягиваются на всю ширину */
.live-search-row .form-item-live-query input,
.live-search-row .form-item-region-select select {
  width: 100%;
  box-sizing: border-box;
}

/* Убираем лишние внешние отступы */
.live-search-input,
.live-search-region {
  margin: 0;
}

/* Контейнер с карточками — вертикальный скролл */
.house-card-scroll {
  max-height: 300px;
  overflow-y: auto;
  margin-top: 10px;
}

/* Стили карточки */
.house-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px 15px;
  margin-bottom: 8px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}

.house-card:hover {
  border-color: #663479;
  background-color: #f9f6fc;
}

.house-card h3 {
  margin: 0 0 4px;
  font-size: 16px;
  color: #313234;
}

.house-card h3 strong {
  color: #663479;
}

.house-card .card-region {
  margin: 0;
  font-size: 13px;
  color: #666;
}

/* Контейнер поля поиска */
.form-item-live-query {
  position: relative;
}

/* Обёртка для input и кнопки очистки */
.live-search-input-wrapper {
  position: relative;
  display: block;
}

/* Кнопка очистки позиционируется относительно обёртки */
.clear-button {
  display: none;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  color: #666;
  padding: 0 4px;
  user-select: none;
  z-index: 2;
}

.clear-button.visible {
  display: inline-block;
}

.clear-button:hover {
  color: #333;
}

/* Поле ввода с отступом под кнопку */
.live-search-input {
  padding-right: 30px;
  width: 100%;
  box-sizing: border-box;
}

/* Сообщение об ошибке */
.live-search-validation-error {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  color: #d32f2f;
  font-weight: bold;
}