/* Tilt effect for image */
/* .tilt-img {
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform;
    box-shadow: 0 8px 32px 0 rgba(16, 60, 88, 0.25);
    border-radius: 8px;
    cursor: pointer;
}

.tilt-img:hover {
    transform: perspective(800px) rotateY(10deg) scale(1.04) skewY(-1deg);
    box-shadow: 0 16px 48px 0 rgba(135, 113, 90, 0.25), 0 2px 8px 0 rgba(16, 60, 88, 0.10);
    z-index: 2;
}

@media (max-width: 991px) {
    .tilt-img:hover {
        transform: none;
        box-shadow: 0 4px 16px 0 rgba(16, 60, 88, 0.15);
    }
}

.tilt-img-left {
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform;
    transform: perspective(800px) rotateY(-10deg) scale(1.04) skewY(1deg);
    box-shadow: 0 8px 32px 0 rgba(16, 60, 88, 0.25);
    border-radius: 8px;
    cursor: pointer;
}
.tilt-img-left:hover {
    transform: perspective(800px) rotateY(-10deg) scale(1.04) skewY(1deg);
    box-shadow: 0 16px 48px 0 rgba(135, 113, 90, 0.25), 0 2px 8px 0 rgba(16, 60, 88, 0.10);
}
@media (max-width: 991px) {
    .tilt-img-left:hover {
        transform: none;
        box-shadow: 0 4px 16px 0 rgba(16, 60, 88, 0.15);
    }
} */

.navbar .navbar-brand img {
    max-height: 55px;
    width: auto;
}

.card-transparent {
    background: transparent;
    box-shadow: 3px 4px 2px 1px #131313a6 !important;
}

.btn-hero {
    padding: 7px;
    border-radius: 6px;
    text-transform: none;
    letter-spacing: 1px;
}

.legalito-hero-subs {
    background-color: #977b5d;
    color: #fff;
}

.legalito-gold {
    color: #87715a;
    font-weight: bold;
    /* font-family: 'Roboto'; */
    font-size: 16px;
    letter-spacing: 2.5px;
}

.legalito-blue {
    color: #103c58;
}

.legalito-font {
    font-size: 0.785rem
}

.nav-link {
    font-size: 0.75rem;
    text-transform: capitalize;
}

.img-overlay .img-hover {
    background-color: rgba(0, 0, 0, .8);
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    opacity: 0;
    transition: .5s ease
}

.img-overlay .img-text {
    color: #fff;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    width: 100%;
    height: 100%;
    text-align: center;
    transform: translateY(10px);
    transition: opacity .5s ease-in-out, transform .5s ease-in-out
}

.img-overlay:hover .img-hover,
.img-overlay:hover .img-text {
    opacity: 1
}

.img-legalito-overlay .img-hover,
.img-legalito-overlay .img-text {
    opacity: 1
}

.img-overlay:hover .img-text {
    transform: translateY(0)
}

.legalito-button {
    /* width: auto; */
    display: block;
    padding: 16px 50px;
    border-radius: 4px;
    border: solid 1px #87715a;
    background-color: #87715a;
    font-size: 16px;
}

.shortened {
    margin: auto;
}

.legalito-button-outline {
    width: auto;
    display: block;
    height: 50px;
    padding: 16px 50px;
    line-height: 16px;
    border-radius: 4px;
    border: solid 1px #87715a;
    color: #87715a;
    background-color: transparent;
    font-size: 16px;
}

.legalito-soon-btn{
    position: absolute !important;
    z-index: 999 !important;
    width: 250px;
    opacity: 1;
    color: #87715a !important;
    font-weight: bolder;
    font-size: 14px;
    letter-spacing: 1px;
    border-radius: 50px !important;
    padding: 25px 50px !important;
    text-transform: capitalize !important;
    background-color: #1b2e37 !important
}

.legalito-expertise {
    color: #374f5e;
    font-family: PlayfairDisplay;
    font-size: 2rem;
}

