/* =========================================================
   PRIME STAR GROUP — CUSTOMER REVIEWS PAGE
   Dedicated styles; isolated from other website sections.
   Brand: Navy #011337 | Gold #e8b831
========================================================= */

.psg-review-page {
    --psg-rp-navy: #011337;
    --psg-rp-navy-light: #183b70;
    --psg-rp-gold: #e8b831;
    --psg-rp-gold-dark: #d5a51b;
    --psg-rp-text: #202b40;
    --psg-rp-muted: #68758a;
    --psg-rp-border: #dce2ea;
    --psg-rp-surface: #ffffff;
    --psg-rp-background: #f3f7fc;
    --psg-rp-soft-blue: #eaf2fd;
    --psg-rp-shadow: 0 8px 28px rgba(1, 19, 55, 0.07);

    padding: 0 0 80px;
    background: var(--psg-rp-background);
    color: var(--psg-rp-text);
    font-family: "Inter", sans-serif;
}

.psg-review-page *,
.psg-review-page *::before,
.psg-review-page *::after {
    box-sizing: border-box;
}

.psg-review-page h2,
.psg-review-page h3,
.psg-review-page h4,
.psg-review-page p {
    overflow-wrap: anywhere;
}

.psg-review-page p {
    margin-top: 0;
}

.psg-review-page-main-row {
    position: relative;
    z-index: 2;
    align-items: flex-start;
    margin-top: -64px;
}

.psg-review-page-main-row > [class*="col-"] {
    margin-bottom: 24px;
}

/* =========================================================
   1. REVIEW FORM CARD
========================================================= */

.psg-review-page-form-card {
    padding: 30px 32px;
    height: 100%;
    background: var(--psg-rp-surface);
    border: 1px solid rgba(1, 19, 55, 0.045);
    border-radius: 12px;
    box-shadow: var(--psg-rp-shadow);
}

.psg-review-page-form-heading {
    display: flex;
    align-items: center;
    gap: 17px;
    margin-bottom: 27px;
}

.psg-review-page-heading-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 60px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #fff5d8;
    color: var(--psg-rp-navy);
    font-size: 25px;
}

.psg-review-page-form-heading h2 {
    margin: 0 0 7px;
    color: var(--psg-rp-navy);
    font-size: 29px;
    font-weight: 800;
    line-height: 1.2;
}

.psg-review-page-form-heading p {
    margin: 0;
    color: var(--psg-rp-muted);
    font-size: 13px;
    line-height: 1.7;
}

/* =========================================================
   2. FORM FIELDS
========================================================= */

.psg-review-page-form {
    width: 100%;
}

.psg-review-page-field {
    min-width: 0;
    margin-bottom: 21px;
}

.psg-review-page-field > label {
    display: block;
    margin: 0 0 9px;
    color: var(--psg-rp-navy);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
}

.psg-review-page-field > label > span:not(.psg-review-page-optional) {
    color: #d83a42;
}

.psg-review-page .psg-review-page-optional {
    color: #818b9a;
    font-size: 12px;
    font-weight: 500;
}

.psg-review-page-input-wrap,
.psg-review-page-textarea-wrap {
    position: relative;
    width: 100%;
}

.psg-review-page-input-wrap > i,
.psg-review-page-textarea-wrap > i {
    position: absolute;
    top: 17px;
    left: 16px;
    z-index: 1;
    color: var(--psg-rp-navy);
    font-size: 17px;
    pointer-events: none;
}

.psg-review-page-input-wrap input,
.psg-review-page-textarea-wrap textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    border: 1px solid #d5dbe4;
    border-radius: 6px;
    outline: none;
    background: #fff;
    color: var(--psg-rp-text);
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    box-shadow: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.psg-review-page-input-wrap input {
    height: 45px;
    padding: 10px 14px 10px 45px;
}

.psg-review-page-textarea-wrap textarea {
    min-height: 92px;
    padding: 13px 14px 13px 45px;
    line-height: 1.7;
    resize: vertical;
}

