/* =========================================
   Patient Rating Card
========================================= */

.patient-rating-card {
    background: #ffffff;

    border-radius: 20px;

    padding: 24px 25px 25px;

    border: 1px solid #eeeeee;

    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.10);
}


/* =========================================
   Header
========================================= */

.patient-rating-header {
    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 35px;
}


.patient-rating-number {
    width: 52px;
    height: 52px;

    min-width: 52px;

    border-radius: 50%;

    background: #167b7c;

    color: #ffffff;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 25px;

    font-weight: 700;
}


.patient-rating-header h2 {
    margin: 0;

    color: #167174;

    font-size: 26px;

    font-weight: 700;

    line-height: 1.2;
}


/* =========================================
   Overall Rating
========================================= */

.overall-rating {
    display: flex;

    align-items: center;

    gap: 35px;

    margin-bottom: 35px;
}


/* Rating Number */

.rating-score {
    color: #172d63;

    font-size: 72px;

    line-height: 1;

    font-weight: 500;

    letter-spacing: -3px;
}


/* Rating Summary */

.rating-summary {
    padding-top: 5px;
}


.rating-stars {
    display: flex;

    gap: 3px;

    margin-bottom: 8px;
}


.rating-stars i {
    color: #eba900;

    font-size: 29px;
}


.total-reviews {
    color: #101c3d;

    font-size: 18px;

    white-space: nowrap;
}


/* =========================================
   Rating Breakdown
========================================= */

.rating-breakdown {
    width: 100%;
}


/* Individual Row */

.rating-row {
    display: flex;

    align-items: center;

    width: 100%;

    margin-bottom: 16px;

    min-height: 34px;
}


/* Number */

.rating-label {
    width: 27px;

    min-width: 27px;

    color: #172d63;

    font-size: 19px;

    font-weight: 500;

    text-align: left;
}


/* Small Star */

.rating-small-star {
    width: 35px;

    min-width: 35px;

    text-align: center;
}


.rating-small-star i {
    color: #eba900;

    font-size: 22px;
}


/* =========================================
   Progress Background
========================================= */

.rating-progress {
    flex: 1;

    height: 29px;

    background: #e9eaed;

    border-radius: 20px;

    overflow: hidden;

    margin-left: 5px;

    margin-right: 20px;
}


/* Progress */

.rating-progress-bar {
    height: 100%;

    border-radius: 20px 0 0 20px;

    min-width: 7px;

    transition: width 0.4s ease;
}


/* 5 Star */

.rating-five {
    background: #129AF7;
}


/* 4 Star */

.rating-four {
    background: #129AF7;
}


/* 3 Star */

.rating-three {
    background: #129AF7;
}


/* 2 Star */

.rating-two {
    background: #d52b2b;
}


/* 1 Star */

.rating-one {
    background: #d52b2b;
}


/* Count */

.rating-count {
    width: 35px;

    min-width: 35px;

    color: #172d63;

    font-size: 19px;

    font-weight: 500;

    text-align: left;
}


/* =========================================
   Write Review
========================================= */

.write-review-wrapper {
    margin-top: 45px;

    text-align: center;
}


.write-review-btn {
    width: 90%;

    min-height: 60px;

    display: flex;

    align-items: center;

    justify-content: center;

    margin: 0 auto;

    border: 2px solid #167174;

    border-radius: 14px;

    background: #ffffff;

    color: #167174;

    text-decoration: none;

    font-size: 21px;

    font-weight: 600;

    transition: all 0.25s ease;
}


.write-review-btn:hover {
    background: #167174;

    color: #ffffff;

    transform: translateY(-2px);

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
}


/* =========================================
   Desktop - col-md-4
========================================= */

