.modal-content form h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #333;
    margin-top: 3px;
}

.modal-content form>*:not(:first-child) {
    margin-top: 16px;
}

.modal-content form input:focus,
.modal-content form textarea:focus {
    outline: none;
}

.modal-content form input,
.modal-content form textarea {
    padding: 10px 12px;
    border: 2px solid gainsboro;
    width: 100%;
    border-radius: 4px;
}

.modal-content form .input-grid {
    display: grid;
    gap: 14px;
}

.modal-content form button {
    width: 100%;
    margin-top: 22px !important;
    padding: 12px 0;
    background: var(--primary-gradient);
    border-radius: 4px;
    color: var(--primary-white);
    font-weight: 500;
}

@media (min-width: 786px) {
    .modal-content {
        padding: 30px !important;
    }
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-content {
    position: relative;
    z-index: 10000;
    background-color: #ffffff;
    width: 500px;
    max-width: 90%;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-40px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.modal-content form .input-grid {
    grid-template-columns: repeat(2, 1fr);
}

.modal.show .modal-overlay {
    opacity: 1;
}

.modal.show .modal-content {
    transform: translateY(0);
    opacity: 1;
}

.close-button {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
}

.close-button:hover {
    color: #888;
}