/* Modal Container */
.modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    outline: 0;
    background-color: rgba(0, 0, 0, 0.5);
    transition: opacity 0.15s linear;
}

/* Modal Dialog */
.modal-dialog {
    position: relative;
    margin: auto;
    pointer-events: none;
    max-width: 500px;
    width: 100%;
    min-height: calc(100% - 1rem);
    display: flex;
    align-items: center;
}

/* Modal Content */
.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 0.3rem;
    outline: 0;
    box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
}

/* Modal Header */
.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 2rem 1rem;
    border-bottom: 1px solid #dee2e6;
    border-top-left-radius: 0.3rem;
    border-top-right-radius: 0.3rem;
}

/* Modal Title */
.modal-title {
    margin-bottom: 0;
    line-height: 1.5;
    font-size: 2rem;
}

/* Close Button */
.modal-header .btn-close {
    padding: 0.5rem;
    background: transparent;
    border: 0;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Modal Body */
.modal-body {
    position: relative;
    flex: 1 1 auto;
    padding: 2rem;
}

/* Modal Footer */
.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0.75rem;
    border-top: 1px solid #dee2e6;
    border-bottom-right-radius: 0.3rem;
    border-bottom-left-radius: 0.3rem;
}

/* Button styles */
.modal-footer .btn {
    margin-left: 5px;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.modal-footer .btn-primary {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}

.modal-footer .btn-secondary {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
}

/* Utility for showing modal */
.modal.show {
    display: block;
    opacity: 1;
}

.services-item .object-fit,
.services-item::before,
.btn {
    border-radius: 3px;
}

input.form-control {
    padding: 1.3rem 2rem !important;
}

.social-icons {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.social-icons a {
    opacity: 0.8;
    background-color: #003c64;
    color: white;
    text-align: center;
    padding: 26px;
    border-radius: 50%;
    font-size: 25px;
    text-decoration: none;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    margin-right: 10px;
}

.social-icons a:hover {
    background-color: #09598f;
}

.carousel {
    width: 90%;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    align-items: center;
    /* Center logos vertically */
    width: calc((150px * 13) + (15px * 12));
    animation: scroll 40s linear infinite;
    /* Adjust this duration for speed */
}

.carousel .logo {
    min-width: 150px;
    /* Set a consistent width for the logos */
    height: 100px;
    /* Ensure all logos are uniformly centered */
    display: flex;
    justify-content: center;
    /* Center logos horizontally */
    align-items: center;
    /* Center logos vertically */
    margin: 0 15px;
    /* Add margin for spacing */
}

.carousel .logo img {
    max-height: 100px;
    /* Restrict logo height */
    max-width: 150px;
    /* Restrict logo width */
    height: auto;
    /* Ensure logos retain their aspect ratio */
    width: auto;
    /* Ensure logos retain their aspect ratio */
}

@keyframes scroll {
    0% {
        transform: translateX(0);
        /* Start just outside the right */
    }

    100% {
        transform: translateX(-100%);
        /* End just outside the middle */
    }
}

.error {
    color: red;
    font-size: 14px;
    margin: 0;
}

.required {
    color: red;
    position: absolute;
    right: 10px;
    top: 25px;
    transform: translateY(-50%);
}

.form-group.relative {
    position: relative;
}

.close:not(:disabled):not(.disabled) {
    cursor: pointer;
}

.modal-header .close {
    padding: 1rem;
    margin: -1rem -1rem -1rem auto;
}
button.close {
    padding: 0;
    background-color: transparent;
    border: 0;
    -webkit-appearance: none;
}
.close {
    float: right;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    color: #000;
    text-shadow: 0 1px 0 #fff;
    opacity: .5;
}

#formModal .req {
    color: red;
}

@media (max-width: 767px) {
    .about-us-section .bg-image .object-fit {
        margin-top: -150px;
    }
    .modal-dialog,
    .modal-content {
        height: 95%;
    }

    .modal-body {
        max-height: calc(100% - 80px);
        overflow-y: scroll;
    }

    #contactFormModal .mb-3 {
        margin-bottom: 0.7rem !important;
    }
}