/* ==================== СТИЛИ ДЛЯ ПОПАПА ==================== */

/* Затемненный фон */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popup-overlay.active {
    display: flex;
    opacity: 1;
}

/* Контейнер попапа */
.popup-container {
    position: relative;
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    background: white;
    border-radius: 24px;
    overflow-y: auto;
    padding: 30px 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.popup-overlay.active .popup-container {
    transform: scale(1);
}

/* Кнопка закрытия */
.popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #999;
    transition: color 0.2s;
    z-index: 10;
}

.popup-close:hover {
    color: #333;
}

/* Логотип в попапе */
.popup-logo {
    text-align: center;
    margin-bottom: 20px;
}

.popup-logo img {
    width: 60px;
    height: auto;
}

.popup-logo span {
    display: block;
    font-family: Onest;
    font-size: 24px;
    font-weight: 700;
    color: #24272C;
    margin-top: 8px;
}

/* Телефоны в попапе */
.popup-phones {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #EDEDED;
}

.popup-phone {
    display: block;
    font-family: Onest;
    font-size: 20px;
    font-weight: 600;
    color: #24272C;
    text-decoration: none;
    line-height: 1.4;
}

.popup-phone:hover {
    color: #fbbf24;
}

.popup-btn-call {
    width: 100%;
    height: 48px;
    background: #FC0;
    border: none;
    border-radius: 14px;
    font-family: Onest;
    font-size: 16px;
    font-weight: 500;
    color: #24272C;
    cursor: pointer;
    margin-bottom: 25px;
    transition: background 0.2s;
}

.popup-btn-call:hover {
    background: #f59e0b;
}

/* Заголовок формы */
.popup-form-title {
    text-align: center;
    margin-bottom: 25px;
}

.popup-form-title h3 {
    font-family: Onest;
    font-size: 20px;
    font-weight: 600;
    color: #24272C;
    margin-bottom: 8px;
}

.popup-form-title p {
    font-family: Onest;
    font-size: 14px;
    color: #696665;
}

/* Поля формы */
.popup-form-group {
    margin-bottom: 15px;
}

.popup-form-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #EDEDED;
    border-radius: 14px;
    font-family: Onest;
    font-size: 14px;
    color: #24272C;
    background: #F9F9F9;
    transition: border-color 0.2s;
}

.popup-form-input:focus {
    outline: none;
    border-color: #FC0;
    background: white;
}

.popup-form-input::placeholder {
    color: #AAA;
}

/* Чекбокс */
.popup-checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 20px 0;
}

.popup-checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #FC0;
}

.popup-checkbox-label {
    font-family: Inter;
    font-size: 11px;
    color: #696665;
    line-height: 1.4;
}

.popup-checkbox-label a {
    color: #24272C;
    text-decoration: none;
    font-weight: 500;
}

.popup-checkbox-label a:hover {
    text-decoration: underline;
}

/* Кнопка отправки */
.popup-submit-btn {
    width: 100%;
    height: 50px;
    background: #FC0;
    border: none;
    border-radius: 14px;
    font-family: Onest;
    font-size: 16px;
    font-weight: 500;
    color: #24272C;
    cursor: pointer;
    transition: background 0.2s;
}

.popup-submit-btn:hover {
    background: #f59e0b;
}

/* Параметры автомобиля (для мобильных) */
.popup-car-params {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #EDEDED;
}

.popup-car-params-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.popup-car-param {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #EDEDED;
}

.popup-car-param .label {
    font-family: Onest;
    font-size: 13px;
    color: #696665;
}

.popup-car-param .value {
    font-family: Onest;
    font-size: 13px;
    font-weight: 500;
    color: #24272C;
}

.popup-car-search-btn {
    width: 100%;
    height: 44px;
    background: #FC0;
    border: none;
    border-radius: 14px;
    font-family: Onest;
    font-size: 14px;
    font-weight: 500;
    color: #24272C;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s;
}

.popup-car-search-btn:hover {
    background: #f59e0b;
}

/* Типы авто (для мобильных) */
.popup-car-types {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.popup-car-type {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #F5F5F5;
    border-radius: 20px;
    font-family: Onest;
    font-size: 12px;
    color: #696665;
}

.popup-car-type img {
    width: 18px;
    height: 18px;
}

/* Скрываем десктопные элементы на мобильных */
@media (max-width: 768px) {
    .popup-container {
        padding: 25px 20px;
    }
    
    .popup-car-params {
        display: block;
    }
}

/* Скрываем мобильные элементы на десктопе */
@media (min-width: 769px) {
    .popup-car-params {
        display: none;
    }
}