/* ===========================================================================
   /reviews/  +  /leave-review/   — cloned to match the uknamechange layout
   Palette: navy #003366 / #1f4068, gold? no — navy stars, green verified.
   =========================================================================== */
:root {
    --rev-navy: #003366;
    --rev-navy-2: #004080;
    --rev-star: #1f4068;
    --rev-ink: #16243a;
    --rev-muted: #64748b;
    --rev-border: #e6ebf1;
    --rev-track: #e8edf3;
    --rev-green: #1e8449;
    --rev-blue-btn: #4fc3f7;
}

/* ───────────────────────── Hero (dark, two columns) ───────────────────────── */
.rev-hero {
    /* Full-bleed: break out of the page container so the navy spans edge-to-edge */
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
    max-width: 100vw;
    background: linear-gradient(135deg, var(--rev-navy) 0%, var(--rev-navy-2) 100%);
    color: #fff;
    padding: 60px 0 64px;
}
.rev-hero-left { text-align: center; }
.rev-hero-left h1 {
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1.1;
    margin: 0 0 16px;
}
.rev-hero-left p {
    color: #cfe0ef;
    font-size: 1rem;
    line-height: 1.65;
    max-width: 460px;
    margin: 0 auto 26px;
}
.rev-hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
.rev-hero-actions .rev-btn { min-width: 250px; justify-content: center; }

/* Summary card (right) */
.rev-summary-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(0, 20, 50, 0.28);
    padding: 30px 32px;
    color: var(--rev-ink);
    max-width: 420px;
    margin: 0 auto;
}
.rev-sc-label {
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--rev-navy);
    margin-bottom: 10px;
}
.rev-sc-stars {
    text-align: center;
    color: var(--rev-star);
    font-size: 1.9rem;
    letter-spacing: 6px;
    line-height: 1;
    margin-bottom: 12px;
}
.rev-sc-stars .rev-star-empty { color: #cbd5e1; }
.rev-sc-score {
    text-align: center;
    color: var(--rev-muted);
    font-size: 0.95rem;
    margin-bottom: 22px;
}
.rev-sc-score strong { color: var(--rev-navy); font-size: 1.15rem; font-weight: 800; }
.rev-sc-breakdown { display: flex; flex-direction: column; gap: 9px; }
.rev-sc-row {
    display: grid;
    grid-template-columns: 52px 1fr 40px;
    align-items: center;
    gap: 12px;
    font-size: 0.84rem;
    color: var(--rev-muted);
}
.rev-sc-bar { height: 8px; background: var(--rev-track); border-radius: 6px; overflow: hidden; }
.rev-sc-bar > span { display: block; height: 100%; background: var(--rev-navy); border-radius: 6px; }
.rev-sc-pct { text-align: right; }

/* ───────────────────────── Body container ───────────────────────── */
.rev-body-wrap { max-width: 880px; margin: 0 auto; padding: 36px 16px 64px; }

/* Controls (search + rating + sort) */
.rev-controls {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}
.rev-search {
    position: relative;
    flex: 1 1 280px;
    min-width: 220px;
}
.rev-search i {
    position: absolute;
    left: 16px; top: 50%; transform: translateY(-50%);
    color: #9aa7b5; font-size: 0.9rem;
}
.rev-search input {
    width: 100%;
    border: 1px solid var(--rev-border);
    border-radius: 12px;
    padding: 12px 16px 12px 40px;
    font-size: 0.92rem;
    color: var(--rev-ink);
    background: #fff;
}
.rev-search input:focus { outline: none; border-color: #b9cce4; box-shadow: 0 0 0 3px rgba(0,51,102,0.08); }
.rev-control-group { display: inline-flex; align-items: center; gap: 8px; }
.rev-control-group > label { font-size: 0.85rem; color: var(--rev-muted); margin: 0; }
.rev-select {
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid var(--rev-border);
    border-radius: 12px;
    background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23003366' stroke-width='3'><path d='M6 9l6 6 6-6'/></svg>") no-repeat right 12px center;
    padding: 10px 34px 10px 14px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--rev-navy);
    cursor: pointer;
}
.rev-select:focus { outline: none; border-color: #b9cce4; }

/* ───────────────────────── Review cards ───────────────────────── */
.rev-list { display: flex; flex-direction: column; gap: 18px; }
.rev-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--rev-border);
    border-radius: 16px;
    padding: 22px 24px;
    box-shadow: 0 4px 18px rgba(0, 51, 102, 0.05);
    overflow: hidden;
}
.rev-quote {
    position: absolute;
    top: 10px; right: 18px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 3.4rem;
    line-height: 1;
    color: #eef2f7;
    pointer-events: none;
}
.rev-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.rev-avatar {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--rev-navy);
    color: #fff;
    font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1rem;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.rev-meta { flex: 1; min-width: 0; }
