/* =========================================================
   REVIEWS (reviews.php) — builds on home.css (.hm) + why-us.css (FAQ)
   ========================================================= */

.rv-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ---------- Hero + summary ---------- */
.rv-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}

.rv-summary {
    padding: clamp(24px, 3vw, 36px);
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
}

.rv-summary-score {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

.rv-big {
    font-family: var(--font-h);
    font-size: clamp(3.4rem, 6vw, 4.6rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--ink);
}

.rv-stars-lg svg {
    width: 22px;
    height: 22px;
}

.rv-summary-score small {
    display: block;
    margin-top: 6px;
    font-size: 0.88rem;
    color: var(--muted);
}

.rv-bars {
    list-style: none;
    margin-top: 18px;
    display: grid;
    gap: 10px;
}

.rv-bars li {
    display: grid;
    grid-template-columns: 38px 1fr 28px;
    align-items: center;
    gap: 12px;
    font-family: var(--font-ui);
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--ink-2);
}

.rv-bars li > span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.rv-bars li svg {
    width: 13px;
    height: 13px;
    color: var(--star);
    fill: var(--star);
}

.rv-bar {
    height: 10px;
    border-radius: 999px;
    background: #f1f5f9;
    overflow: hidden;
}

.rv-bar > span {
    display: block;
    height: 100%;
    width: var(--w);
    border-radius: inherit;
    background: linear-gradient(90deg, #fbbf24, var(--star));
    animation: rv-grow 1s ease both 0.3s;
    transform-origin: left;
}

.rv-bar-n {
    text-align: right;
    color: var(--muted);
}

.rv-summary-note {
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.84rem;
    color: var(--muted);
}

.rv-summary-note svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--teal);
}

/* ---------- Review wall ---------- */
.hm .rv-wall {
    background: var(--soft);
    border-top: 1px solid var(--line);
    scroll-margin-top: 70px;
}

.rv-grid {
    columns: 3 300px;
    column-gap: 20px;
}

.hm .rv-card {
    width: auto;
    break-inside: avoid;
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rv-card[hidden] {
    display: none;
}

.rv-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.rv-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.rv-course {
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--mint);
    color: var(--teal-d);
    font-size: 0.74rem;
    font-weight: 700;
}

.hm .rv-card blockquote {
    display: block;
    -webkit-line-clamp: unset;
    font-size: 0.98rem;
    line-height: 1.7;
    color: var(--ink-2);
}

.hm .rv-card blockquote::before {
    content: '\201C';
    display: block;
    height: 28px;
    font-family: Georgia, serif;
    font-size: 3.2rem;
    line-height: 1;
    color: rgba(13, 148, 136, 0.25);
}

.hm .rv-card blockquote.rv-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rv-more {
    align-self: flex-start;
    padding: 0;
    border: 0;
    background: none;
    color: var(--teal-d);
    font-family: var(--font-ui);
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
}

.rv-verified {
    margin-left: auto;
    color: var(--teal);
}

.rv-verified svg {
    width: 20px;
    height: 20px;
}

.rv-more-wrap {
    margin-top: 12px;
    text-align: center;
}

.rv-empty {
    max-width: 480px;
    margin: 0 auto;
    padding: 40px 28px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    text-align: center;
}

.rv-empty > span {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: var(--mint);
    color: var(--teal);
}

.hm .rv-empty h3 {
    font-family: var(--font-h);
    font-size: 1.3rem;
    font-weight: 800;
}

.rv-empty p {
    margin: 8px 0 20px;
    color: var(--muted);
}

.hm .rv-btn-plain {
    padding: 0 24px;
}

/* ---------- FAQ ---------- */
.hm .rv-faq {
    background: #ffffff;
}

.rv-faq-media {
    margin-top: 28px;
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border: 6px solid #ffffff;
    box-shadow: var(--shadow-md);
}

.rv-faq-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- Leave a review + suggestion ---------- */
.hm .rv-actions {
    background: var(--soft);
    border-top: 1px solid var(--line);
    scroll-margin-top: 70px;
}

.rv-actions-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
    gap: 24px;
    align-items: start;
}

