/* Стили для модального окна */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
}

.modal {
    background-color: rgba(46, 90, 138, 0.9);
    padding: 30px;
    border-radius: 15px;
    max-width: 450px;
    width: 90%;
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transform: translateY(-20px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.modal-overlay.show .modal {
    transform: translateY(0);
    opacity: 1;
}

.modal h2 {
    margin-bottom: 20px;
    text-align: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
    text-transform: uppercase;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-form .form-group label {
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: #fff;
    font-weight: 600;
}

.modal-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 0.95rem;
    background: #fff;
    color: #0d1b2a;
    transition: border-color 0.2s ease;
}

.modal-form input:focus {
    border-color: #f25c05;
    outline: none;
}

.modal-form .form-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    position: relative;
}

.modal-form .form-checkbox input[type="checkbox"] {
    opacity: 0;
    width: 20px;
    height: 20px;
    position: absolute;
    cursor: pointer;
}

.modal-form .form-checkbox label {
    font-size: 0.9rem;
    color: #fff;
    position: relative;
    padding-left: 30px;
    cursor: pointer;
}

.modal-form .form-checkbox label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 4px;
    background: #fff;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.modal-form .form-checkbox label::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 6px;
    height: 12px;
    border: solid #f25c05;
    border-width: 0 2px 2px 0;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.modal-form .form-checkbox input[type="checkbox"]:checked + label::before {
    border-color: #f25c05;
    background: #fff;
}

.modal-form .form-checkbox input[type="checkbox"]:checked + label::after {
    opacity: 1;
}

.modal-form .form-checkbox a {
    color: #ff6e00;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.modal-form .form-checkbox a:hover {
    color: #d94a00;
}

.modal-form .submit-btn {
    background: linear-gradient(45deg, #f25c05, #ff8c33);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(242, 92, 5, 0.4), 0 0 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    line-height: 1.5;
    min-height: 40px;
    font-size: 1rem;
    white-space: nowrap;
    opacity: 0.6;
    pointer-events: none;
    margin-top: 15px;
    width: 100%;
}

.modal-form .submit-btn.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-form .submit-btn.active:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(242, 92, 5, 0.6), 0 0 5px rgba(0, 0, 0, 0.2);
    background: linear-gradient(45deg, #d94a00, #ff8c33);
    animation: pulse 0.5s infinite;
}

.modal-form .disclaimer {
    font-size: 0.85rem;
    color: #ccc;
    margin-top: 10px;
    text-align: center;
    line-height: 1.5;
}

.modal-form .disclaimer a {
    color: #ff6e00;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.modal-form .disclaimer a:hover {
    color: #d94a00;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #fff;
    transition: color 0.2s ease;
}

.close-modal:hover {
    color: #f25c05;
}

/* Стили для всплывающего окна */
.form-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-popup.show {
    opacity: 1;
}

.form-popup-content {
    background: #fff;
    padding: 20px 30px;
    border-radius: 10px;
    position: relative;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: #0d1b2a;
    font-size: 1.1rem;
    font-weight: 500;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.form-popup.show .form-popup-content {
    transform: scale(1);
}

.form-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #f25c05;
    transition: color 0.3s ease;
}

.form-popup-close:hover {
    color: #d94a00;
}

/* Эффект пульсации */
@keyframes pulse {
    0% {
        box-shadow: 0 4px 15px rgba(242, 92, 5, 0.4), 0 0 5px rgba(0, 0, 0, 0.1);
    }
    50% {
        box-shadow: 0 6px 20px rgba(242, 92, 5, 0.6), 0 0 5px rgba(0, 0, 0, 0.2);
    }
    100% {
        box-shadow: 0 4px 15px rgba(242, 92, 5, 0.4), 0 0 5px rgba(0, 0, 0, 0.1);
    }
}