@media (min-width: 992px) {

    .patient-rating-card {
        padding: 25px 20px;
    }

    .patient-rating-header {
        gap: 9px;

        margin-bottom: 28px;
    }

    .patient-rating-number {
        width: 46px;
        height: 46px;

        min-width: 46px;

        font-size: 22px;
    }

    .patient-rating-header h2 {
        font-size: 21px;
    }

    .overall-rating {
        gap: 20px;

        margin-bottom: 28px;
    }

    .rating-score {
        font-size: 58px;
    }

    .rating-stars {
        gap: 1px;
    }

    .rating-stars i {
        font-size: 22px;
    }

    .total-reviews {
        font-size: 14px;
    }

    .rating-row {
        margin-bottom: 12px;
    }

    .rating-label {
        width: 23px;
        min-width: 23px;

        font-size: 16px;
    }

    .rating-small-star {
        width: 28px;
        min-width: 28px;
    }

    .rating-small-star i {
        font-size: 18px;
    }

    .rating-progress {
        height: 24px;

        margin-right: 12px;
    }

    .rating-count {
        width: 28px;
        min-width: 28px;

        font-size: 16px;
    }

    .write-review-wrapper {
        margin-top: 35px;
    }

    .write-review-btn {
        min-height: 52px;

        width: 90%;

        font-size: 18px;
    }
}


/* =========================================
   Mobile
========================================= */

@media (max-width: 767.98px) {

    .patient-rating-card {
        padding: 20px 17px;

        border-radius: 18px;
    }

    .patient-rating-header {
        gap: 8px;

        margin-bottom: 28px;
    }

    .patient-rating-number {
        width: 42px;
        height: 42px;

        min-width: 42px;

        font-size: 20px;
    }

    .patient-rating-header h2 {
        font-size: 19px;
    }

    .overall-rating {
        gap: 20px;

        margin-bottom: 28px;
    }

    .rating-score {
        font-size: 55px;
    }

    .rating-stars {
        gap: 2px;
    }

    .rating-stars i {
        font-size: 21px;
    }

    .total-reviews {
        font-size: 14px;
    }

    .rating-row {
        margin-bottom: 12px;
    }

    .rating-label {
        width: 23px;
        min-width: 23px;

        font-size: 16px;
    }

    .rating-small-star {
        width: 27px;
        min-width: 27px;
    }

    .rating-small-star i {
        font-size: 18px;
    }

    .rating-progress {
        height: 22px;

        margin-left: 3px;

        margin-right: 12px;
    }

    .rating-count {
        width: 25px;
        min-width: 25px;

        font-size: 16px;
    }

    .write-review-wrapper {
        margin-top: 30px;
    }

    .write-review-btn {
        width: 90%;

        min-height: 50px;

        font-size: 17px;
    }
}


/* =========================================
   Small Mobile
========================================= */

@media (max-width: 400px) {

    .patient-rating-card {
        padding: 15px 12px;
    }

    .patient-rating-header {
        margin-bottom: 22px;
    }

    .patient-rating-number {
        width: 37px;
        height: 37px;

        min-width: 37px;

        font-size: 18px;
    }

    .patient-rating-header h2 {
        font-size: 17px;
    }

    .overall-rating {
        gap: 14px;
    }

    .rating-score {
        font-size: 48px;
    }

    .rating-stars i {
        font-size: 18px;
    }

    .total-reviews {
        font-size: 12px;
    }

    .rating-row {
        margin-bottom: 10px;
    }

    .rating-label {
        width: 20px;
        min-width: 20px;

        font-size: 14px;
    }

    .rating-small-star {
        width: 24px;
        min-width: 24px;
    }

    .rating-small-star i {
        font-size: 16px;
    }

    .rating-progress {
        height: 19px;

        margin-right: 9px;
    }

    .rating-count {
        width: 23px;
        min-width: 23px;

        font-size: 14px;
    }

    .write-review-wrapper {
        margin-top: 25px;
    }

    .write-review-btn {
        min-height: 46px;

        font-size: 15px;
    }
}

/*Form*/

/* =========================================
   Review Modal
========================================= */

.review-modal-dialog {
    max-width: 415px;
    margin-top: 30px;
    margin-bottom: 30px;
}

.review-modal-content {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.25);
    position: relative;
}


/* =========================================
   Close Button
========================================= */