.rv-form-card {
    padding: clamp(24px, 4vw, 44px);
    border-radius: 28px;
    color: rgba(236, 253, 245, 0.85);
    background:
        radial-gradient(60% 80% at 100% 0%, rgba(94, 234, 212, 0.2) 0%, rgba(94, 234, 212, 0) 60%),
        linear-gradient(150deg, #0f766e 0%, #0b4f4a 60%, #083b37 100%);
    box-shadow: var(--shadow-lg);
}

.rv-form-sub {
    margin-top: 10px;
    line-height: 1.65;
}

.rv-alert {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(254, 226, 226, 0.95);
    color: #991b1b;
    font-weight: 600;
}

.rv-alert svg {
    width: 18px;
    height: 18px;
}

.rv-form {
    margin-top: 24px;
    display: grid;
    gap: 16px;
}

.rv-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Star rating (radios in reverse DOM order + row-reverse for pure-CSS fill) */
.rv-rate {
    border: 0;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 14px;
}

.rv-rate legend {
    width: 100%;
    margin-bottom: 6px;
    font-family: var(--font-ui);
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
}

.rv-rate-stars {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 4px;
}

.rv-rate-stars input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.rv-rate-stars label {
    cursor: pointer;
    padding: 2px;
    color: rgba(255, 255, 255, 0.28);
    transition: transform 0.15s ease, color 0.15s ease;
}

.rv-rate-stars label svg {
    width: 34px;
    height: 34px;
    fill: currentColor;
}

.rv-rate-stars label:hover,
.rv-rate-stars label:hover ~ label,
.rv-rate-stars input:checked ~ label {
    color: #fbbf24;
}

.rv-rate-stars label:hover {
    transform: scale(1.12);
}

.rv-rate-stars input:focus-visible + label {
    outline: 2px solid #5eead4;
    outline-offset: 2px;
    border-radius: 6px;
}

.rv-rate-label {
    font-family: var(--font-ui);
    font-weight: 700;
    color: #fde68a;
}

.rv-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.rv-field {
    display: grid;
    gap: 6px;
}

.rv-field > span {
    font-family: var(--font-ui);
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
}

.rv-field em {
    font-style: normal;
    font-weight: 500;
    color: rgba(204, 251, 241, 0.7);
}

.rv-field input,
.rv-field select,
.rv-field textarea {
    width: 100%;
    padding: 13px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.rv-field textarea {
    resize: vertical;
    min-height: 120px;
}

.rv-field select option {
    color: var(--ink);
}

.rv-field input::placeholder,
.rv-field textarea::placeholder {
    color: rgba(204, 251, 241, 0.5);
}

.rv-field input:focus,
.rv-field select:focus,
.rv-field textarea:focus {
    outline: none;
    border-color: #5eead4;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 4px rgba(94, 234, 212, 0.18);
}

.rv-field.has-error input,
.rv-field.has-error textarea {
    border-color: #fca5a5;
}

.rv-field small {
    color: #fecaca;
    font-weight: 600;
}

.rv-form .hm-btn {
    margin-top: 4px;
}

.rv-form-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.8rem;
    color: rgba(204, 251, 241, 0.7);
}

.rv-form-note svg {
    width: 14px;
    height: 14px;
}

/* Thank-you state */
.rv-thanks {
    padding: 20px 0;
    text-align: center;
}

.rv-thanks-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.12);
    color: #fde68a;
    animation: hm-pop 0.5s ease both;
}

.rv-thanks-icon svg {
    width: 30px;
    height: 30px;
}

.hm .rv-thanks h2 {
    font-family: var(--font-h);
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
}

.rv-thanks p {
    max-width: 420px;
    margin: 10px auto 24px;
    line-height: 1.65;
}

/* Suggestion card */
.rv-suggest {
    padding: clamp(24px, 3vw, 36px);
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
}

.rv-suggest-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 18px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: #fef3c7;
    color: #d97706;
}

.rv-suggest-icon svg {
    width: 24px;
    height: 24px;
}

.rv-suggest .hm-h2 {
    font-size: 1.7rem;
}

.rv-mail {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--soft);
    color: var(--ink);
    font-family: var(--font-ui);
    font-size: 0.92rem;
    font-weight: 700;
    word-break: break-all;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.rv-mail:first-of-type {
    margin-top: 22px;
}

.rv-mail:hover {
    color: var(--ink);
    border-color: rgba(13, 148, 136, 0.4);
    background: var(--mint);
}

.rv-mail > span:first-child {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: #ffffff;
    color: var(--teal-d);
    border: 1px solid var(--line);
}

.rv-mail svg {
    width: 18px;
    height: 18px;
}

.rv-mail small {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.74rem;
    font-weight: 500;
    color: var(--muted);
    word-break: normal;
}

.rv-mail-go {
    margin-left: auto;
    flex-shrink: 0;
    color: var(--muted);
}

@keyframes rv-grow {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .rv-hero-grid,
    .rv-actions-grid {
        grid-template-columns: 1fr;
    }

    .rv-summary {
        max-width: 560px;
    }
}

