/* ===== МОДАЛЬНОЕ ОКНО ЦЕНОВОГО ЗАПРОСА ===== */

/* Overlay (затемнение фона) */
.price-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s;
    padding: 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.price-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Само модальное окно */
.price-modal {
    background: #404041;
    border-radius: 24px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9) translateY(30px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.price-modal-overlay.active .price-modal {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Исправление скролла на мобильных устройствах (iOS, Android) */
.price-modal {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    max-height: 90vh;
}

.price-modal-overlay {
    overflow-y: hidden;
    height: 100dvh;
}

body.price-form-open {
    overflow: hidden;
    touch-action: none;
}

/* Кнопка закрытия */
.price-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.price-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.price-modal-close svg {
    width: 20px;
    height: 20px;
}

/* Контент модалки */
.price-modal-content {
    padding: 50px 40px 40px;
}

.price-modal-title {
    font-family: "Alumni Sans SC", sans-serif;
    color: #ffffff;
    font-size: 42px;
    font-weight: 700;
    line-height: 0.9;
    margin-bottom: 35px;
    letter-spacing: -1px;
    text-align: center;
    margin-top: -30px;
}

/* Форма */
.price-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Группа полей */
.form-group {
    display: flex;
    flex-direction: column;
    position: relative;
}

/* ===== FLOATING LABELS ===== */
.floating-label {
    position: relative;
   
}

.floating-label input {
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 20px 18px 8px;
    color: #ffffff;
    font-size: 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-weight: 400;
    transition: all 0.3s ease;
    outline: none;
    width: 100%;
}

.floating-label label {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-weight: 400;
    transition: all 0.3s ease;
    pointer-events: none;
    background: transparent;
}

/* Когда input в фокусе или заполнен */
.floating-label input:focus + label,
.floating-label input:not(:placeholder-shown) + label {
    top: 10px;
    transform: translateY(0);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
}

.floating-label input:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: #f06922;
    box-shadow: 0 0 0 4px rgba(240, 105, 34, 0.15);
}

.floating-label input:not(:placeholder-shown) {
    border-color: rgba(255, 255, 255, 0.25);
}

/* Группа услуг */
.services-group {
    gap: 12px;
}

.services-label {
    color: #ffffff;
    font-size: 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-weight: 500;
    margin-bottom: 4px;
}

/* Автоподсказки адресов */
.address-suggestions {
    list-style: none;
    padding: 0;
    margin: 0;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 12px;
    max-height: 250px;
    overflow-y: auto;
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.address-suggestions:empty {
    display: none;
}

.address-suggestions li {
    padding: 12px 18px;
    color: #ffffff;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.address-suggestions li:last-child {
    border-bottom: none;
}

.address-suggestions li:hover {
    background: rgba(240, 105, 34, 0.2);
    color: #f06922;
}

/* Группа чекбоксов */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
}

.checkbox-label:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Скрываем стандартный чекбокс */
.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 0;
    height: 0;
}

/* Кастомный чекбокс */
.checkbox-custom {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    position: relative;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    margin-top: 1px;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: #f06922;
    border-color: #f06922;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 11px;
    border: solid white;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

.checkbox-text {
    color: #ffffff;
    font-size: 15px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-weight: 400;
    line-height: 1.4;
}

/* Чекбокс согласия */
.consent-checkbox {
    padding: 14px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.consent-checkbox .checkbox-text {
    font-size: 13px;
    line-height: 1.5;
}

.consent-checkbox .checkbox-text a {
    color: #f06922;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.consent-checkbox .checkbox-text a:hover {
    color: #ff8947;
}

/* Кнопка отправки */
.price-submit-btn {
    font-family: "Alumni Sans SC", sans-serif;
    background: #f06922;
    color: #ffffff;
    border: none;
    border-radius: 14px;
    padding: 18px 40px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    margin-top: 10px;
    width: 100%;
}

.price-submit-btn:hover:not(:disabled) {
    background: #d95a1a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(240, 105, 34, 0.4);
}

.price-submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

.price-submit-btn:disabled {
    background: rgba(240, 105, 34, 0.3);
    cursor: not-allowed;
    opacity: 0.5;
}

/* Блокировка скролла body при открытой форме */
body.price-form-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* ===== АДАПТИВНОСТЬ ===== */

@media (max-width: 768px) {
    .price-modal-overlay {
        padding: 0;
        align-items: stretch;
    }

    .price-modal {
        max-width: 100%;
        width: 100%;
        max-height: 100vh;
        border-radius: 0;
        margin: 0;
    }

    .price-modal-content {
        padding: 60px 25px 30px;
    }

    .price-modal-title {
        font-size: 34px;
        margin-bottom: 30px;
    }

    .price-form {
        gap: 18px;
    }

    .services-label {
        font-size: 15px;
    }

    .floating-label input {
        padding: 18px 16px 6px;
        font-size: 15px;
    }

    .floating-label label {
        left: 16px;
        font-size: 15px;
    }

    .floating-label input:focus + label,
    .floating-label input:not(:placeholder-shown) + label {
        font-size: 11px;
    }

    .checkbox-label {
        padding: 9px 10px;
    }

    .checkbox-text {
        font-size: 14px;
    }

    .consent-checkbox .checkbox-text {
        font-size: 12px;
    }

    .price-submit-btn {
        padding: 16px 30px;
        font-size: 20px;
        margin-top: 5px;
    }

    .address-suggestions {
        max-height: 200px;
    }

    .address-suggestions li {
        padding: 10px 16px;
        font-size: 13px;
    }
}

@media (max-width: 420px) {
    .price-modal-content {
        padding: 55px 20px 25px;
    }

    .price-modal-title {
        font-size: 30px;
    }

    .checkbox-custom {
        width: 20px;
        height: 20px;
        min-width: 20px;
    }

    .checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
        left: 5px;
        top: 2px;
        width: 5px;
        height: 10px;
    }

    .floating-label input {
        padding: 24px 14px 6px;
        font-size: 14px;
    }

    .floating-label label {
        left: 14px;
        font-size: 14px;
    }
}

/* Кастомный скроллбар для списка адресов */
.address-suggestions::-webkit-scrollbar {
    width: 8px;
}

.address-suggestions::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.address-suggestions::-webkit-scrollbar-thumb {
    background: rgba(240, 105, 34, 0.5);
    border-radius: 10px;
}

.address-suggestions::-webkit-scrollbar-thumb:hover {
    background: rgba(240, 105, 34, 0.7);
}

/* Кастомный скроллбар для модалки */
.price-modal::-webkit-scrollbar {
    width: 10px;
}

.price-modal::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.price-modal::-webkit-scrollbar-thumb {
    background: rgba(240, 105, 34, 0.6);
    border-radius: 10px;
}

.price-modal::-webkit-scrollbar-thumb:hover {
    background: rgba(240, 105, 34, 0.8);
}