.tp-reviews,
.tp-reviewForm {
    min-height: 68vh;
    padding: 58px 0 76px;
    color: var(--tp-navy, #20365c);
    background:
        radial-gradient(circle at 8% 0%, rgba(227, 167, 47, .14), transparent 26rem),
        linear-gradient(180deg, #f7f9fb 0%, #eef3f6 100%);
}

.tp-reviews__hero {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.tp-reviews h1,
.tp-reviewForm h1,
.tp-reviews h2,
.tp-reviewForm h2 {
    color: var(--tp-navy, #20365c);
}

.tp-reviews h1,
.tp-reviewForm h1 {
    margin: 0;
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 900;
    letter-spacing: -.045em;
    line-height: 1.05;
}

.tp-reviews__hero > p:not(.tp-reviews__eyebrow),
.tp-reviewForm__shell > header > p:last-child {
    max-width: 720px;
    margin: 20px auto 0;
    color: #536a85;
    font-size: 1.08rem;
    line-height: 1.65;
}

.tp-reviews__eyebrow {
    margin: 0 0 10px;
    color: #1f7776;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.tp-reviews__actions,
.tp-reviewForm__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tp-reviews__actions {
    justify-content: center;
    margin-top: 28px;
}

.tp-reviews__actions .btn,
.tp-reviewForm__actions .btn,
.tp-reviews__closing .btn {
    min-height: 46px;
    padding-inline: 22px;
}

.tp-reviews__notice {
    max-width: 820px;
    margin: 28px auto 0;
}

.tp-reviews__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 52px;
}

.tp-reviews__card,
.tp-reviews__empty,
.tp-reviews__closing,
.tp-reviewForm__shell {
    border: 1px solid rgba(35, 62, 97, .13);
    border-radius: 24px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 16px 38px rgba(32, 54, 92, .07);
}

.tp-reviews__card {
    display: flex;
    min-width: 0;
    min-height: 270px;
    flex-direction: column;
    padding: 25px;
}

.tp-reviews__rating {
    color: #d09926;
    font-size: 1.18rem;
    letter-spacing: .08em;
}

.tp-reviews__sample {
    display: inline-flex;
    align-self: flex-start;
    margin-top: 13px;
    padding: 4px 8px;
    border-radius: 999px;
    color: #716027;
    background: #fff7df;
    font-size: .73rem;
    font-weight: 750;
}

.tp-reviews__card h2 {
    margin: 15px 0 7px;
    font-size: 1.28rem;
    font-weight: 850;
    letter-spacing: -.025em;
}

.tp-reviews__body {
    margin: 0;
    color: #506782;
    line-height: 1.62;
}

.tp-reviews__card footer {
    margin-top: auto;
    padding-top: 20px;
    color: #687b90;
    font-size: .92rem;
}

.tp-reviews__card footer strong {
    color: #395875;
}

.tp-reviews__empty {
    max-width: 820px;
    margin: 52px auto 0;
    padding: 35px;
    text-align: center;
}

.tp-reviews__empty h2 {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 850;
}

.tp-reviews__empty > p:not(.tp-reviews__eyebrow) {
    max-width: 650px;
    margin: 12px auto 22px;
    color: #526985;
    line-height: 1.6;
}

.tp-reviews__closing {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    margin-top: 54px;
    padding: 32px;
    background: #e8f4f2;
}

.tp-reviews__closing h2 {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 850;
    letter-spacing: -.025em;
}

.tp-reviews__closing > div > p:last-child {
    max-width: 720px;
    margin: 10px 0 0;
    color: #4d6680;
    line-height: 1.55;
}

.tp-reviewForm__shell {
    max-width: 840px;
    margin: 0 auto;
    padding: clamp(26px, 5vw, 48px);
}

.tp-reviewForm__shell > header {
    max-width: 700px;
}

.tp-reviewForm__shell > header > p:last-child {
    margin-left: 0;
}

.tp-reviewForm__hint {
    margin-top: 24px;
    padding: 14px 16px;
    border: 1px solid #bddbd5;
    border-radius: 13px;
    color: #355d5b;
    background: #edf8f6;
}

.tp-reviewForm__form {
    margin-top: 28px;
}

.tp-reviewForm .form-label,
.tp-reviewForm legend {
    color: #263e60;
    font-weight: 800;
}

.tp-reviewForm .form-control,
.tp-reviewForm .form-select {
    min-height: 48px;
    border-color: rgba(35, 62, 97, .19);
}

.tp-reviewForm textarea.form-control {
    min-height: 175px;
}

.tp-reviewForm__rating {
    padding: 0;
    border: 0;
}

.tp-reviewForm__ratingChoices {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 9px;
}

.tp-reviewForm__ratingChoices input {
    position: absolute;
    opacity: 0;
}

.tp-reviewForm__ratingChoices label {
    display: inline-flex;
    min-width: 58px;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 1px solid #b5ccc9;
    border-radius: 12px;
    color: #2e6867;
    background: #fff;
    cursor: pointer;
    font-weight: 800;
}

.tp-reviewForm__ratingChoices input:checked + label {
    border-color: #2c7774;
    color: #fff;
    background: #3e7774;
    box-shadow: 0 6px 16px rgba(43, 104, 101, .2);
}

.tp-reviewForm__ratingChoices input:focus-visible + label {
    outline: 3px solid rgba(227, 167, 47, .55);
    outline-offset: 2px;
}

.tp-reviewForm__actions {
    margin-top: 30px;
}

@media (max-width: 991.98px) {
    .tp-reviews__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .tp-reviews,
    .tp-reviewForm {
        padding: 40px 0 56px;
    }

    .tp-reviews__grid {
        grid-template-columns: 1fr;
        margin-top: 38px;
    }

    .tp-reviews__closing {
        align-items: stretch;
        flex-direction: column;
        padding: 24px;
    }

    .tp-reviews__closing .btn {
        align-self: flex-start;
    }
}
