/* ==========================================================================
   template-review.css — Ticket #15263
   Reviews / Testimonials page (desktop).
   Layout intentionally lightweight; v1 ships functional styling that mirrors
   Figma 3649-755 at a structural level. Pixel-perfect polish will be tuned
   against real content during QA.
   ========================================================================== */

.reviews-page { color: #2b2b2b; }
.reviews-page .wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.reviews-page [hidden] { display: none !important; }
.reviews-page .is-hidden { display: none !important; }

/* ---------- 1. Hero ---------- */
.reviews-hero {
    background-color: #32b4a6;
    padding: 50px calc((100% - 1200px)/ 2);
    text-align: center;
}
.reviews-hero h1 {
    font-size: 44px;
    line-height: 1.15;
    margin: 0 auto 18px;
    max-width: 820px;
    color: white;
}
.reviews-hero__subtitle {
    font-size: 18px;
    color: #555;
    max-width: 620px;
    margin: 0 auto 28px;
}
.reviews-hero__cta {
    display: inline-block;
    padding: 14px 32px;
    border: 2px solid #32b4a6;
    color: #32b4a6;
    background: #fff;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease;
}
.reviews-hero__cta:hover,
.reviews-hero__cta:focus { background: #32b4a6; color: #fff; }

/* ---------- 2. Trust strip ---------- */
.reviews-trust {
    padding: 50px calc((100% - 1200px)/ 2);
    background: #fff;
    text-align: center;
}
.reviews-trust__image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

/* ---------- 3 & 5. Filter / Sort bar (Figma node 3649:835) ----------
   Single white card with drop shadow. Title above a wrapping row of
   checkbox-style filter chips (sort tabs + category chips share the
   same look). Active = teal check, inactive = empty grey box.
*/
.reviews-filterbar {
    background: #fff;
    margin: 48px 0 0;
    margin-top: 0;
    padding: 50px calc((100% - 1200px)/ 2);
    padding-bottom: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.reviews-filterbar__title {
    font-family: 'Rubik', sans-serif;
    font-weight: 400;
    font-size: 28px;
    line-height: 1.32;
    color: #292929;
    margin: 0;
}
.reviews-filterbar__items {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.reviews-filter {
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 5px;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #878585;
}
.reviews-filter__box {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    background: #fff;
    border: 1px solid #e7e7e7;
    border-radius: 3px;
    position: relative;
    transition: background-color .15s ease, border-color .15s ease;
}
.reviews-filter.is-active { color: #292929; }
.reviews-filter.is-active .reviews-filter__box {
    background: #32b4a6;
    border-color: #32b4a6;
}
.reviews-filter.is-active .reviews-filter__box::after {
    content: '';
    position: absolute;
    left: 6px; top: 2px;
    width: 6px; height: 11px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.reviews-filter:hover:not(.is-active) { color: #292929; }
.reviews-filter:hover:not(.is-active) .reviews-filter__box { border-color: #32b4a6; }


/* ---------- 4. Written reviews list (Figma 3649:849) ----------
   Horizontal card: text column on the left + up-to-3 preview photos on
   the right. Background = Greys/Lightest Grey, radius 10px, no border.
*/
.reviews-list { padding: 0px calc((100% - 1200px)/ 2); }
.reviews-list__grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 24px;
}
.review-card {
    background: #f8f8f8;
    border-radius: 10px;
    padding: 50px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px;
}
.review-card__content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1 1 auto;
    min-width: 0;
}
.review-card__rank { display: flex; gap: 4px; }
.review-card__star path { fill: #e7e7e7; }
.review-card__star.is-filled path { fill: #ff9900; }
.review-card__user {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}
.review-card__avatar {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    border-radius: 50%;
    background: #4f7082;
    color: #fff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.review-card__avatar img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.review-card__initial {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 22px;
    line-height: 1;
    color: #fff;
}
.review-card__label {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
}
.review-card__name {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.5;
    color: #292929;
}
.review-card__date {
    font-family: 'Open Sans', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    color: #5f5f5f;
}
.review-card__title {
    margin: 0;
    font-family: 'Rubik', sans-serif;
    font-size: 22px;
    line-height: 1.27;
    color: #32b4a6;
}
.review-card__body {
    margin-top: -15px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    color: #292929;
}
.review-card__body p:last-child { margin-bottom: 0; }
.review-card__photos {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    gap: 10px;
    flex: 0 0 auto;
}
.review-card__photo {
    width: 73px;
    height: 73px;
}
.review-card__photo img {
    width: 73px;
    height: 73px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

/* ---------- 6. Video testimonials list (Figma 3649:868) ----------
   Card 432×464: 430×280 thumbnail (radius top 10px) + light-grey quote
   panel (radius bottom 10px) with teal Rubik 25 title and centred name.
*/
.reviews-videos-list { padding: 50px calc((100% - 1200px)/ 2); }
.reviews-videos-list__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 432px));
    justify-content: center;
    gap: 24px;
}
.video-card {
    width: 432px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    overflow: hidden;
    background: transparent;
}
.video-card__thumb {
    position: relative;
    display: block;
    width: 100%;
    height: 280px;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
    background: #000;
}
.video-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.video-card__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.video-card__play svg {
    width: 90px;
    height: 90px;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25));
}
.video-card__quote {
    background: #efeff4;
    border-radius: 0 0 10px 10px;
    padding: 24px 32px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    flex: 1 1 auto;
}
.video-card__title {
    margin: 0;
    font-family: 'Rubik', sans-serif;
    font-size: 25px;
    line-height: 1.36;
    color: #32b4a6;
}
.video-card__name {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.5;
    color: #292929;
    text-align: left;
}

/* ---------- Pagination (shared) ---------- */
.reviews-pagination,
.reviews-videos-pagination {
    margin-top: 32px;
    display: flex;
    justify-content: center;
}
.pagination__list {
    list-style: none;
    padding: 0; margin: 0;
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}
.pagination__btn {
    background: #fff;
    border: 1px solid #d4dad8;
    color: #2b2b2b;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}
.pagination__btn[disabled] { opacity: 0.4; cursor: default; }
.pagination__btn.is-active { background: #32b4a6; border-color: #32b4a6; color: #fff; }
.pagination__ellipsis { padding: 0 6px; color: #6f7775; }

/* ---------- 7. Leads / Add a Review (Figma node 3649:1343) ----------
   Column layout: paper-plane illustration on top, then the form block
   (teal "Add a Review" title + two-column form rendered by Formidable +
   teal submit button). Targets generic Formidable selectors inside
   `.reviews-leads__form` so the shortcode output picks up the styles.
*/
.reviews-leads {
    background: #fff;
    padding: 50px calc((100% - 1200px)/ 2);
    padding-top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
}
.reviews-leads__art {
    width: 100%;
    display: flex;
    justify-content: center;
}
.reviews-leads__art img {
    max-width: 100%;
    height: auto;
    display: block;
}
.reviews-leads__form {
    width: 100%;
    max-width: 910px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.reviews-leads__title {
    margin: 0;
    font-family: 'Rubik', sans-serif;
    font-weight: 500;
    font-size: 36px;
    line-height: 1.2;
    color: #32b4a6;
    text-align: center;
}

.frm_dropzone.frm_single_upload {
    max-width: 100% !important;
}

/* Formidable form fields rendered by the shortcode --------------------- */
.reviews-leads__form .frm_forms,
.reviews-leads__form .frm_form_fields,
.reviews-leads__form form { width: 100%; }


.reviews-leads__form .frm_form_field,
.reviews-leads__form .frm_form_field.frm_full {
    margin: 0;
}
/* Multi-line fields (textarea / message) span the full width */
.reviews-leads__form .frm_form_field:has(textarea),
.reviews-leads__form .frm_form_field.frm_full_width {
    grid-column: 1 / -1;
}

.reviews-leads__form label,
.reviews-leads__form .frm_primary_label {
    display: block;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: #292929;
    margin: 0 0 8px;
}

.reviews-leads__form input[type="text"],
.reviews-leads__form input[type="email"],
.reviews-leads__form input[type="tel"],
.reviews-leads__form input[type="number"],
.reviews-leads__form input[type="url"],
.reviews-leads__form select,
.reviews-leads__form textarea {
    width: 100%;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #e7e7e7;
    border-radius: 5px;
    padding: 14px 20px;
    font-family: 'Rubik', sans-serif;
    font-size: 16px;
    line-height: 1.4;
    color: #292929;
    height: 50px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.reviews-leads__form textarea {
    height: 100px;
    min-height: 100px;
    resize: vertical;
}
.reviews-leads__form input:focus,
.reviews-leads__form select:focus,
.reviews-leads__form textarea:focus {
    outline: none;
    border-color: #32b4a6;
    box-shadow: 0 0 0 3px rgba(50, 180, 166, 0.15);
}
.reviews-leads__form ::placeholder { color: #9a9a9a; opacity: 1; }

/* Submit button — teal pill, Rubik 22 medium */
.reviews-leads__form input[type="submit"],
.reviews-leads__form button[type="submit"],
.reviews-leads__form .frm_button_submit {
    align-self: flex-start;
    background: #32b4a6;
    border: 0;
    color: #fff;
    font-family: 'Rubik', sans-serif;
    font-weight: 500;
    font-size: 22px;
    line-height: 1;
    padding: 16px 32px;
    min-height: 50px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color .2s ease;
}
.reviews-leads__form input[type="submit"]:hover,
.reviews-leads__form button[type="submit"]:hover,
.reviews-leads__form .frm_button_submit:hover { background: #279a8d; }

/* Submit wrapper rendered by Formidable should not be split by the grid */
.reviews-leads__form .frm_submit { grid-column: 1 / -1; margin-top: 8px; }


.with_frm_style .frm_submit.frm_flex {
    margin: 0 auto;
}

/* ==========================================================================
   Review-card photo lightbox (desktop only, ≥1024px)
   ========================================================================== */
.review-card__photo-link {
    display: block;
    width: 100%;
    height: 100%;
    cursor: zoom-in;
    border-radius: 10px;
    overflow: hidden;
    outline: none;
}
.review-card__photo-link img {
    transition: transform .25s ease, opacity .25s ease;
}
.review-card__photo-link:hover img,
.review-card__photo-link:focus-visible img {
    transform: scale(1.04);
    opacity: 0.92;
}

body.reviews-lightbox-open { overflow: hidden; }

.review-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px 80px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity .2s ease;
}
.review-lightbox.is-open {
    display: flex;
    opacity: 1;
}
.review-lightbox__stage {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.review-lightbox__img {
    max-width: 90vw;
    max-height: 85vh;
    width: auto;
    height: auto;
    display: block;
    border-radius: 6px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    background: #1a1a1a;
}
.review-lightbox__count {
    position: absolute;
    left: 50%;
    bottom: -32px;
    transform: translateX(-50%);
    color: #fff;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    line-height: 1;
    letter-spacing: 0.5px;
    opacity: 0.85;
}
.review-lightbox__close,
.review-lightbox__nav {
    position: absolute;
    background: rgba(255, 255, 255, 0.12);
    border: 0;
    color: #fff;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color .15s ease, transform .15s ease;
}
.review-lightbox__close:hover,
.review-lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.22);
}
.review-lightbox__close {
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    font-size: 28px;
    line-height: 1;
}
.review-lightbox__nav {
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    font-size: 22px;
    line-height: 1;
}
.review-lightbox__nav:hover {
    transform: translateY(-50%) scale(1.06);
}
.review-lightbox__nav--prev { left: 24px; }
.review-lightbox__nav--next { right: 24px; }