#reviews.reviews-showcase {
    --review-bg: #ffffff;
    --review-card: #ffffff;
    --review-text: #0f172a;
    --review-muted: #667085;
    --review-soft: #f8fafc;
    --review-border: #e6ebf2;
    --review-star: #ffc400;
    --review-shadow: 0 16px 34px rgba(15, 23, 42, 0.09);
    --review-strong-shadow: 0 20px 46px rgba(15, 23, 42, 0.13);
    position: relative;
    overflow: hidden;
    contain: layout paint;
    content-visibility: auto;
    contain-intrinsic-size: 900px;
    scroll-margin-top: 96px;
    padding: 30px 30px 32px;
    background: var(--review-bg);
    color: var(--review-text);
    text-align: center;
}

#reviews.reviews-showcase::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(248, 250, 252, 0), rgba(248, 250, 252, 0.55) 52%, rgba(255, 255, 255, 0));
    opacity: 0.72;
}

.reviews-showcase > * {
    position: relative;
    z-index: 1;
}

.reviews-showcase-heading {
    display: grid;
    gap: 8px;
    max-width: 720px;
    margin: 0 auto 16px;
}

.reviews-showcase-heading h2 {
    margin: 0;
    color: var(--review-text);
    font-size: 32px;
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: 0;
}

.reviews-showcase-heading p {
    margin: 0;
    color: var(--review-muted);
    font-size: 15px;
    line-height: 1.55;
}

.reviews-rating-summary {
    display: grid;
    justify-items: center;
    gap: 6px;
    margin: 0 auto 22px;
}

.reviews-average-line {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
    direction: ltr;
    unicode-bidi: isolate;
    line-height: 1;
}

.reviews-average-line strong {
    color: var(--review-text);
    font-size: 46px;
    font-weight: 950;
    letter-spacing: 0;
}

.reviews-average-line span {
    color: var(--review-muted);
    font-size: 25px;
    font-weight: 850;
}

.review-stars {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    direction: ltr;
    color: var(--review-star);
}

.review-star-glyph {
    display: inline-block;
    color: rgba(148, 163, 184, 0.38);
    line-height: 1;
    transform-origin: center;
}

.review-star-glyph.is-filled {
    color: var(--review-star);
}

.review-stars-large .review-star-glyph {
    font-size: 26px;
}

.reviews-rating-summary p {
    margin: 0;
    color: var(--review-muted);
    font-size: 14px;
    line-height: 1.45;
}

.reviews-carousel {
    display: grid;
    gap: 14px;
    max-width: 720px;
    margin: 0 auto;
}

#reviews.reviews-showcase .review-slider-container {
    position: relative;
    display: block;
    min-height: 190px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    text-align: start;
}

#reviews.reviews-showcase .review-showcase-card {
    display: grid;
    align-content: center;
    box-sizing: border-box;
    width: min(680px, 100%);
    min-height: 190px;
    margin: 0 auto;
    padding: 22px 28px;
    border: 1px solid var(--review-border);
    border-radius: 8px;
    background: var(--review-card);
    color: var(--review-text);
    box-shadow: var(--review-shadow);
    animation: reviewCardIn 430ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.review-showcase-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--review-strong-shadow);
}

.review-card-top {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    margin-bottom: 14px;
}

.review-avatar {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background:
        linear-gradient(135deg, rgba(17, 24, 39, 0.94), rgba(72, 85, 99, 0.92));
    color: #ffffff;
    font-size: 17px;
    font-weight: 950;
    border: 2px solid rgba(255, 255, 255, 0.78);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.16);
}

.review-card-person {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.review-card-person h4 {
    margin: 0;
    color: var(--review-text);
    font-size: 18px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

#reviews.reviews-showcase .review-slide .stars,
.review-card-person .review-stars {
    justify-content: flex-start;
}

.review-card-person .review-star-glyph {
    font-size: 21px;
}

.review-date {
    color: var(--review-muted);
    font-size: 13px;
    font-weight: 760;
    line-height: 1.35;
}

.review-card-headline {
    margin: 0 0 8px;
    color: var(--review-text);
    font-size: 16px;
    line-height: 1.35;
    font-weight: 900;
}

#reviews.reviews-showcase .review-quote {
    margin: 0;
    color: var(--review-muted);
    color: color-mix(in srgb, var(--review-text) 78%, var(--review-muted));
    font-size: 16px;
    line-height: 1.65;
    font-style: italic;
    font-weight: 650;
    overflow-wrap: anywhere;
}

.reviews-empty-state {
    min-height: 180px;
    display: grid;
    place-items: center;
    padding: 28px;
    border: 1px dashed var(--review-border);
    border-radius: 8px;
    color: var(--review-muted);
    background: var(--review-soft);
    font-weight: 850;
}

.reviews-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    direction: ltr;
}

