/* ====== Provider Type Selection Modal === */

.provider-type-modal .modal-dialog {
    margin: 0 auto;
}


/* Modal Dialog */
.provider-modal-dialog {
    max-width: 530px;
    width: calc(100% - 30px);

    margin: 10vh auto 0;

    display: flex;
    align-items: center;
    min-height: auto;
    margin-top: 20px !important;
}


/* Modal Content */
.provider-modal-content {
    position: relative;

    background: #ffffff;

    border: none;
    border-radius: 28px;

    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);

    overflow: hidden;
}


/* Modal Body */
.provider-modal-body {
    padding: 40px 40px 40px 40px;
}


/* Title */
.provider-modal-title {
    margin: 0;
    padding-right: 45px;

    font-size: 32px;
    font-weight: 500;

    line-height: 1.25;

    color: #111111;
}


/* Subtitle */
.provider-modal-subtitle {
    margin: 6px 0 32px;

    font-size: 21px;
    font-weight: 400;

    line-height: 1.3;

    color: #666666;
}


/* Close Button */
.provider-modal-close {
    position: absolute;

    top: 28px;
    right: 28px;

    width: 38px;
    height: 38px;

    padding: 0;

    border: none;
    background: transparent;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #666666;

    font-size: 24px;

    cursor: pointer;

    z-index: 10;

    transition: all 0.2s ease;
}


.provider-modal-close:hover {
    color: #222222;

    transform: scale(1.08);
}


.provider-modal-close i {
    line-height: 1;
}


/* Provider Button Grid */
.provider-type-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 20px;
}


/* Provider Buttons */
.provider-type-btn {
    min-height: 90px;

    padding: 15px 20px;

    border: 1px solid #d7d7d7;

    border-radius: 16px;

    background: #ffffff;

    color: #171717;

    font-size: 23px;
    font-weight: 400;

    text-align: center;

    cursor: pointer;

    transition: all 0.2s ease;
}


/* Hover */
.provider-type-btn:hover {
    border-color: #129AF7;

    background: #f7fbff;

    color: #129AF7;
}


/* Active / Selected */
.provider-type-btn.active {
    border-color: #129AF7;

    background: #129AF7;

    color: #ffffff;
}


/* ==========================================
   Modal Background Overlay
========================================== */

.provider-type-modal.show {
    background: rgba(0, 0, 0, 0.42);
}


/* ==========================================
   Mobile Responsive
========================================== */

@media (max-width: 767px) {

    .provider-modal-dialog {

        width: calc(100% - 20px);

        margin: 12vh auto 20px;
    }


    .provider-modal-content {
        border-radius: 24px;
    }


    .provider-modal-body {
        padding: 30px 22px 28px;
    }


    .provider-modal-title {
        font-size: 25px;

        padding-right: 40px;
    }


    .provider-modal-subtitle {
        font-size: 18px;

        margin-top: 5px;
        margin-bottom: 24px;
    }


    .provider-modal-close {
        top: 20px;
        right: 18px;

        width: 34px;
        height: 34px;

        font-size: 21px;
    }


    .provider-type-grid {
        gap: 14px;
    }


    .provider-type-btn {
        min-height: 72px;

        padding: 12px 8px;

        border-radius: 14px;

        font-size: 19px;
    }

}


/* Small Mobile */
@media (max-width: 400px) {

    .provider-modal-dialog {
        width: calc(100% - 16px);

        margin-top: 10vh;
    }


    .provider-modal-body {
        padding: 26px 18px 24px;
    }


    .provider-modal-title {
        font-size: 23px;
    }


    .provider-modal-subtitle {
        font-size: 17px;

        margin-bottom: 20px;
    }


    .provider-type-grid {
        gap: 10px;
    }


    .provider-type-btn {
        min-height: 66px;

        font-size: 17px;

        border-radius: 12px;
    }

}

/* ==========================================
   Practice Area Modal
========================================== */

.practice-area-modal {
    background: rgba(0, 0, 0, 0.55);
}


/* Modal Dialog */

.practice-area-modal-dialog {

    max-width: 820px;

    width: calc(100% - 30px);

    margin: 5vh auto;

}

/* Modal Content */

.practice-area-modal-content {

    position: relative;

    background: #ffffff;

    border: none;

    border-radius: 32px;

    overflow: hidden;

    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.20);
}


/* Modal Body */

.practice-area-modal-body {

    padding: 48px 70px 55px;

}


/* ==========================================
   Title
========================================== */

.practice-area-title {
    margin: 0 0 25px;
    padding-right: 60px;
    text-align: center;
    font-size: 30px;
    font-weight: 500;
    line-height: 1;
    color: #111111;
}


/* ==========================================
   Close Button
========================================== */

