
/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.6); /* Black w/ opacity */
    transition: opacity 0.4s ease; /* Fade in animation */
}

/* Modal Content */
.modal-content {
    background-color: #fff;
    margin: 5% auto; /* Center the modal vertically */
    padding: 30px;
    width: 90%; /* Width relative to the screen */
    max-width: 600px; /* Max width */
    border-radius: 8px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2); /* Drop shadow */
    position: relative;
    animation: slideDown 0.4s ease-out; /* Slide down animation */
    border-top: 5px solid var(--main-color-4); /* Accent color at the top */
}

/* Close Button */
.close {
    color: #333;
    font-size: 24px;
    font-weight: bold;
    position: absolute;
    right: 15px;
    top: 15px;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #292723; /* Accent color */
    text-decoration: none;
}

/* Slide down animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Styling */
.modal-content form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px; /* Space between form elements */
}

.modal-content .form-group {
    width: 100%;
}

.modal-content .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #4a4a4a;
}

.modal-content input[type="text"],
.modal-content input[type="email"],
.modal-content input[type="tel"],
.modal-content select,
.modal-content textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    font-size: 16px;
    background-color: #f9f9f9;
    transition: border-color 0.3s ease;
}

.modal-content input:focus,
.modal-content select:focus,
.modal-content textarea:focus {
    border-color: #6d6762; /* Accent color */
    outline: none;
}

/* Button Styling */
.modal-content button[type="submit"] {
    padding: 10px 20px;
    font-size: 18px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%; /* Full-width button */
}

/* Modal Paragraph */
.modal-content p {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin-top: 20px;
}

.modal-content h2 {
    margin-bottom: 20px;
    color: #A08F72;
}