.reviews-arrow {
    width: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--review-border);
    border-radius: 50%;
    background: var(--review-card);
    color: var(--review-text);
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease, opacity 180ms ease;
}

.reviews-arrow:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.16);
}

.reviews-arrow:active {
    transform: scale(0.95);
}

.reviews-arrow:disabled {
    cursor: default;
    opacity: 0.35;
    transform: none;
    box-shadow: none;
}

.reviews-arrow .material-symbols-outlined {
    direction: ltr;
    font-size: 24px;
    line-height: 1;
    unicode-bidi: isolate;
}

.reviews-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 88px;
    min-height: 22px;
}

.reviews-dot {
    width: 9px;
    height: 9px;
    border: 0;
    border-radius: 999px;
    padding: 0;
    background: rgba(148, 163, 184, 0.42);
    cursor: pointer;
    transition: width 260ms cubic-bezier(0.22, 1, 0.36, 1), background 180ms ease, transform 180ms ease;
}

.reviews-dot:hover {
    transform: translateY(-1px);
    background: rgba(15, 23, 42, 0.58);
}

.reviews-dot.is-active {
    width: 34px;
    background: var(--review-text);
}

#reviews.reviews-showcase .review-form-card {
    max-width: 520px;
    margin: 18px auto 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    text-align: start;
}

.review-form-toggle,
.review-submit-btn,
.review-cancel-btn {
    width: 100%;
    min-height: 56px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 0;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease, opacity 180ms ease;
}

.review-form-toggle,
.review-submit-btn {
    border: 0;
    background: #000000;
    color: #ffffff;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.18);
}

.review-form-toggle:hover,
.review-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 46px rgba(15, 23, 42, 0.22);
}

.review-form-toggle:active,
.review-submit-btn:active,
.review-cancel-btn:active {
    transform: scale(0.98);
}

.review-form-panel {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(14px) scale(0.98);
    pointer-events: none;
    transition: max-height 380ms cubic-bezier(0.22, 1, 0.36, 1), opacity 240ms ease, transform 280ms ease, margin 240ms ease;
}

.review-form-card.is-open .review-form-toggle {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
    pointer-events: none;
}

.review-form-card.is-open .review-form-panel {
    max-height: 640px;
    opacity: 1;
    margin-top: -56px;
    padding: 26px;
    border: 1px solid var(--review-border);
    border-radius: 8px;
    background: var(--review-card);
    box-shadow: var(--review-strong-shadow);
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.review-form-panel h3 {
    margin: 0 0 20px;
    color: var(--review-text);
    font-size: 18px;
    line-height: 1.3;
    font-weight: 950;
    text-align: start;
}

.review-field-label {
    display: block;
    margin: 18px 0 8px;
    color: var(--review-text);
    font-size: 14px;
    font-weight: 900;
    line-height: 1.35;
}

#reviews.reviews-showcase .star-rating {
    display: inline-flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 7px;
    margin: 0;
    direction: ltr;
}

#reviews.reviews-showcase .star-rating .star {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(148, 163, 184, 0.46);
    font-size: 27px;
    line-height: 1;
    cursor: pointer;
    transition: color 170ms ease, transform 170ms ease, filter 170ms ease;
}

#reviews.reviews-showcase .star-rating .star.selected,
#reviews.reviews-showcase .star-rating .star.is-preview {
    color: var(--review-star);
}

#reviews.reviews-showcase .star-rating .star:hover,
#reviews.reviews-showcase .star-rating .star:focus-visible {
    transform: translateY(-2px) scale(1.12);
    outline: 0;
}

#reviews.reviews-showcase input,
#reviews.reviews-showcase textarea {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    border: 1px solid var(--review-border);
    border-radius: 8px;
    background: color-mix(in srgb, var(--review-card) 96%, var(--review-soft));
    color: var(--review-text);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
    text-align: start;
}

#reviews.reviews-showcase textarea {
    min-height: 116px;
    resize: vertical;
}

.review-form-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
    margin-top: 22px;
}

