.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(12, 20, 45, .55);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.open {
    display: flex;
}

.modal-content {
    position: relative;
    width: min(620px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 18px;
    padding: 42px;
    box-shadow: 0 30px 80px rgba(0,0,0,.22);
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    border: none;
    background: none;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: var(--navy);
}

.modal-content input,
.modal-content textarea {
    width: 100%;
    margin-top: 8px;
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font: inherit;
}

.modal-content textarea {
    min-height: 180px;
    resize: vertical;
}

.modal-content label {
    display: block;
    font-weight: 600;
    color: var(--navy);
}

.modal-content h2 {
    margin-bottom: 18px;
}

.modal-content p {
    color: var(--text);
}
