/* Stage 57 - Doctor reviews */
.doctor-review-section {
    padding: 26px;
    border: 1px solid rgba(22, 79, 137, .12);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(16, 62, 108, .08);
}

.doctor-review-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-bottom: 22px;
}

.doctor-review-heading h2 {
    margin: 6px 0 0;
    color: #12395f;
    font-weight: 900;
}

.review-eyebrow {
    color: #1770d2;
    font-size: .82rem;
    font-weight: 900;
}

.doctor-rating-summary {
    min-width: 260px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, #f8fbff, #eef6ff);
    border: 1px solid #dce9f7;
}

.rating-number {
    min-width: 62px;
    color: #12395f;
    font-size: 2.1rem;
    font-weight: 1000;
    line-height: 1;
}

.review-stars {
    direction: ltr;
    display: inline-flex;
    gap: 2px;
    color: #cdd8e3;
    font-size: 1.08rem;
}

.review-stars.review-stars-lg {
    font-size: 1.35rem;
}

.review-stars span.is-filled {
    color: #f4b81c;
    text-shadow: 0 3px 10px rgba(244, 184, 28, .25);
}

.doctor-review-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.review-card,
.review-manage-card {
    padding: 18px;
    border: 1px solid #e2ebf4;
    border-radius: 18px;
    background: #fff;
}

.review-card {
    box-shadow: 0 10px 26px rgba(17, 67, 112, .05);
}

.review-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.review-card-head strong,
.review-card-head small {
    display: block;
}

.review-card-head strong {
    color: #12395f;
    font-weight: 900;
}

.review-card-head small {
    margin-top: 4px;
    color: #7b8da0;
}

.review-card p,
.review-manage-card p {
    margin: 14px 0 0;
    color: #536b82;
    line-height: 2;
    white-space: pre-line;
}

.review-callout {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px dashed #d5e1ed;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.review-callout span {
    color: #71869a;
    font-size: .86rem;
}

.review-empty {
    padding: 24px;
    border: 1px dashed #c9d9e8;
    border-radius: 18px;
    background: #f8fbfe;
    color: #71869a;
    text-align: center;
}

.review-public-filter {
    padding: 18px;
    border: 1px solid #e0eaf4;
    border-radius: 18px;
    background: #fff;
}

.review-user-layout {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: 24px;
    align-items: start;
}

.star-rating-input {
    direction: ltr;
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
}

.star-rating-input input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.star-rating-input label {
    cursor: pointer;
    color: #cbd6e1;
    font-size: 2rem;
    line-height: 1;
    transition: transform .15s ease, color .15s ease;
}

.star-rating-input label:hover,
.star-rating-input label:hover ~ label,
.star-rating-input input:checked ~ label {
    color: #f4b81c;
}

.star-rating-input label:hover {
    transform: scale(1.1);
}

.review-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 900;
}

.review-status-pending {
    color: #8a5b00;
    background: #fff3cd;
}

.review-status-approved {
    color: #0d6b3d;
    background: #dcfce7;
}

.review-status-rejected {
    color: #a42323;
    background: #fee2e2;
}

.review-pending-counter {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 16px;
    background: #fff8e2;
    color: #805900;
}

.review-pending-counter strong {
    font-size: 1.55rem;
    line-height: 1;
}

.review-rejection-reason {
    padding: 10px 12px;
    border-radius: 12px;
    color: #9b2d2d;
    background: #fff0f0;
    font-size: .85rem;
}

.doctor-review-dashboard {
    max-width: 440px;
}

@media (max-width: 992px) {
    .doctor-review-grid,
    .review-user-layout {
        grid-template-columns: 1fr;
    }

    .doctor-review-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .doctor-rating-summary {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 576px) {
    .doctor-review-section,
    .review-card,
    .review-manage-card {
        padding: 16px;
    }

    .review-card-head {
        flex-direction: column;
    }
}