.psg-review-page-textarea-wrap textarea#psg-testimonial-feedback {
    min-height: 130px;
}

.psg-review-page-input-wrap input::placeholder,
.psg-review-page-textarea-wrap textarea::placeholder {
    color: #8b94a2;
    opacity: 1;
}

.psg-review-page-input-wrap input:focus,
.psg-review-page-textarea-wrap textarea:focus {
    border-color: var(--psg-rp-navy-light);
    box-shadow: 0 0 0 3px rgba(24, 59, 112, 0.09);
}

.psg-review-page-field-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-top: 7px;
    color: var(--psg-rp-muted);
    font-size: 11px;
    line-height: 1.6;
}

.psg-review-page-counter {
    flex: 0 0 auto;
    color: #7b8594;
    font-size: 11px;
    white-space: nowrap;
}

/* =========================================================
   3. STAR RATING
========================================================= */

.psg-review-page-rating-control {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 22px;
}

.psg-review-page-stars {
    display: inline-flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 5px;
}

.psg-review-page-stars input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.psg-review-page-stars label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    color: #d8dde5;
    font-size: 29px;
    line-height: 1;
    cursor: pointer;
    transition:
        color 0.18s ease,
        transform 0.18s ease;
}

.psg-review-page-stars label:hover,
.psg-review-page-stars label:hover ~ label,
.psg-review-page-stars input:checked ~ label {
    color: var(--psg-rp-gold);
}

.psg-review-page-stars label:hover {
    transform: scale(1.08);
}

.psg-review-page-stars input:focus-visible + label {
    outline: 2px solid var(--psg-rp-navy-light);
    outline-offset: 4px;
    border-radius: 3px;
}

.psg-review-page-rating-text {
    color: var(--psg-rp-muted);
    font-size: 12px;
    line-height: 1.6;
}

/* =========================================================
   4. YES / NO OPTIONS
========================================================= */

.psg-review-page-radio-options {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.psg-review-page-radio-option {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    color: var(--psg-rp-text);
    font-size: 14px;
    cursor: pointer;
}

.psg-review-page-radio-option input {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: var(--psg-rp-navy);
    cursor: pointer;
}

/* =========================================================
   5. SUBMIT BUTTON
========================================================= */

.psg-review-page-submit-wrap {
    margin-top: 25px;
}

.psg-review-page-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    width: 100%;
    min-height: 49px;
    padding: 13px 20px;
    border: 1px solid var(--psg-rp-gold);
    border-radius: 7px;
    background: var(--psg-rp-gold);
    color: var(--psg-rp-navy);
    font-family: inherit;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition:
        background 0.22s ease,
        transform 0.22s ease,
        box-shadow 0.22s ease;
}

.psg-review-page-submit i {
    font-size: 16px;
}

.psg-review-page-submit:hover {
    background: var(--psg-rp-gold-dark);
    border-color: var(--psg-rp-gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 7px 18px rgba(232, 184, 49, 0.25);
}

.psg-review-page-submit:focus-visible {
    outline: 3px solid rgba(1, 19, 55, 0.25);
    outline-offset: 3px;
}

/* =========================================================
   6. SUCCESS / ERROR MESSAGES
========================================================= */

.psg-review-page-alert {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-bottom: 22px;
    padding: 14px 16px;
    border: 1px solid transparent;
    border-radius: 7px;
    font-size: 13px;
    line-height: 1.6;
}

.psg-review-page-alert > i {
    margin-top: 2px;
    font-size: 17px;
}

.psg-review-page-alert-success {
    color: #17643b;
    background: #edf9f1;
    border-color: #ccebd6;
}

.psg-review-page-alert-error {
    color: #a52834;
    background: #fff1f2;
    border-color: #f5cbd0;
}

.psg-review-page-alert ul {
    margin: 7px 0 0;
    padding-left: 18px;
}

.psg-review-page-alert li + li {
    margin-top: 4px;
}

/* =========================================================
   7. RIGHT SIDEBAR
========================================================= */

.psg-review-page-sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.psg-review-page-benefits {
    padding: 25px 22px 20px;
    border: 1px solid rgba(1, 19, 55, 0.035);
    border-radius: 10px;
    background: #eaf2fd;
    box-shadow: 0 5px 20px rgba(1, 19, 55, 0.035);
}

.psg-review-page-benefits > h3 {
    margin: 0 0 23px;
    color: var(--psg-rp-navy);
    font-size: 21px;
    font-weight: 800;
    line-height: 1.4;
}

.psg-review-page-benefit {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-bottom: 23px;
}

.psg-review-page-benefit:last-child {
    margin-bottom: 0;
}

.psg-review-page-benefit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 55px;
    width: 55px;
    height: 55px;
    border: 1px solid rgba(1, 19, 55, 0.06);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    color: var(--psg-rp-navy);
    font-size: 23px;
}

