.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}
.modal[aria-hidden="false"] {
    display: block;
}
.modal__overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: modal-fade-in 0.3s ease;
}
.modal__container {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background-color: #fff;
    border-radius: 12px;
    overflow: auto;
    animation: modal-slide-in 0.3s ease;
}
.modal__close {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 32px;
    height: 32px;
    font-size: 28px;
    line-height: 1;
    color: #666;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
}
.modal__close:hover {
    color: #e11d48;
}
.modal__content {
    padding: 32px;
    min-width: 300px;
    max-width: 600px;
}
@keyframes modal-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes modal-slide-in {
    from { transform: translateY(-20px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

/* Стили для формы */
.modal-form h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}
.modal-form .form-group {
    margin-bottom: 16px;
}
.modal-form input,
.modal-form select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
}
.modal-form .checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
}
.modal-form .checkbox-item input {
    width: 18px;
    height: 18px;
}
.modal-form .checkbox-item label {
    font-size: 13px;
    color: #64748b;
}
.modal-form .form-button {
    width: 100%;
    padding: 14px;
    background-color: #40a941;
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
}
.modal-form .form-button:hover {
    background-color: #2d8a2e;
}