.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal {
    background-color: #f5e8c8;
    border: 8px double #8c5c3f;
    border-radius: 15px;
    padding: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    position: relative;
}

.modal-header {
    background: linear-gradient(135deg, #8c5c3f 0%, #523a28 100%);
    padding: 10px 15px;
    margin: -20px -20px 20px -20px;
    border-bottom: 5px solid #d4b37c;
    color: #f5e8c8;
    text-align: center;
    font-weight: bold;
}

.modal-close {
    position: absolute;
    top: 0px;
    right: 0px;
    min-width: 20px;
    font-size: 24px;
    color: #f5e8c8;
    cursor: pointer;
    background: none;
    border: none;
    font-weight: bold;
}

.modal-header button {
    transform: none;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.modal-content {
    padding: 20px 0;
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.form-options {
    margin-top: 15px;
}

.form-options a {
    color: #8c5c3f;
    text-decoration: underline;
    cursor: pointer;
}

.message-modal .modal-content {
    text-align: center;
    padding: 20px;
}

.message-modal .modal-buttons {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.success {
    color: #2e7d32;
}

.error {
    color: #d32f2f;
}