/*
Theme Name: Brooklyn Child
Theme URI: http://www.unitedthemes.com
Description: Creative Portfolio
Version: 4.9.5
Author: United Themes
Author URI: http://www.unitedthemes.com
Template: brooklyn
*/

/* ====================================
   Стили для форм обратной связи и popup
   ==================================== */

/* Popup контейнер */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999999;
    display: none;
    align-items: center;
    justify-content: center;
}

.popup.active {
    display: flex;
}

.popup__blur {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    cursor: pointer;
}

.popup__container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup__block {
    position: relative;
    z-index: 10;
    background: #fff;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    padding: 40px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
}

.popup__close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.popup__close:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: rotate(90deg);
}

/* Заголовки формы */
.main-popup__title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.main-popup__text {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

/* Поля формы */
.form-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    margin-bottom: 0.5vw;
    padding: 18px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    line-height: 1.5;
    font-family: inherit;
    color: #333;
    transition: all 0.3s ease;
    background: #fff;
    cursor: text;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #999;
    opacity: 1;
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
    border-color: #ccc;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #ff0000;
    box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

/* Кнопка отправки */
.form-btn {
    width: 100%;
    padding: 14px 24px;
    background: #ff0000;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-btn:hover {
    background: #cc0000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
}

.form-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Чекбокс согласия */
.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 15px;
    font-size: 13px;
    color: #666;
}

.form-checkbox [agreementControl_JS] {
    min-width: 24px;
    width: 24px;
    height: 24px;
    border: 2px solid #ddd;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.form-checkbox [agreementControl_JS] input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.form-checkbox [agreementControl_JS] .checkbox-icon {
    display: none;
    color: #fff;
    font-size: 16px;
}

.form-checkbox [agreementControl_JS].checked {
    background: #ff0000;
    border-color: #ff0000;
}

.form-checkbox [agreementControl_JS].checked .checkbox-icon {
    display: block;
}

.form-checkbox p {
    margin: 0;
    line-height: 1.5;
}

.form-checkbox a {
    color: #ff0000;
    text-decoration: none;
}

.form-checkbox a:hover {
    text-decoration: underline;
}

/* Кнопка открытия popup */
.open-popup-btn {
    padding: 12px 24px;
    background: #ff0000;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.open-popup-btn:hover {
    background: #cc0000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
}

/* Простая форма (без popup) */
.simple-contact-form {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 8px;
}

.simple-contact-form h3 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
}

/* Блокировка скролла когда popup открыт */
body.popup-open {
    overflow: hidden;
}

/* ====================================
   Кастомный Select с анимацией
   ==================================== */

/* Скрываем обычный select */
.custom-select-wrapper select.form-select {
    display: none;
}

/* Контейнер кастомного select */
.custom-select {
    position: relative;
    width: 100%;
    user-select: none;
}

/* Выбранное значение (кнопка открытия) */
.custom-select__trigger {
    width: 100%;
    padding: 18px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.custom-select__trigger:hover {
    border-color: #ccc;
}

.custom-select.open .custom-select__trigger {
    border-color: #ff0000;
    box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.1);
}

/* Стрелка */
.custom-select__arrow {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #666;
    transition: transform 0.3s ease;
}

.custom-select.open .custom-select__arrow {
    transform: rotate(180deg);
}

/* Выпадающий список */
.custom-select__options {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    z-index: 100;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 0;
}

.custom-select.open .custom-select__options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    max-height: 300px;
}

/* Опции */
.custom-select__option {
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 15px;
    color: #333;
}

.custom-select__option:hover {
    background: #f5f5f5;
}

.custom-select__option.selected {
    background: #ff0000;
    color: #fff;
}

.custom-select__option.selected:hover {
    background: #cc0000;
}

/* Адаптивность */
@media (max-width: 768px) {
    .popup__block {
        padding: 30px 20px;
        width: 95%;
    }

    .main-popup__title {
        font-size: 22px;
    }

    .main-popup__text {
        font-size: 14px;
    }

    .form-input,
    .form-select,
    .form-textarea {
        padding: 15px 14px;
        font-size: 14px;
        margin-bottom: 2vw;
    }

    .custom-select__trigger,
    .custom-select__option {
        padding: 15px 14px;
        font-size: 14px;
    }

    .form-btn {
        padding: 12px 20px;
        font-size: 15px;
    }
}

@media (min-width: 1025px) {
    .ut-site-border-top-part {
    position: relative;
    z-index: 1 !important;
    background: rgb(232, 232, 232);
    height: 20px;
    min-height: 20px;
    } 
}

