/* ==========================================================================
   Testimonials / reviews — used on homepage and the write-a-review page
   ========================================================================== */

.star-rating {
    display: inline-flex;
    gap: 3px;
    line-height: 0;
}
.star-rating svg { width: var(--star-size, 18px); height: var(--star-size, 18px); }
.star-rating .star-on { color: #F5A623; }
.star-rating .star-off { color: var(--wt-line); }

/* ---------- Homepage carousel ---------- */
.testimonial-wrap {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
}
.testimonial-track {
    position: relative;
    min-height: 260px;
}
.testimonial-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateY(16px) scale(0.98);
    transition: opacity 0.55s cubic-bezier(.22,.85,.4,1), transform 0.55s cubic-bezier(.22,.85,.4,1);
    pointer-events: none;
}
.testimonial-slide.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    position: relative;
}

.testimonial-card {
    background: var(--wt-white);
    border: 1px solid var(--wt-line);
    border-radius: var(--radius-lg);
    padding: 44px 48px;
    text-align: center;
    box-shadow: var(--shadow-md);
    position: relative;
}
.testimonial-quote-icon {
    width: 38px; height: 38px;
    color: var(--wt-blue-soft);
    margin: 0 auto 18px;
}
.testimonial-card .star-rating {
    justify-content: center;
    margin-bottom: 18px;
}
.testimonial-text {
    font-family: var(--font-display);
    font-size: 1.18rem;
    font-weight: 500;
    color: var(--wt-ink);
    line-height: 1.5;
    margin-bottom: 22px;
}
.testimonial-author {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--wt-blue);
    font-size: 0.98rem;
}
.testimonial-service {
    font-size: 0.84rem;
    color: var(--wt-slate-light);
    margin-top: 2px;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 9px;
    margin-top: 26px;
}
.testimonial-dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--wt-line);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.25s, transform 0.25s;
}
.testimonial-dot.active { background: var(--wt-green); transform: scale(1.25); }
.testimonial-dot:hover { background: var(--wt-blue); }

.testimonial-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--wt-white);
    border: 1px solid var(--wt-line);
    box-shadow: var(--shadow-sm);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    color: var(--wt-blue);
    transition: background 0.2s, transform 0.2s;
    z-index: 2;
}
.testimonial-arrow svg { width: 18px; height: 18px; }
.testimonial-arrow:hover { background: var(--wt-blue-soft); }
.testimonial-arrow.prev { left: -54px; }
.testimonial-arrow.prev svg { transform: scaleX(-1); }
.testimonial-arrow.next { right: -54px; }

@media (max-width: 860px) {
    .testimonial-arrow { display: none; }
    .testimonial-card { padding: 34px 26px; }
    .testimonial-text { font-size: 1.04rem; }
}
@media (max-width: 600px) {
    .testimonial-track { min-height: 280px; }
    .testimonial-card { padding: 28px 20px; }
}

/* ---------- Write a review page ---------- */
.star-picker {
    display: inline-flex;
    gap: 8px;
}
.star-picker button {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: var(--wt-line);
    transition: color 0.15s, transform 0.15s;
}
.star-picker button svg { width: 34px; height: 34px; }
.star-picker button.active {
    color: #F5A623;
}
.star-picker-label {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: 10px;
    color: var(--wt-slate);
}

/* ---------- Mini review list (used on review success / admin context) ---------- */
.review-mini-card {
    border: 1px solid var(--wt-line);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    background: var(--wt-white);
}
