

/* Overlay для затемнения */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Popup форма */
.popup-form {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-form.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

/* Кнопка закрытия */
.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 32px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-close:hover {
    color: #056877;
}

/* Заголовок формы */
.popup-title {
    color: #056877;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    font-family: 'Lato', sans-serif;
}

/* Группа полей формы */
.form-group {
    /* margin-bottom: 20px; */
    margin-bottom: 10px;
}

.form-group label {
    display: block;
    /* margin-bottom: 8px; */
    margin-bottom: 0x;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Open Sans', sans-serif;
}

.required {
    color: #E1B52D;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e5e5e5;
    border-radius: 4px;
    font-size: 15px;
    font-family: 'Lato', sans-serif;
    transition: all 0.3s ease;
    background-color: #fff;
}

.form-group input:focus {
    outline: none;
    border-color: #67c7c5;
    box-shadow: 0 0 0 3px rgba(103, 199, 197, 0.1);
}

.form-group input.error {
    border-color: #f00;
}

/* Сообщения об ошибках */
.error-message {
    display: none;
    color: #f00;
    font-size: 12px;
    margin-top: 5px;
    min-height: 16px;
}
.checkbox-error {
    display: block;
}
.form-group input.error + .error-message {
    display: block;
}

/* Группа чекбоксов */
.checkbox-group {
    margin-bottom: 15px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.5;
    color: #333;
    position: relative;
    padding-left: 30px;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 2px solid #e5e5e5;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.checkbox-label:hover input ~ .checkmark {
    border-color: #67c7c5;
}

.checkbox-label input:checked ~ .checkmark {
    background-color: #056877;
    border-color: #056877;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-label input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-label .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-text {
    flex: 1;
}

.checkbox-error {
    margin-left: 30px;
}

/* Кнопка отправки */
.btn-submit {
    width: 100%;
    background-color: #056877;
    color: #fff;
    border: none;
    padding: 15px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 25px;
    font-family: 'Lato', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-submit:hover {
    background-color: #67c7c5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(5, 104, 119, 0.3);
}

.btn-submit:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Сообщение об успехе */
.success-message {
    text-align: center;
    padding: 20px;
}

.success-message h3 {
    color: #056877;
    font-size: 24px;
    margin-bottom: 15px;
}

.success-message p {
    color: #666;
    font-size: 15px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .popup-form {
        width: 95%;
        padding: 30px 20px;
        max-height: 95vh;
    }
    
    .popup-title {
        font-size: 24px;
        margin-bottom: 25px;
    }
    
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"] {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .checkbox-label {
        font-size: 12px;
    }
    
    .btn-submit {
        padding: 12px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .popup-form {
        padding: 25px 15px;
    }
    
    .popup-title {
        font-size: 20px;
    }
    
    .popup-close {
        font-size: 28px;
        top: 10px;
        right: 10px;
    }
}

/* Скроллбар для формы */
.popup-form::-webkit-scrollbar {
    width: 8px;
}

.popup-form::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}

.popup-form::-webkit-scrollbar-thumb {
    background: #67c7c5;
    border-radius: 4px;
}

.popup-form::-webkit-scrollbar-thumb:hover {
    background: #056877;
}