.rev-name {
    font-weight: 700; color: var(--rev-navy);
    display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.rev-verified {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 0.62rem; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
    color: var(--rev-green); background: #e8f6ee;
    border-radius: 999px; padding: 3px 9px;
}
.rev-date { font-size: 0.82rem; color: #9aa7b5; white-space: nowrap; }
.rev-card .rev-stars { color: var(--rev-star); font-size: 1rem; letter-spacing: 3px; line-height: 1; margin-bottom: 8px; }
.rev-card .rev-stars .rev-star-empty { color: #cbd5e1; }
.rev-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.02rem; font-weight: 700; color: var(--rev-navy);
    margin: 0 0 6px;
}
.rev-body { color: #475569; line-height: 1.6; margin: 0; }
.rev-empty { text-align: center; color: var(--rev-muted); padding: 36px 0; }

/* ───────────────────────── Trust note + CTA ───────────────────────── */
.rev-trust {
    margin-top: 36px; background: #fff;
    border: 1px solid var(--rev-border); border-radius: 16px; padding: 26px 28px;
}
.rev-trust h2 { font-family: 'Poppins', sans-serif; font-size: 1.15rem; color: var(--rev-navy); margin: 0 0 14px; }
.rev-trust ul { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 12px; }
.rev-trust li { display: flex; gap: 10px; color: #475569; line-height: 1.55; }
.rev-trust li i { color: var(--rev-green); margin-top: 3px; }

.rev-cta-band {
    margin-top: 32px;
    background: linear-gradient(135deg, var(--rev-navy) 0%, var(--rev-navy-2) 100%);
    border-radius: 16px; padding: 30px; text-align: center; color: #fff;
}
.rev-cta-band h2 { font-family: 'Poppins', sans-serif; font-size: 1.35rem; margin: 0 0 8px; }
.rev-cta-band p { color: #cfe0ef; margin: 0 0 18px; }

/* ───────────────────────── Buttons ───────────────────────── */
.rev-btn {
    display: inline-flex; align-items: center; gap: 8px;
    font-weight: 700; border-radius: 999px; padding: 13px 26px;
    text-decoration: none; border: 2px solid transparent; cursor: pointer;
    transition: all 0.16s ease; font-size: 0.98rem;
}
.rev-btn-blue { background: var(--rev-blue-btn); color: #08315c; }
.rev-btn-blue:hover { background: #a9d4f5; color: #08315c; }
.rev-btn-white { background: #fff; color: var(--rev-navy); }
.rev-btn-white:hover { background: #f0f5fb; color: var(--rev-navy); }
.rev-btn-primary { background: #4fc3f7; color: var(--rev-navy); }
.rev-btn-primary:hover { background: #74d0fb; color: var(--rev-navy); }
.rev-btn-ghost { background: #fff; border-color: var(--rev-border); color: var(--rev-navy); }
.rev-btn-ghost:hover { border-color: #4fc3f7; }

/* ───────────────────────── Leave-a-review form ───────────────────────── */
.rev-form-card {
    background: #fff; border: 1px solid var(--rev-border); border-radius: 16px;
    box-shadow: 0 6px 24px rgba(0,51,102,0.08); padding: 30px; max-width: 640px; margin: 0 auto;
}
.rev-form-card h1 { font-family: 'Poppins', sans-serif; font-size: 1.6rem; color: var(--rev-navy); margin: 0 0 6px; }
.rev-form-card .rev-form-sub { color: var(--rev-muted); margin-bottom: 22px; }
.rev-field { margin-bottom: 20px; }
.rev-field > label { font-weight: 600; color: var(--rev-ink); display: block; margin-bottom: 8px; }
.rev-star-picker { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.rev-star-picker input { position: absolute; opacity: 0; width: 0; height: 0; }
.rev-star-picker label { font-size: 2rem; line-height: 1; color: #cbd5e1; cursor: pointer; margin: 0; transition: color 0.1s ease; }
.rev-star-picker label:hover, .rev-star-picker label:hover ~ label, .rev-star-picker input:checked ~ label { color: #f5a623; }
/* Keyboard focus ring on the focused star (radios are visually hidden) — WCAG 2.4.7 */
.rev-star-picker input:focus-visible + label { outline: 2px solid var(--rev-navy); outline-offset: 3px; border-radius: 4px; }
.rev-eligibility {
    background: #fff; border: 1px solid var(--rev-border); border-radius: 16px;
    padding: 32px; text-align: center; max-width: 640px; margin: 0 auto;
}
.rev-eligibility > i { font-size: 2rem; color: #4fc3f7; margin-bottom: 12px; }

/* ───────────────────────── Responsive ───────────────────────── */
@media (max-width: 991px) {
    .rev-summary-card { margin-top: 28px; }
}
@media (max-width: 575px) {
    .rev-controls { flex-direction: column; align-items: stretch; }
    .rev-control-group { justify-content: space-between; }
    .rev-control-group .rev-select { flex: 1; }
    .rev-hero-actions .rev-btn { min-width: 0; width: 100%; }
}