@media (max-width: 640px) {
    .rv-row {
        grid-template-columns: 1fr;
    }

    .rv-grid {
        columns: 1;
    }

    .rv-rate-stars label svg {
        width: 30px;
        height: 30px;
    }

    .rv-filter {
        width: 100%;
    }

    .rv-filter .hm-billing-btn {
        flex: 1;
        justify-content: center;
        padding: 9px 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rv-bar > span {
        animation: none;
    }
}

/* Private suggestion form (white card) */
.rv-sg-form { margin-top: 18px; display: grid; gap: 10px; }
.rv-sg-form textarea,
.rv-sg-form input[type="text"],
.rv-sg-form input[type="email"] {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #ffffff;
    color: var(--ink);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
}
.rv-sg-form textarea { resize: vertical; min-height: 100px; }
.rv-sg-form textarea:focus,
.rv-sg-form input:focus { outline: none; border-color: rgba(13, 148, 136, 0.6); box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.15); }
.rv-sg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rv-sg-err { color: #991b1b; font-weight: 600; font-size: 0.88rem; }
.rv-sg-ok { margin-top: 18px; display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 12px; background: var(--mint); color: var(--ink); font-weight: 600; }
.rv-sg-ok svg { width: 18px; height: 18px; flex: none; }
@media (max-width: 480px) { .rv-sg-row { grid-template-columns: 1fr; } }

/* =====================================================================
   HERO — centred stage (.rv-stage): rating headline + two drifting rows of real reviews
   ===================================================================== */
.hm .rv-stage { padding-bottom: clamp(36px, 4vw, 56px); text-align: center; }
.rv-stage-head { display: flex; flex-direction: column; align-items: center; }
.rv-stage-head .hm-hero-title { max-width: 820px; }
.rv-stage-head .hm-hero-sub { margin-left: auto; margin-right: auto; max-width: 620px; }
.rv-stage-head .hm-hero-actions { justify-content: center; }
.rv-stage-score { display: inline-flex; align-items: center; gap: 16px; margin-top: 22px; padding: 10px 22px 10px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line, #e2e8f0); box-shadow: 0 18px 40px -24px rgba(15, 23, 42, .35); }
.rv-stage-score .rv-big { font-size: 2.6rem; line-height: 1; padding: 6px 14px; border-radius: 999px; background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #fff; }
.rv-stage-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.rv-stage-meta small { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; font-weight: 600; color: var(--muted, #64748b); }
.rv-stage-meta small svg { width: 15px; height: 15px; color: var(--teal, #0d9488); }

.rv-marquee { position: relative; margin-top: clamp(40px, 5vw, 60px); display: grid; gap: 16px; overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.rv-mq-row { overflow: hidden; }
.rv-mq-track { display: flex; gap: 16px; width: max-content; animation: rv-mq 60s linear infinite; }
.rv-mq-row.is-reverse .rv-mq-track { animation-direction: reverse; animation-duration: 70s; }
.rv-marquee:hover .rv-mq-track { animation-play-state: paused; }
@keyframes rv-mq { to { transform: translateX(calc(-50% - 8px)); } }
.rv-mq-card { flex: 0 0 320px; margin: 0; padding: 18px 20px; border-radius: 20px; text-align: left; background: #fff; border: 1px solid var(--line, #e2e8f0); box-shadow: 0 14px 30px -22px rgba(15, 23, 42, .35); display: flex; flex-direction: column; gap: 10px; }
.rv-mq-row.is-reverse .rv-mq-card:nth-child(odd) { background: linear-gradient(160deg, #f0fdfa, #fff); }
.rv-mq-stars { color: #f59e0b; letter-spacing: 2px; font-size: .95rem; }
.rv-mq-stars span { color: #e2e8f0; }
.rv-mq-card blockquote { margin: 0; font-size: .92rem; line-height: 1.55; color: var(--ink-2, #334155); }
.rv-mq-card figcaption { margin-top: auto; display: flex; align-items: center; gap: 10px; }
.rv-mq-card figcaption .hm-avatar { width: 34px; height: 34px; font-size: .72rem; }
.rv-mq-card figcaption span:last-child { display: flex; flex-direction: column; }
.rv-mq-card strong { font-size: .88rem; color: var(--ink, #0f172a); }
.rv-mq-card small { font-size: .76rem; color: var(--muted, #64748b); }

@media (max-width: 640px) {
    .rv-stage-score { gap: 10px; padding-right: 16px; }
    .rv-stage-score .rv-big { font-size: 2rem; }
    .rv-mq-card { flex-basis: 260px; }
}
@media (prefers-reduced-motion: reduce) {
    .rv-mq-track { animation: none; }
    .rv-marquee { overflow-x: auto; }
}