.review-modal-close {
    position: absolute;

    top: 15px;
    right: 15px;

    z-index: 10;

    width: 30px;
    height: 30px;

    border: none;
    background: transparent;

    color: #4b4b4b;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 15px;

    cursor: pointer;
}

.review-modal-close:hover {
    color: #111111;
}


/* =========================================
   Modal Body
========================================= */

.review-modal-body {
    padding: 30px 24px 22px;
}


/* =========================================
   Doctor Information
========================================= */

.review-doctor-info {
    text-align: center;
    margin-bottom: 18px;
}

.review-doctor-image {
    width: 48px;
    height: 48px;

    margin: 0 auto 8px;

    border-radius: 50%;

    overflow: hidden;

    background: #f2f2f2;
}

.review-doctor-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.review-doctor-info h4 {
    margin: 0;

    color: #182452;

    font-size: 15px;

    font-weight: 700;

    line-height: 1.4;
}

.review-doctor-info p {
    margin: 2px 0 0;

    color: #777777;

    font-size: 11px;
}

.review-title-line {
    width: 35px;
    height: 3px;

    margin: 10px auto 0;

    background: #c9bfff;

    border-radius: 5px;
}


/* =========================================
   Form Group
========================================= */

.review-form-group {
    margin-bottom: 0;
}

.review-label {
    display: block;

    text-align: center;

    color: #64728a;

    font-size: 11px;

    margin-bottom: 5px;
}

.review-label span {
    color: #e33434;
}


/* =========================================
   Star Rating
========================================= */

.rating-stars-input {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    height: 54px;

    border: 1px solid #d7dce4;

    border-radius: 9px;
}


/* Radio Hide */
.rating-stars-input input {
    display: none;
}


/* Star */
.rating-stars-input label {
    cursor: pointer;

    color: #cfd5df;

    font-size: 25px;

    line-height: 1;

    transition: all 0.2s ease;
}



/*
   Selected rating-এর আগের সব star
   JavaScript দিয়ে highlight হবে
*/
.rating-stars-input label.active {
    color: #f1b000;
}


/* Selected star একটু সুন্দর */
.rating-stars-input label.active i {
    animation: starSelected 0.15s ease;
}


@keyframes starSelected {

    0% {
        transform: scale(0.8);
    }

    100% {
        transform: scale(1);
    }

}


/* Hover */

.rating-stars-input label:hover,
.rating-stars-input label:hover ~ label {
    color: #f1b000;
}


/* Selected */

.rating-stars-input input:checked + label {
    color: #f1b000;
}


/* =========================================
   Textarea
========================================= */

.review-textarea-wrapper {
    position: relative;
}

.review-textarea {
    border: 1px solid #d7dce4;

    border-radius: 0 0 8px 8px;

    padding: 10px;

    color: #555555;

    font-size: 11px;

    line-height: 1.45;

    resize: vertical;

    min-height: 88px;

    box-shadow: none !important;
}

.review-textarea:focus {
    border-color: #9ab5d5;
}

.review-textarea::placeholder {
    color: #68778c;

    opacity: 1;
}

.review-character-count {
    display: flex;

    justify-content: flex-end;

    gap: 4px;

    color: #7b8491;

    font-size: 8px;

    margin-top: -16px;

    padding-right: 7px;

    position: relative;

    z-index: 2;
}

#reviewCharCount {
    color: #777777;
}


/* =========================================
   Email
========================================= */

.email-group {
    margin-top: 22px;
}

.email-label {
    text-align: left;

    color: #3d4654;

    font-weight: 500;

    margin-bottom: 5px;
}

.review-input {
    height: 34px;

    border: 1px solid #d9e0e9;

    border-radius: 5px;

    font-size: 11px;

    box-shadow: none !important;
}

.review-input:focus {
    border-color: #8ca9c7;
}

.review-input::placeholder {
    color: #7b8796;
}

.email-group small {
    display: block;

    margin-top: 4px;

    color: #7c8795;

    font-size: 8px;
}


/* =========================================
   Cloudflare
========================================= */

.turnstile-wrapper {
    display: flex;

    justify-content: center;

    margin: 17px 0;
}