.psg-review-page-benefit > div:last-child {
    min-width: 0;
    padding-top: 4px;
}

.psg-review-page-benefit h4 {
    margin: 0 0 5px;
    color: var(--psg-rp-navy);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.45;
}

.psg-review-page-benefit p {
    margin: 0;
    color: #394961;
    font-size: 12px;
    line-height: 1.7;
}

/* =========================================================
   8. REVIEW TIPS CARD
========================================================= */

.psg-review-page-tips {
    padding: 23px 22px;
    border: 1px solid rgba(232, 184, 49, 0.12);
    border-radius: 10px;
    background: #fff9eb;
}

.psg-review-page-tips-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.psg-review-page-tips-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 45px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--psg-rp-gold);
    color: var(--psg-rp-navy);
    font-size: 19px;
}

.psg-review-page-tips-heading h3 {
    margin: 0;
    color: var(--psg-rp-navy);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.45;
}

.psg-review-page-tips > p {
    margin-bottom: 15px;
    color: #536075;
    font-size: 12px;
    line-height: 1.7;
}

.psg-review-page-tips ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.psg-review-page-tips li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: var(--psg-rp-text);
    font-size: 12px;
    line-height: 1.6;
}

.psg-review-page-tips li i {
    flex-shrink: 0;
    margin-top: 3px;
    color: #b58a14;
}

/* =========================================================
   9. CUSTOMER REVIEWS SECTION
========================================================= */

.psg-review-page-reviews-section {
    padding-top: 45px;
}

.psg-review-page-section-heading {
    margin-bottom: 32px;
    text-align: center;
}

.psg-review-page-section-heading > span {
    display: inline-block;
    margin-bottom: 9px;
    color: #a47b0d;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2.5px;
}

.psg-review-page-section-heading h2 {
    margin: 0 0 10px;
    color: var(--psg-rp-navy);
    font-size: clamp(25px, 3vw, 34px);
    font-weight: 800;
    line-height: 1.3;
}

.psg-review-page-section-heading h2 strong {
    color: #bf941e;
}

.psg-review-page-section-heading p {
    margin: 0;
    color: var(--psg-rp-muted);
    font-size: 14px;
    line-height: 1.7;
}

/* =========================================================
   10. REVIEW CARD GRID
========================================================= */

.psg-review-page-testimonials-container {
    width: 100%;
}

.psg-review-page-testimonial-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 20px;
}

.psg-review-page-testimonial-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    padding: 21px 20px 17px;
    border: 1px solid #edf0f4;
    border-radius: 9px;
    background: var(--psg-rp-surface);
    box-shadow: 0 4px 18px rgba(1, 19, 55, 0.045);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.psg-review-page-testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(1, 19, 55, 0.09);
}

.psg-review-page-testimonial-top {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    margin-bottom: 16px;
}

.psg-review-page-avatar {
    flex: 0 0 55px;
    width: 55px;
    height: 55px;
    overflow: hidden;
    border: 2px solid #edf1f6;
    border-radius: 50%;
    background: #e9eef6;
}

