.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 600px;
    padding: 2rem;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

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

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

.modal-title {
    margin-top: 0;
    color: var(--orange);
    margin-bottom: 0.5rem;
}

.modal-subtitle {
    margin-top: 0;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-input-group {
    display: flex;
    gap: 1rem;
}

@media (max-width: 768px) {
    .modal-input-group {
        flex-direction: column;
    }
}

.modal-input {
    width: 100%;
    flex: 1 1 auto;
    border: 1px solid rgb(202, 202, 202);
    height: 40px;
    padding-left: 10px;
    border-radius: 4px;
}

.modal-input.invalid {
    border: 1px solid red;
}

.modal-button {
    padding: 0.8rem 1.5rem;
    width: 100%;
    border: none;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    background-color: var(--light-blue);
    border-radius: 4px;
    color: black;
    font-weight: 600;
    box-shadow: 0 2px 0.3rem 0 rgba(56, 56, 56, 0.2);
    margin-top: 1rem;
}

.modal-button:hover {
    filter: brightness(0.9);
    transform: scaleX(1.02);
}

.modal-message {
    text-align: center;
    font-size: 1.2rem;
    margin-top: 1rem;
    display: none;
}

.modal-message.visible {
    display: block;
}

.modal-disclaimer {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    margin-top: 1rem;
}