.fake-turnstile {
    width: 215px;
    height: 47px;

    border: 1px solid #d7d7d7;

    background: #fafafa;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 7px 9px;

    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.turnstile-success {
    display: flex;

    align-items: center;

    gap: 6px;

    font-size: 10px;

    color: #333333;
}

.turnstile-success i {
    color: #199447;

    font-size: 22px;
}

.turnstile-cloudflare {
    text-align: center;

    font-size: 7px;

    color: #222222;
}

.turnstile-cloudflare strong {
    display: block;

    font-size: 8px;
    letter-spacing: 1px;
}

.turnstile-cloudflare small {
    font-size: 6px;
}


/* =========================================
   Terms
========================================= */

.review-terms {
    text-align: center;

    color: #7a8490;

    font-size: 12px;

    line-height: 1.5;

    margin: 0 5px 20px;
}

.review-terms a {
    color: #1788c9;

    text-decoration: underline;
}


/* =========================================
   Submit Button
========================================= */

.submit-review-btn {
    width: 100%;

    height: 36px;

    border: none;

    border-radius: 5px;

    background: #b7dfe1;

    color: #ffffff;

    font-size: 11px;

    font-weight: 600;

    cursor: not-allowed;

    transition: all 0.2s ease;
}

.submit-review-btn:not(:disabled) {
    background: #11767a;

    cursor: pointer;
}

.submit-review-btn:not(:disabled):hover {
    background: #0d6265;
}


/* =========================================
   Mobile
========================================= */

@media (max-width: 575.98px) {

    .review-modal-dialog {
        max-width: calc(100% - 24px);

        margin: 12px auto;
    }

    .review-modal-body {
        padding: 25px 18px 18px;
    }

    .review-doctor-info h4 {
        font-size: 14px;
    }

    .rating-stars-input {
        gap: 10px;
    }

    .rating-stars-input label {
        font-size: 23px;
    }

    .review-textarea {
        font-size: 10px;
    }
}

/*FAQ*/
/* =========================================
   FAQ Card
========================================= */

.faq-card {
    width: 100%;

    background: #ffffff;

    border: 1px solid #e5e8ed;

    border-radius: 12px;

    overflow: hidden;

    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}


/* =========================================
   FAQ Header
========================================= */

.faq-header {
    display: flex;

    align-items: center;

    gap: 6px;

    padding: 9px 10px 8px;

    background: #ffffff;
}


.faq-number {
    width: 24px;
    height: 24px;

    min-width: 24px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: #167b7c;

    color: #ffffff;

    font-size: 12px;

    font-weight: 700;
}


.faq-header h3 {
    margin: 0;

    color: #176f72;

    font-size: 14px;

    font-weight: 700;

    line-height: 1.2;
}


/* =========================================
   FAQ Item
========================================= */

.faq-item {
    border-top: 1px solid #e5e8ed;
}


/* =========================================
   Question
========================================= */

.faq-question {
    width: 100%;

    min-height: 39px;

    padding: 8px 10px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 8px;

    border: none;

    background: #ffffff;

    color: #18264d;

    text-align: left;

    font-size: 15px;

    font-weight: 600;

    line-height: 1.35;

    cursor: pointer;
}


.faq-question span {
    flex: 1;

    min-width: 0;
}


.faq-question i {
    flex-shrink: 0;

    color: #66748b;

    font-size: 11px;
}


/* Hover */

.faq-question:hover {
    background: #f8fbfb;

    color: #126f72;
}


/* =========================================
   Answer
========================================= */

.faq-answer {
    display: none;

    padding: 0 12px 10px;

    background: #ffffff;

    border-top: 1px solid #f0f1f3;
}


.faq-answer p {
    margin: 7px 0 0;

    color: #000;

    font-size: 13px;

    line-height: 1.55;
}


/* =========================================
   Active FAQ
========================================= */

.faq-item.active .faq-answer {
    display: block;
}


.faq-item.active .faq-question {
    color: #176f72;
}


.faq-item.active .faq-question i {
    color: #176f72;
}