.has-bg-img {
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

.bg-img-legalito {
    background-image: url('../img/whyus_legalito.png');
}

.card {
    box-shadow: -2px 4px 2px 1px #131313a6;
}

.card-body li {
    font-size: 14px;
}

.card-img-overlay {
    background-color: #081e2cc4;
    color: #fff;
    display: block;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    width: 100%;
}

.card-img-ovelay-disabled {
    background-color: #081e2ce1;
}

.legalito-check {
    background: #977b5d;
    border-radius: 50%;
    padding: 3px;
    font-size: 14px;
    color: #263542;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.d-none{display:none !important;}

@media(min-width: 1200px) {
    .mx-xl-7 {
        margin-right: 4.5rem !important;
        margin-left: 4.5rem !important
    }

    .px-xl-7 {
        padding-right: 4.5rem !important;
        padding-left: 4.5rem !important
    }
}

@media (max-width:576px) {
    .d-sm-none {
        display: none !important
    }
}

@media (max-width:768px) {
    .d-md-none {
        display: none !important
    }
}

@media (min-width:992px) {
    .d-lg-none {
        display: none !important
    }
}

/* Custom styles for appointment booking system */
.calendar .btn {
    width: 40px;
    height: 40px;
    padding: 0;
    line-height: 40px;
    border-radius: 50%;
}

.time-slot-btn {
    margin: 5px;
    min-width: 80px;
}

.gap-2 {
    gap: 0.5rem !important;
}

.d-flex {
    display: flex !important;
}

.flex-wrap {
    flex-wrap: wrap !important;
}

.contact-form-container {
    min-height: max-content;
    margin: 0 auto;
    max-width: 1000px;
    box-shadow: -2px 4px 2px 1px #131313a6;
    border-radius: 0.75rem;
    overflow: hidden;
    background-color: #fff;
}

/* Custom Dropdown Styles */
.legalito-dropdown {
    position: relative;
    font-size: 0.75rem;
    text-transform: none;
    transition: all 0.3s ease;
}

.legalito-dropdown .dropdown-arrow {
    font-size: 16px;
    margin-left: 5px;
    transition: transform 0.3s ease;
    vertical-align: middle;
}

.legalito-dropdown[aria-expanded="true"] .dropdown-arrow {
    transform: rotate(180deg);
}

.legalito-dropdown-menu {
    background-color: #081e2c;
    border: none;
    border-radius: 4px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    padding: 0.1rem 0;
    margin-top: 0rem;
    min-width: 200px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    animation: dropdownFadeIn 0.3s ease forwards;
}

.legalito-dropdown-menu.show {
    opacity: 1;
    transform: translateY(0);
}

.legalito-dropdown-item {
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    font-size: 0.75rem;
    text-transform: none;
    transition: all 0.3s ease;
    position: relative;
    background: transparent;
}

.legalito-dropdown-item:hover {
    background-color: rgba(135, 113, 90, 0.1);
    color: #87715a;
    transform: translateX(0);
}

.legalito-dropdown-item.active {
    background-color: rgba(135, 113, 90, 0.2);
    color: #87715a;
    font-weight: 600;
}

.legalito-dropdown-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: #87715a;
}

.legalito-divider {
    border-top: 1px solid #87715a;
    margin: 0rem 0;
    opacity: 0.5;
}

/* Animation keyframes */
@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced dropdown hover effects - Simplified */
.dropdown .dropdown-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.dropdown.show .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown .dropdown-arrow {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.dropdown.show .dropdown-arrow {
    transform: rotate(180deg);
}

/* Smooth dropdown animations */
.dropdown-menu {
    animation-fill-mode: both;
}

@keyframes dropdownShow {
    0% {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes dropdownHide {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .dropdown .dropdown-menu {
        display: none;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }
    
    .dropdown.show .dropdown-menu {
        display: block;
    }
    
    .dropdown .dropdown-arrow {
        transform: none;
    }
    
    .dropdown.show .dropdown-arrow {
        transform: rotate(180deg);
    }
    
    .legalito-dropdown-menu {
        position: static;
        float: none;
        width: 100%;
        margin-top: 0;
        background-color: rgba(8, 30, 44, 0.95);
        border-radius: 0;
        box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2);
    }
    
    .legalito-dropdown-item:hover {
        transform: none;
        background-color: rgba(135, 113, 90, 0.15);
    }
}