@tailwind base;
@tailwind components;
@tailwind utilities;


@media (min-width: 1024px) {
    .accordion-menu {
    height: 43.9453vw;
    }

    .contact-info {
        max-width: 20%;
    }
}


@media (min-width: 1440pc) {
    .contact-info {
        max-width: auto;
    }
}




.accordion-button {
    cursor: pointer;
    font-size: 1rem;
    font-size: 1.17188vw;
    line-height: 1.36719vw;
    font-weight: bold;
    background-color: #F0EEE4; /* Example active state color */
    display: none;
}

.accordion-button.active {
    background-color: #a78e52; /* Example active state color */
}

@media (min-width: 768px) {
    .accordion-button {
        display: block;
    }
}


.accordion-panel {
    transition: max-width 0.1s;
    max-height: unset;
    max-width: 100%;
    flex: 1 1 100%;
    display: block;
    pointer-events: unset;
    height: 100%;
}

@media (min-width: 768px) {
    /* .accordion-panel {
        transition: max-width 0.3s;
        max-height: 0px;
        max-width: 0px;
        flex: 1 1 0px;
        pointer-events: none;
    } */
     .accordion-panel {
        transition: max-width 0.3s;
        max-width: 0; /* Start fully collapsed */
        max-height: 0; /* Start fully collapsed */
        overflow: hidden; /* Prevents content overflow */
        opacity: 0; /* Start hidden */
        pointer-events: none; /* Disable interaction */
        flex: 1 1 0px;
        pointer-events: none;
    }
}

/* .accordion-panel.active {
    transition: max-width 0.1s;
    max-height: unset;
    max-width: 100%;
    flex: 1 1 100%;
    display: block;
    pointer-events: unset;
    height: 100%;
} */

.accordion-panel.active {
    max-width: 100%; /* Set the maximum width to fit your content */
    max-height: 100%; /* Start fully collapsed */
    height: 100%!important;
    opacity: 1; /* Make it visible */
    pointer-events: auto; /* Enable interaction */
    flex: 1 1 100%;
    display: block;
    pointer-events: unset;
    transition: max-width 0.3s;
}

.accordion-panel-sub {
    opacity: 1;
    width: auto;
    visibility: visible;
}

@media (min-width: 768px) {
    /* .accordion-panel-sub {
        opacity: 0;
        width: auto;
        visibility: hidden;
    } */

    .accordion-panel-sub {
        display: none;
        opacity: 0;
        transition: opacity 0.3s 0.3s;
        visibility: hidden;
        height: 100%;
    }
}

/* .accordion-panel-sub.active {
    width: auto;
    transition: opacity 0.3s 0.3s;
    opacity: 1;
    visibility: visible;
    height: 100%;
} */

.accordion-panel-sub.active {
    display: flex;
    opacity: 1;
    transition: opacity 0.3s 0.3s;
    visibility: visible;
    height: 100%;
}

@media (min-width: 768px) {
    .accordion-panel-sub.first > .doctor-info {
        padding-right: 2.92969vw;
        padding-top: 2.92969vw;
        padding-bottom: 2.92969vw;
    }

    .accordion-panel-sub.next > .doctor-info {
        padding-left: 2.92969vw;
        padding-right: 2.92969vw;
        padding-top: 2.92969vw;
        padding-bottom: 2.92969vw;
    }
}


@media (min-width: 1024px) {
    .accordion-panel-sub.first > .doctor-info {
    padding-top: 0;
    padding-bottom: 0;
    }

    .accordion-panel-sub.next > .doctor-info {
    padding-top: 0;
    padding-bottom: 0;
    }
}

@media (min-width: 768px) {
    .doctor-profile-picture {
        max-height: 300px;
        margin-bottom: 0px;
    }

    .about-us-info-container {
        margin-top: 6rem;
    }
}


@media (min-width: 768px) and (max-width: 1024px) {
    .doctor-profile-picture img {
        max-height: 300px;
    }
    
}


.doctor-profile-picture {
    margin-bottom: 20px;
}


@media (min-width: 1024px) {
    .doctor-profile-picture {
        max-height: 100%;
    }
}



#counters {
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* This enables parallax effect */
    background-repeat: no-repeat;
}




/*Contact Form*/
/* Style the contact form container */
.custom-contact-form {
    max-width: 500px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Style all input fields */
.custom-contact-form input,
.custom-contact-form select,
.custom-contact-form textarea {
    width: 100%;
    border-width: 1px;
    border-style: solid;
    background-color: rgba(255, 255, 255, 0.25);
    color: rgb(167, 142, 82);
    transition: 200ms;
    appearance: none;
    font-family: Montserrat, sans-serif;
    font-weight: 500;
    border-color: rgb(167, 142, 82) !important;
    padding: 10px;
    border-radius: 5px;
}

.custom-contact-form p{
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Make First & Last Name fields appear on the same row */
.custom-contact-form .name-fields p{
    flex-direction: row;
}

/* Adjust spacing for textarea */
.custom-contact-form textarea {
    min-height: 100px;
}

/* Style the submit button */
.custom-contact-form input[type="submit"] {
    background: rgb(167, 142, 82);
    color: white;
    font-weight: bold;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s ease-in-out;
}

.custom-contact-form input[type="submit"]:hover {
    background: rgba(167, 142, 82, 0.8);
}

/* Style the checkbox and terms text */
.terms {
    display: none;
    font-size: 14px;
    color: rgb(167, 142, 82);
}

.terms input {
    margin-right: 5px;
}

.terms p {
    display: flex;
    flex-direction: row;
}



/* Apply additional styles for large screens (1024px and above) */
@media (min-width: 1024px) {
    .custom-contact-form input,
    .custom-contact-form select,
    .custom-contact-form textarea {
        height: 2.92969vw;
        border-radius: 1.46484vw;
        padding-left: 1.46484vw;
        padding-right: 1.46484vw;
        font-size: 0.97656vw;
        line-height: 1.75781vw;
    }
}


@media (min-width: 768px) and (max-width: 1023.95px) {
    .custom-contact-form input,
    .custom-contact-form select,
    .custom-contact-form textarea {
        height: 3.90625vw;
        border-radius: 1.95313vw;
        padding-left: 1.95313vw;
        padding-right: 1.95313vw;
        font-size: 1.30208vw;
        line-height: 2.34375vw;
    }
}



@media  (min-width: 320px) and (max-width: 767.95px) {
    .custom-contact-form input,
    .custom-contact-form select,
    .custom-contact-form textarea {
        height: 9.375vw;
        border-radius: 4.6875vw;
        padding-left: 4.6875vw;
        padding-right: 4.6875vw;
        font-size: 3.125vw;
        line-height: 5.625vw;
    }
}

.dWrnRy {
    -webkit-box-align: center;
    align-items: center;
    width: 100%;
    display: flex;
}

.kBxUJI {
    flex-shrink: 0;
    position: relative;
}


@media (min-width: 1024px) {
    .kBxUJI::before {
        width: calc(42.6758vw);
    }
}

@media (min-width: 768px) {
    .kBxUJI::before {
        bottom: 50%;
        left: 0px;
        top: 50%;
        transform: translateY(-50%);
        width: 50vw;
    }
}


.ugLEh {
    background: rgb(0, 0, 0);
    height: 5px;
    width: 56%;
}

.contact-us-bottom-img {
    width: 42.67578vw; /* Default width for screens 1024px and larger */
}

@media (max-width: 1023.95px) {
    .contact-us-bottom-img {
        width: 45.44271vw;
    }
}

@media (max-width: 767.95px) {
    .contact-us-bottom-img {
        width: 82.5vw;
    }
}