.practice-area-close {

    position: absolute;

    top: 28px;

    right: 30px;

    width: 70px;

    height: 70px;

    padding: 0;

    border: 3px solid #91c9c3;

    border-radius: 50%;

    background: #ffffff;

    color: #777777;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 34px;

    cursor: pointer;

    z-index: 20;

    box-shadow:
        0 0 0 5px rgba(145, 201, 195, 0.08);

    transition: all 0.2s ease;
}

.practice-area-option{
    /*min-height: 50px;*/
    padding: 5px 5px;
    border: 1px solid #d7d7d7;
    border-radius: 16px;
    background: #ffffff;
    color: #171717;
    font-size: 15px;
    font-weight: 400;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}


.practice-area-close:hover {

    color: #222222;

    border-color: #129AF7;

    transform: scale(1.04);
}


.practice-area-close i {

    line-height: 1;
}


/* ==========================================
   Practice Area Grid
========================================== */

.practice-area-grid {

    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    column-gap: 38px;

    row-gap: 24px;
}


/* ==========================================
   Practice Area Button
========================================== */

.practice-area-btn {

    width: 100%;

    min-height: 104px;

    padding: 15px 20px;

    border: none;

    border-radius: 22px;

    background: #c5e8e3;

    color: #000000;

    font-size: 27px;

    font-weight: 700;

    line-height: 1.12;

    text-align: center;

    display: flex;

    align-items: center;

    justify-content: center;

    cursor: pointer;

    transition: all 0.2s ease;
}


/* Hover */

.practice-area-btn:hover {

    background: #b4dfda;

    transform: translateY(-2px);

    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.08);
}


/* Active */

.practice-area-btn:active {

    transform: translateY(0);

}


/* ==========================================
   Mobile
========================================== */

@media (max-width: 767px) {

    .practice-area-modal-dialog {

        width: calc(100% - 16px);

        margin: 3vh auto;
    }


    .practice-area-modal-content {

        border-radius: 24px;
    }


    .practice-area-modal-body {

        padding: 32px 20px 35px;
    }


    .practice-area-title {
        margin-bottom: 30px;
        padding-right: 45px;
        font-size: 25px;
    }


    .practice-area-close {

        top: 18px;

        right: 17px;

        width: 52px;

        height: 52px;

        border-width: 2px;

        font-size: 25px;
    }


    .practice-area-grid {

        column-gap: 14px;

        row-gap: 14px;
    }


    .practice-area-btn {

        min-height: 78px;

        padding: 10px 8px;

        border-radius: 16px;

        font-size: 19px;

        line-height: 1.12;
    }

}


/* ==========================================
   Small Mobile
========================================== */

@media (max-width: 400px) {

    .practice-area-modal-dialog {

        width: calc(100% - 10px);

        margin: 2vh auto;
    }


    .practice-area-modal-body {

        padding: 28px 14px 28px;
    }


    .practice-area-title {
        margin-bottom: 25px;
        font-size: 20px;
    }


    .practice-area-close {

        top: 14px;

        right: 12px;

        width: 46px;

        height: 46px;

        font-size: 22px;
    }


    .practice-area-grid {

        column-gap: 10px;

        row-gap: 11px;
    }


    .practice-area-btn {

        min-height: 68px;

        padding: 8px 5px;

        border-radius: 13px;

        font-size: 16px;
    }

}

/* =========================================
   PRACTICE AREA MODAL
========================================= */

.practice-area-modal-dialog {
    max-width: 600px;
}


/* Modal Content */

.practice-area-modal-content {
    position: relative;
    border: 0;
    border-radius: 20px;
    overflow: hidden;
}


/* =========================================
   SCROLLABLE MODAL BODY
========================================= */

.practice-area-modal-body {

    /* Maximum height of modal content */
    max-height: 80vh;

    /* Vertical scrollbar when content is large */
    overflow-y: auto;

    /* Prevent horizontal scrollbar */
    overflow-x: hidden;

    /* Padding */
    padding: 30px 25px;

    /* Smooth scrolling */
    scroll-behavior: smooth;

    /* Prevent content from touching scrollbar */
    scrollbar-gutter: stable;
}


/* =========================================
   CUSTOM VERTICAL SCROLLBAR
========================================= */

.practice-area-modal-body::-webkit-scrollbar {
    width: 7px;
}

.practice-area-modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.practice-area-modal-body::-webkit-scrollbar-thumb {
    background: #1B489D;
    border-radius: 10px;
}

.practice-area-modal-body::-webkit-scrollbar-thumb:hover {
    background: #153b82;
}


/* Firefox */

.practice-area-modal-body {
    scrollbar-width: thin;
    scrollbar-color: #1B489D #f1f1f1;
}