.review-cancel-btn {
    border: 1px solid var(--review-border);
    background: var(--review-card);
    color: var(--review-text);
    box-shadow: none;
}

.review-cancel-btn:hover {
    background: var(--review-soft);
}

.review-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.review-submit-btn:disabled {
    opacity: 0.62;
    cursor: wait;
    transform: none;
}

.review-submit-btn .material-symbols-outlined {
    font-size: 20px;
}

html[dir="rtl"] #reviews.reviews-showcase,
#reviews.reviews-showcase[dir="rtl"] {
    text-align: center;
}

html[dir="rtl"] .review-card-top {
    direction: rtl;
}

html[dir="rtl"] .review-card-person .review-stars {
    justify-content: flex-start;
}

body.dark-mode #reviews.reviews-showcase {
    --review-bg: #0b0b0c;
    --review-card: #171717;
    --review-text: #f8fafc;
    --review-muted: #a8b0bd;
    --review-soft: #111318;
    --review-border: rgba(255, 255, 255, 0.09);
    --review-shadow: 0 16px 34px rgba(0, 0, 0, 0.3);
    --review-strong-shadow: 0 20px 46px rgba(0, 0, 0, 0.4);
    background: var(--review-bg);
}

body.dark-mode #reviews.reviews-showcase::before {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0) 56%);
    opacity: 1;
}

body.dark-mode .review-form-toggle,
body.dark-mode .review-submit-btn {
    background: #ffffff;
    color: #050505;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.32);
}

body.dark-mode .review-form-toggle:hover,
body.dark-mode .review-submit-btn:hover {
    background: #f8fafc;
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.42);
}

body.dark-mode .review-avatar {
    border-color: rgba(255, 255, 255, 0.14);
    background:
        linear-gradient(135deg, #020617, #334155);
}

body.dark-mode .reviews-dot:hover {
    background: rgba(255, 255, 255, 0.58);
}

@keyframes reviewCardIn {
    0% {
        opacity: 0;
        transform: translateY(12px) scale(0.975);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 760px) {
    #reviews.reviews-showcase {
        padding: 30px 18px 30px;
    }

    .reviews-showcase-heading h2 {
        font-size: 28px;
    }

    .reviews-showcase-heading p {
        font-size: 14px;
    }

    .reviews-average-line strong {
        font-size: 44px;
    }

    .reviews-average-line span {
        font-size: 23px;
    }

    .reviews-rating-summary {
        margin-bottom: 24px;
    }

    #reviews.reviews-showcase .review-slider-container {
        min-height: 286px;
    }

    #reviews.reviews-showcase .review-showcase-card {
        align-content: start;
        min-height: 264px;
        padding: 32px 20px 26px;
    }

    .review-card-top {
        gap: 13px;
        margin-bottom: 16px;
    }

    .review-avatar {
        width: 50px;
        height: 50px;
        flex-basis: 50px;
    }

    .review-card-person h4 {
        font-size: 18px;
    }

    .review-quote {
        font-size: 15px;
        line-height: 1.65;
    }

    .review-form-card.is-open .review-form-panel {
        padding: 22px 18px;
    }
}

@media (max-width: 420px) {
    #reviews.reviews-showcase {
        padding: 30px 16px 30px;
    }

    .reviews-showcase-heading {
        margin-bottom: 22px;
    }

    .reviews-showcase-heading h2 {
        font-size: 28px;
    }

    #reviews.reviews-showcase .review-slider-container {
        min-height: 292px;
    }

    #reviews.reviews-showcase .review-showcase-card {
        min-height: 276px;
        padding: 32px 18px 26px;
    }

    .reviews-carousel-controls {
        gap: 12px;
    }

    .reviews-arrow {
        width: 44px;
        height: 44px;
    }

    .reviews-dots {
        min-width: 76px;
        gap: 7px;
    }

    .reviews-dot.is-active {
        width: 30px;
    }

    .review-form-actions {
        grid-template-columns: 1fr;
    }

    .review-form-toggle,
    .review-submit-btn,
    .review-cancel-btn {
        min-height: 54px;
        font-size: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .review-showcase-card,
    .reviews-arrow,
    .reviews-dot,
    .review-form-toggle,
    .review-submit-btn,
    .review-cancel-btn,
    .review-form-panel,
    #reviews.reviews-showcase .star-rating .star {
        animation: none !important;
        transition: none !important;
    }
}
