
#headers {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px;
    animation: fadeIn 2s;
}

#company-container {
    position: relative; /* Make this the reference for absolute positioning */
}



#body-container {
    display: flex;
    height: 100vh; /* Full viewport height */
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#list-container {
    width: 50%;
    max-height: 100vh; /* Constrain height to viewport */
    overflow-y: auto; /* Enable vertical scrolling */
    padding: 20px;
    box-sizing: border-box;
    scrollbar-width: thin; /* Thin scrollbar */
    scrollbar-color: #888 #f1f1f1; /* Thumb color and track color */
   
}
/* Styling the scrollbar for WebKit browsers */
#list-container::-webkit-scrollbar {
    width: 8px; /* Width of the scrollbar */
}

#list-container::-webkit-scrollbar-track {
    background: #f1f1f1; /* Background of the scrollbar track */
}

#list-container::-webkit-scrollbar-thumb {
    background: #888; /* Colour of the scrollbar thumb */
    border-radius: 10px; /* Roundness of the scrollbar thumb */
}

#list-container::-webkit-scrollbar-thumb:hover {
    background: #555; /* Colour of the scrollbar thumb when hovered */
}

#map-container {
    flex: 1; /* Take up the remaining space */
    display: flex; /* Use flexbox for centering */
    align-items: center; /* Center vertically */
    justify-content: center; /* Center horizontally */
    height: 100%; /* Full height of the parent container */
    box-sizing: border-box; /* Include padding and border in element's total width and height */
}

#map-container iframe {
    width: 100%; /* Full width of the map container */
    height: 100%; /* Full height of the map container */
    border: 0; /* Remove default iframe border */
}
#company-container {
    margin-bottom: 20px; /* Space between entries */
}

#company-container h3 {
    margin: 0;
    font-size: 18px;
}

#company-container p {
    margin: 5px 0;
}

#contact-options-container a {
    margin-right: 10px;
    text-decoration: none;
    color: #007BFF;
}


/* form  */

/* Container Styling */
#contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    border: 2px solid #ccc;
    border-radius: 10px;
    background-color: #f9f9f9;
    animation: fadeIn 1s ease-in-out;
}

/* Label Styling */
#contact-form label {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
    display: block;
}

/* Input and Textarea Styling */
#contact-form input[type="text"],
#contact-form input[type="email"],
#contact-form input[type="tel"],
#contact-form input[type="datetime-local"],
#contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    animation: slideIn 0.5s ease-out;
}

/* Radio Button Styling */
#how, #when {
    margin-bottom: 15px;
}

#how .form-check, #when .form-check {
    margin-bottom: 10px;
}

/* Submit Button Styling */
#contact-form .btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

#contact-form .btn-primary:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

/* Modal Footer Button Styling */
.modal-footer .btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.modal-footer .btn-secondary:hover {
    background-color: #5a6268;
    transform: scale(1.05);
}

/* Visibility Toggle for Preferred Date/Time */
#preferredDateTimeInput {
    display: none;
}

/* Visibility for Telephone and Email Groups */
#telephoneGroup, #emailGroup {
    display: none;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

#modalCloseButton {
    background-color: transparent; /* Makes the button background transparent */
    border: none; /* Removes the border */
    font-size: 1.5rem; /* Increases the size of the "×" */
    color: #fff; /* Sets the colour of the "×" to white */
    position: absolute; /* Positions the button absolutely within the modal */
    top: 10px; /* Places the button 10px from the top */
    right: 10px; /* Places the button 10px from the right */
    cursor: pointer; /* Changes the cursor to a pointer when hovering */
    padding: 0; /* Removes padding */
}

#modalCloseButton:hover {
    color: #ccc; /* Changes colour on hover */
    transform: scale(1.1); /* Slightly enlarges the button on hover */
    transition: transform 0.3s ease, color 0.3s ease; /* Smooth transition for hover effect */
}