.psg-review-page-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.psg-review-page-customer-info {
    flex: 1;
    min-width: 0;
}

.psg-review-page-customer-info h3 {
    margin: 0 0 6px;
    color: var(--psg-rp-navy);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.4;
}

.psg-review-page-card-stars {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    color: var(--psg-rp-gold);
    font-size: 13px;
}

.psg-review-page-date {
    align-self: flex-start;
    flex-shrink: 0;
    padding-top: 3px;
    color: #778194;
    font-size: 10px;
    line-height: 1.5;
    white-space: nowrap;
}

.psg-review-page-organization {
    margin: -5px 0 12px;
    color: #6a7485;
    font-size: 11px;
}

.psg-review-page-organization i {
    margin-right: 5px;
    color: var(--psg-rp-navy-light);
}

.psg-review-page-work {
    margin-bottom: 12px;
    padding: 10px 11px;
    border-radius: 5px;
    background: #f4f7fb;
}

.psg-review-page-work > span {
    display: block;
    margin-bottom: 4px;
    color: var(--psg-rp-navy);
    font-size: 11px;
    font-weight: 800;
}

.psg-review-page-work p {
    margin: 0;
    color: #5b6575;
    font-size: 12px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.psg-review-page-feedback {
    position: relative;
    flex: 1;
    padding: 13px 0 16px;
    border-bottom: 1px solid #e5e9ef;
}

.psg-review-page-feedback > i {
    display: block;
    margin-bottom: 9px;
    color: #c59a21;
    font-size: 15px;
    opacity: 0.8;
}

.psg-review-page-feedback p {
    margin: 0;
    color: #364154;
    font-size: 13px;
    line-height: 1.75;
    overflow-wrap: anywhere;
    white-space: pre-line;
}

.psg-review-page-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 13px;
    color: #6c7686;
    font-size: 10px;
}

.psg-review-page-card-footer > span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.psg-review-page-card-footer > span:first-child i {
    color: #4a9b72;
}

.psg-review-page-rating-label {
    flex-shrink: 0;
    color: var(--psg-rp-navy);
    font-size: 11px;
    font-weight: 800;
}

/* =========================================================
   11. EMPTY STATE
========================================================= */

.psg-review-page-empty {
    grid-column: 1 / -1;
    padding: 55px 20px;
    border: 1px dashed #cfd7e3;
    border-radius: 10px;
    background: #fff;
    text-align: center;
}

.psg-review-page-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 66px;
    height: 66px;
    margin: 0 auto 17px;
    border-radius: 50%;
    background: #edf3fc;
    color: var(--psg-rp-navy);
    font-size: 27px;
}

.psg-review-page-empty h3 {
    margin: 0 0 9px;
    color: var(--psg-rp-navy);
    font-size: 21px;
    font-weight: 800;
}

.psg-review-page-empty p {
    margin: 0;
    color: var(--psg-rp-muted);
    font-size: 13px;
    line-height: 1.7;
}

/* =========================================================
   12. PAGINATION
   Retains the existing AJAX pagination classes.
========================================================= */

.psg-review-page-pagination {
    padding-top: 28px;
    text-align: center;
}

.psg-review-page-pagination-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.psg-review-page-pagination .psg-pagination-btn,
.psg-review-page-pagination .psg-pagination-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 39px;
    padding: 9px 13px;
    border: 1px solid #d5dce7;
    border-radius: 5px;
    background: #fff;
    color: var(--psg-rp-navy);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.psg-review-page-pagination .psg-pagination-btn:hover,
.psg-review-page-pagination .psg-pagination-number:hover {
    border-color: var(--psg-rp-navy);
    background: #f0f4fa;
    color: var(--psg-rp-navy);
}

.psg-review-page-pagination .psg-pagination-current {
    border-color: var(--psg-rp-navy);
    background: var(--psg-rp-navy);
    color: #fff;
}

.psg-review-page-pagination .psg-pagination-current:hover {
    background: var(--psg-rp-navy);
    color: #fff;
}

