/* Enhanced Custom Modal Styles */
body {
    font-family: Arial, Helvetica, sans-serif;
}

.custom-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s ease-in-out;
}

#confirmationMessage, #contactConfirmationMessage {
    margin-top: 20px;
    text-align: center;
    display: block;
    visibility: visible;
}

.custom-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 8px 12px rgba(0, 0, 0, 0.1);
    animation: fadeInModal 0.4s ease-out;
    height: auto;
    max-height: 80vh;
    display: block;
}

/* Center the success message and button */
.centered-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Style for the "OK" button in success message */
.close-success-modal {
    display: inline-block;
    margin: 20px auto;
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.close-success-modal:hover {
    background-color: #0056b3;
}

/* Style for the success message */
.success-message {
    font-size: 1.25rem;
    margin-bottom: 20px;
}

.custom-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 10px;
}

.custom-modal-header h5 {
    font-size: 1.25rem;
    margin: 0;
}

.custom-modal-body {
    padding-top: 15px;
}

/* Updated Alignment and Styling for Form Elements */
.custom-modal .form-group {
    text-align: left;
    margin-bottom: 15px;
}

.custom-modal .form-control {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    margin-top: 5px;
}

/* Ensure consistent spacing for buttons */
.custom-modal .btn-primary {
    display: inline-block;
    background-color: #007bff;
    border-color: #007bff;
    color: #fff;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
    margin-top: 15px;
	margin-bottom: 40px;
}

.custom-modal .btn-primary:hover {
    background-color: #0056b3;
    border-color: #004085;
}

.custom-modal textarea {
    resize: vertical;
    padding: 8px;
    font-size: 1rem;
}

.custom-modal .form-group label {
    font-weight: bold;
}

@keyframes fadeInModal {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Close Button Styles */
.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #000;
    cursor: pointer;
    outline: none;
    transition: color 0.3s;
    line-height: 1;
    padding: 0;
}

.close-modal:hover {
    color: #dc3545;
    background: none;
}