.psg-review-page-pagination .psg-pagination-disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.psg-review-page-pagination-numbers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}

.psg-review-page-pagination-info {
    margin: 15px 0 0;
    color: #778194;
    font-size: 12px;
    line-height: 1.7;
}

.psg-review-page-pagination-info strong {
    color: var(--psg-rp-navy);
}

/* =========================================================
   13. TABLET
========================================================= */

@media (max-width: 991.98px) {
    .psg-review-page-main-row {
        margin-top: -45px;
    }

    .psg-review-page-form-card {
        padding: 27px 25px;
    }

    .psg-review-page-benefits {
        padding: 24px;
    }

    .psg-review-page-testimonial-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .psg-review-page-reviews-section {
        padding-top: 30px;
    }
}

/* =========================================================
   14. MOBILE
========================================================= */

@media (max-width: 767.98px) {
    .psg-review-page {
        padding-bottom: 55px;
    }

    .psg-review-page-main-row {
        margin-top: -30px;
    }

    .psg-review-page-form-card {
        padding: 23px 19px;
        border-radius: 9px;
    }

    .psg-review-page-form-heading {
        align-items: flex-start;
        gap: 13px;
        margin-bottom: 24px;
    }

    .psg-review-page-heading-icon {
        flex-basis: 48px;
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    .psg-review-page-form-heading h2 {
        font-size: 24px;
    }

    .psg-review-page-form-heading p {
        font-size: 12px;
    }

    .psg-review-page-field {
        margin-bottom: 19px;
    }

    .psg-review-page-stars {
        gap: 4px;
    }

    .psg-review-page-stars label {
        font-size: 27px;
    }

    .psg-review-page-rating-control {
        gap: 10px 15px;
    }

    .psg-review-page-benefits,
    .psg-review-page-tips {
        padding: 22px 19px;
    }

    .psg-review-page-benefits > h3 {
        font-size: 20px;
    }

    .psg-review-page-testimonial-list {
        grid-template-columns: minmax(0, 1fr);
        gap: 15px;
    }

    .psg-review-page-testimonial-card {
        padding: 20px;
    }

    .psg-review-page-section-heading {
        margin-bottom: 25px;
    }

    .psg-review-page-section-heading p {
        max-width: 450px;
        margin-right: auto;
        margin-left: auto;
    }

    .psg-review-page-pagination-controls {
        gap: 6px;
    }

    .psg-review-page-pagination .psg-pagination-btn,
    .psg-review-page-pagination .psg-pagination-number {
        min-height: 36px;
        padding: 8px 10px;
        font-size: 11px;
    }
}

/* =========================================================
   15. SMALL MOBILE
========================================================= */

@media (max-width: 420px) {
    .psg-review-page-form-card {
        padding: 20px 15px;
    }

    .psg-review-page-form-heading {
        gap: 10px;
    }

    .psg-review-page-heading-icon {
        flex-basis: 43px;
        width: 43px;
        height: 43px;
        font-size: 18px;
    }

    .psg-review-page-form-heading h2 {
        font-size: 21px;
    }

    .psg-review-page-input-wrap input {
        font-size: 13px;
    }

    .psg-review-page-field-footer {
        gap: 6px;
        font-size: 10px;
    }

    .psg-review-page-testimonial-top {
        flex-wrap: wrap;
        gap: 9px;
    }

    .psg-review-page-avatar {
        flex-basis: 48px;
        width: 48px;
        height: 48px;
    }

    .psg-review-page-date {
        margin-left: auto;
        font-size: 9px;
    }

    .psg-review-page-pagination-controls {
        gap: 5px;
    }

    .psg-review-page-pagination .psg-pagination-btn {
        padding: 8px;
    }
}

/* =========================================================
   16. ACCESSIBILITY / REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
    .psg-review-page *,
    .psg-review-page *::before,
    .psg-review-page *::after {
        scroll-behavior: auto !important;
        animation: none !important;
        transition: none !important;
    }
}
