/* ==========================================================================
   Page Avis clients (refonte V3) — blocs Reviewshero, Reassurance,
   Reviewslist, Advisor, Faqtabs. Maquette Figma « Avis-clients V3 » (1440px).
   ========================================================================== */

.rv-hero,
.rv-reassurance,
.rv-list,
.rv-advisor,
.rv-faq,
.rv-modal {
    --rv-navy: #0a2463;
    --rv-blue: #164fda;
    --rv-blue-light: #2563eb;
    --rv-orange: #fb5736;
    --rv-page: #f0f2f5;
    --rv-font-title: "Outfit", sans-serif;
    --rv-font-text: "Inter", sans-serif;
    font-family: var(--rv-font-text);
    color: var(--rv-navy);
}

.rv-hero *,
.rv-reassurance *,
.rv-list *,
.rv-advisor *,
.rv-faq *,
.rv-modal * {
    box-sizing: border-box;
}

.rv-container {
    max-width: 1240px;
    margin: 0 auto;
}

.rv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    background: var(--rv-orange);
    color: #fff;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--rv-font-text);
    font-weight: 500;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: background-color 0.2s;
}

.rv-btn:hover,
.rv-btn:focus-visible {
    background: #e8452a;
    color: #fff;
}

.rv-btn--lg {
    width: 100%;
    padding: 16px;
    font-size: 20px;
    line-height: 24px;
}

.rv-btn--sm {
    height: 38px;
    padding: 0 16px;
    font-size: 18px;
    line-height: 24px;
}

/* --- Hero ----------------------------------------------------------------- */

.rv-hero {
    position: relative;
    overflow: hidden;
    height: 405px;
    background-color: var(--rv-navy);
    background-image: linear-gradient(258.29deg, #081e55 1.31%, #0a2463 70.5%, #164fda 112%);
    color: #fff;
}

.rv-hero__band {
    position: absolute;
    top: 0;
    left: calc(50% + 50px);
    width: 541px;
    height: 414px;
    background: #0052b4;
    clip-path: polygon(150px 0, 541px 0, 391px 414px, 0 414px);
}

.rv-hero__glow {
    position: absolute;
    top: 177px;
    left: 0;
    height: 274px;
    pointer-events: none;
}

.rv-hero__glow--left {
    width: 84.375%;
    background-image:
        linear-gradient(0deg, rgba(9, 42, 124, 0.75) 0%, rgba(9, 42, 124, 0) 100%),
        linear-gradient(194.31deg, rgba(251, 54, 64, 0) 55.12%, rgba(251, 54, 64, 0.75) 85.05%);
}

.rv-hero__glow--right {
    width: 100%;
    transform: scaleX(-1);
    background-image:
        linear-gradient(0deg, rgba(9, 42, 124, 0.75) 0%, rgba(9, 42, 124, 0) 100%),
        linear-gradient(192.15deg, rgba(251, 54, 64, 0) 55.12%, rgba(251, 54, 64, 0.75) 85.05%);
}

.rv-hero__inner {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.rv-hero__breadcrumb {
    position: absolute;
    top: 14px;
    left: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--rv-font-title);
    font-size: 12px;
    letter-spacing: 0.6px;
}

.rv-hero__breadcrumb a,
.rv-hero__breadcrumb span {
    color: #fff;
    text-decoration: none;
}

.rv-hero__breadcrumb img {
    transform: rotate(-90deg);
}

.rv-hero__text {
    padding-top: 8px;
}

.rv-hero__title {
    margin: 0 0 8px;
    font-family: var(--rv-font-title);
    font-weight: 900;
    font-size: 60px;
    line-height: 56px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: #fff;
}

.rv-hero__highlight {
    margin: 0;
    font-family: var(--rv-font-title);
    font-weight: 900;
    font-size: 40px;
    line-height: 50px;
    color: var(--rv-orange);
}

.rv-hero__subtitle {
    margin: 0;
    font-family: var(--rv-font-title);
    font-weight: 700;
    font-size: 30px;
    line-height: 38px;
    letter-spacing: 0.6px;
    color: #fff;
}

.rv-hero__card {
    flex: 0 0 547px;
    width: 547px;
    min-height: 281px;
    padding: 47px 54px 38px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: rgba(0, 73, 148, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 10px;
}

.rv-hero__card-title {
    margin: 0 0 14px;
    font-weight: 700;
    font-size: 40px;
    line-height: 48px;
    color: #fff;
}

.rv-hero__card-text {
    margin: 0 0 32px;
    font-size: 19px;
    line-height: 23px;
    color: #fff;
}

/* --- Bandeau de réassurance ------------------------------------------------ */

.rv-reassurance {
    background: #fff;
}

.rv-reassurance__list {
    min-height: 108px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rv-reassurance__item {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 198px;
}

.rv-reassurance__icon {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--rv-blue);
    border: 1px solid rgba(39, 217, 229, 0.1);
    border-radius: 50%;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.25);
}

.rv-reassurance__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-family: "DM Sans", sans-serif;
    font-optical-sizing: auto;
    letter-spacing: -0.6px;
    color: var(--rv-navy);
}

.rv-reassurance__title {
    font-weight: 800;
    font-size: 14px;
    line-height: 1.2;
}

.rv-reassurance__text {
    font-size: 13px;
    line-height: 15px;
}

/* Copie de la liste utilisée uniquement pour le défilement mobile */
.rv-reassurance__item--clone {
    display: none;
}

@keyframes rv-marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .rv-reassurance__list {
        animation: none !important;
    }

    .rv-reassurance__viewport {
        overflow-x: auto !important;
    }

    .rv-reassurance__item--clone {
        display: none !important;
    }
}

/* --- Liste des avis -------------------------------------------------------- */

.rv-list {
    background: var(--rv-page);
    padding: 39px 0 54px;
    scroll-margin-top: 80px;
}

.rv-list__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.rv-list__head-main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 17px;
    padding-top: 8px;
}

.rv-list__title {
    margin: 0;
    font-family: var(--rv-font-title);
    font-weight: 900;
    font-size: 32px;
    line-height: 32px;
    text-transform: uppercase;
    color: var(--rv-navy);
}

.rv-sort select {
    width: 215.5px;
    height: 40px;
    padding: 0 40px 0 16px;
    appearance: none;
    -webkit-appearance: none;
    background: #fff url("../images/avis/sort-chevron.svg") no-repeat right 16px center;
    border: 1px solid #dfe7f1;
    border-radius: 12px;
    font-family: var(--rv-font-text);
    font-size: 12px;
    color: #40536d;
    cursor: pointer;
}

.rv-list__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.rv-card {
    min-height: 250px;
    padding: 30px 40px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
}

.rv-card__head {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.rv-card__name-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 10px;
}

.rv-card__name {
    margin: 0;
    font-family: var(--rv-font-text);
    font-weight: 800;
    font-size: 22px;
    line-height: 36px;
    color: var(--rv-navy);
}

.rv-stars {
    position: relative;
    display: inline-block;
    width: 131px;
    height: 25px;
    flex: 0 0 131px;
}

.rv-stars img {
    display: block;
    width: 131px;
    max-width: none;
    height: 25px;
}

.rv-stars__base {
    filter: grayscale(1);
    opacity: 0.3;
}

.rv-stars__fill {
    position: absolute;
    inset: 0 auto 0 0;
    overflow: hidden;
}

.rv-card__date {
    font-weight: 600;
    font-size: 18px;
    line-height: 20px;
    letter-spacing: -0.36px;
    color: #677198;
}

.rv-card__text {
    margin: 24px 0 0;
    font-size: 20px;
    line-height: 24px;
    color: var(--rv-navy);
    overflow-wrap: anywhere;
}

.rv-card__reply {
    margin-top: 24px;
    padding: 10px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #e0e3ec;
    border-radius: 10px;
}

.rv-card__reply-head {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    line-height: 24px;
    color: var(--rv-navy);
}

.rv-card__reply-head strong {
    font-weight: 700;
}

.rv-card__reply-head b {
    font-weight: 900;
}

.rv-card__reply-head em {
    font-style: normal;
    color: var(--rv-orange);
}

.rv-card__reply-text {
    margin: 0;
    font-size: 20px;
    line-height: 24px;
    color: var(--rv-navy);
}

/* --- Pagination ------------------------------------------------------------ */

.rv-pagination {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--rv-font-title);
}

.rv-pagination__btn {
    min-width: 32px;
    height: 31px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #c6c7cf;
    border-radius: 4px;
    font-size: 16px;
    line-height: 1;
    color: #727690;
    text-decoration: none;
}

.rv-pagination__btn:hover {
    border-color: var(--rv-blue);
    color: var(--rv-blue);
}

.rv-pagination__btn.is-active {
    background: var(--rv-blue);
    color: #f2f2f4;
}

.rv-pagination__btn.is-disabled {
    background: transparent;
    pointer-events: none;
}

.rv-pagination__btn--icon img + img {
    margin-left: -10px;
}

.rv-rot-left {
    transform: rotate(-90deg);
}

.rv-rot-right {
    transform: rotate(90deg);
}

.rv-pagination__dots {
    font-size: 16px;
    color: #727690;
}

/* --- Parler à un conseiller ------------------------------------------------ */

.rv-advisor {
    background: var(--rv-page);
    padding: 26px 0 17px;
}

.rv-advisor__inner {
    position: relative;
    min-height: 403px;
}

.rv-advisor__inner::before {
    content: "";
    position: absolute;
    top: 49px;
    left: 279px;
    right: 4px;
    height: 346px;
    background: #e8ebf4;
    border-radius: 10px;
}

.rv-advisor__image {
    position: absolute;
    top: 0;
    left: 3px;
    width: 413.69px;
    height: auto;
}

.rv-advisor__content {
    position: relative;
    margin-left: 469px;
    padding-top: 70px;
}

.rv-advisor__badge {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 12px;
    background: var(--rv-orange);
    border-radius: 50px;
    font-family: var(--rv-font-title);
    font-weight: 500;
    font-size: 22px;
    color: #fff;
}

.rv-advisor__title {
    margin: 3px 0 0;
    font-family: var(--rv-font-title);
    font-weight: 900;
    font-size: 40px;
    line-height: 50px;
    color: var(--rv-navy);
}

.rv-advisor__text {
    margin: 15px 0 0;
    font-size: 16px;
    line-height: 19px;
    color: var(--rv-navy);
}

.rv-advisor__cards {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 42px;
}

.rv-advisor__card {
    width: 299px;
    min-height: 148px;
    padding: 24px 16px 35px 17px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    background: #dfe7f1;
    border: 1px solid #8792c0;
    border-radius: 10px;
}

.rv-advisor__card-label {
    margin: 0;
    font-family: var(--rv-font-title);
    font-weight: 900;
    font-size: 25px;
    line-height: 32px;
    color: var(--rv-navy);
}

.rv-advisor__pill {
    width: 266px;
    max-width: 100%;
    min-height: 47px;
    padding: 5px 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--rv-blue);
    border-radius: 15px;
    font-family: var(--rv-font-title);
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
}

.rv-advisor__pill:hover {
    background: #1243b8;
    color: #fff;
}

.rv-advisor__pill--phone {
    font-weight: 900;
    font-size: 30px;
    line-height: 38px;
}

.rv-advisor__pill--email {
    font-weight: 800;
    font-size: 20px;
    line-height: 25px;
}

/* --- FAQ ------------------------------------------------------------------- */

.rv-faq,
.rv-modal {
    background: var(--rv-page);
    padding: 50px 0 66px;
}

.rv-faq__title {
    margin: 0;
    text-align: center;
    font-family: var(--rv-font-text);
    font-weight: 900;
    font-size: 44px;
    line-height: 53px;
    letter-spacing: -0.88px;
    color: var(--rv-navy);
}

.rv-faq__title span {
    color: var(--rv-blue-light);
}

.rv-faq__filters {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.rv-faq__filter {
    padding: 8px 14px;
    background: #fff;
    border: 1px solid #e3eaf3;
    border-radius: 999px;
    font-family: var(--rv-font-text);
    font-size: 13px;
    line-height: 16px;
    color: #607086;
    cursor: pointer;
}

.rv-faq__filter.is-active {
    background: var(--rv-blue-light);
    color: #fff;
}

.rv-faq__list {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rv-faq__filters + .rv-faq__list {
    margin-top: 20px;
}

.rv-faq__title + .rv-faq__list {
    margin-top: 24px;
}

.rv-faq__item {
    padding: 32px 20px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 5px 16px rgba(8, 15, 52, 0.06);
}

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

.rv-faq__question {
    width: 100%;
    padding: 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    background: none;
    border: 0;
    text-align: left;
    font-family: var(--rv-font-text);
    font-weight: 800;
    font-size: 22px;
    line-height: 28px;
    color: var(--rv-navy);
    cursor: pointer;
}

.rv-faq__toggle {
    flex: 0 0 35px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #8792c0;
    border-radius: 8px;
}

.rv-faq__icon-minus,
.rv-faq__item.is-open .rv-faq__icon-plus {
    display: none;
}

.rv-faq__item.is-open .rv-faq__icon-minus {
    display: block;
}

.rv-faq__answer {
    margin-top: 10px;
    font-size: 20px;
    line-height: 24px;
    color: #092a7c;
}

/* --- Responsive ------------------------------------------------------------ */

@media (max-width: 1272px) {
    .rv-container {
        padding: 0 16px;
    }
}

@media (max-width: 1199px) {
    .rv-hero__card {
        flex-basis: 460px;
        width: 460px;
        padding: 40px 32px 32px;
    }

    .rv-hero__card-title {
        font-size: 34px;
        line-height: 40px;
    }

    /* Conseiller : visuel au-dessus, panneau pleine largeur */
    .rv-advisor__inner {
        min-height: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .rv-advisor__inner::before {
        display: none;
    }

    .rv-advisor__image {
        position: relative;
        left: 0;
        width: 320px;
        max-width: 80%;
        margin-bottom: -60px;
        z-index: 1;
    }

    .rv-advisor__content {
        width: 100%;
        margin-left: 0;
        padding: 84px 32px 32px;
        background: #e8ebf4;
        border-radius: 10px;
        text-align: center;
    }

    .rv-advisor__cards {
        justify-content: center;
        gap: 20px;
    }

    .rv-advisor__card {
        text-align: left;
    }
}

@media (max-width: 991px) {
    .rv-hero {
        height: auto;
    }

    .rv-hero__band {
        left: 45%;
    }

    .rv-hero__glow {
        top: auto;
        bottom: -46px;
    }

    .rv-hero__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 32px;
        padding-top: 64px;
        padding-bottom: 40px;
    }

    .rv-hero__card {
        flex-basis: auto;
        width: 100%;
        max-width: 547px;
        min-height: 0;
    }

    /* Réassurance : une seule ligne qui défile en continu (même principe que BrandLogos) */
    .rv-reassurance__viewport {
        padding: 0;
        overflow: hidden;
    }

    .rv-reassurance__list {
        width: max-content;
        min-height: 92px;
        justify-content: flex-start;
        animation: rv-marquee 22s linear infinite;
    }

    .rv-reassurance__viewport:hover .rv-reassurance__list,
    .rv-reassurance__viewport:focus-within .rv-reassurance__list {
        animation-play-state: paused;
    }

    /* Espacement porté par chaque élément (et non par gap) pour une boucle sans à-coup */
    .rv-reassurance__item {
        flex: 0 0 auto;
        min-width: 0;
        padding-right: 40px;
    }

    .rv-reassurance__item--clone {
        display: flex;
    }

    .rv-list__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .rv-card {
        min-height: 0;
    }

    .rv-faq__title {
        font-size: 34px;
        line-height: 42px;
    }
}

@media (max-width: 575px) {
    .rv-btn--lg {
        font-size: 17px;
        padding: 14px;
    }

    .rv-hero__inner {
        padding-top: 52px;
    }

    .rv-hero__title {
        font-size: 40px;
        line-height: 40px;
        letter-spacing: 1.2px;
    }

    .rv-hero__highlight {
        font-size: 28px;
        line-height: 34px;
    }

    .rv-hero__subtitle {
        font-size: 20px;
        line-height: 26px;
    }

    .rv-hero__card {
        padding: 28px 20px 24px;
    }

    .rv-hero__card-title {
        font-size: 28px;
        line-height: 34px;
        margin-bottom: 10px;
    }

    .rv-hero__card-text {
        font-size: 16px;
        line-height: 21px;
        margin-bottom: 24px;
    }

    .rv-hero__card-text br,
    .rv-advisor__text br {
        display: none;
    }

    .rv-list {
        padding-top: 32px;
    }

    .rv-list__head {
        flex-direction: column;
        align-items: stretch;
    }

    .rv-list__title {
        font-size: 24px;
        line-height: 28px;
    }

    .rv-sort select {
        width: 100%;
    }

    .rv-card {
        padding: 20px;
    }

    .rv-card__name {
        font-size: 18px;
        line-height: 28px;
    }

    .rv-stars,
    .rv-stars img {
        width: 105px;
        height: 20px;
        flex-basis: 105px;
    }

    .rv-card__date {
        font-size: 15px;
    }

    .rv-card__text,
    .rv-card__reply-head,
    .rv-card__reply-text {
        margin-top: 16px;
        font-size: 16px;
        line-height: 21px;
    }

    .rv-card__reply-head,
    .rv-card__reply-text {
        margin-top: 0;
    }

    .rv-card__reply {
        margin-top: 16px;
        padding: 10px 14px;
    }

    .rv-pagination {
        gap: 4px;
    }

    .rv-pagination__btn {
        min-width: 28px;
        padding: 0 6px;
    }

    .rv-advisor {
        padding-top: 40px;
    }

    .rv-advisor__content {
        padding: 76px 16px 20px;
    }

    .rv-advisor__badge {
        font-size: 18px;
    }

    .rv-advisor__title {
        font-size: 28px;
        line-height: 34px;
    }

    .rv-advisor__card {
        width: 100%;
        min-height: 0;
        padding: 18px 16px;
    }

    .rv-advisor__card-label {
        font-size: 22px;
        line-height: 28px;
    }

    .rv-advisor__pill {
        width: 100%;
    }

    .rv-advisor__pill--phone {
        font-size: 26px;
    }

    .rv-faq {
        padding: 40px 0 48px;
    }

    .rv-faq__title {
        font-size: 28px;
        line-height: 34px;
    }

    .rv-faq__list {
        gap: 12px;
    }

    .rv-faq__item {
        padding: 20px 16px;
    }

    .rv-faq__question {
        font-size: 17px;
        line-height: 22px;
    }

    .rv-faq__toggle {
        flex-basis: 30px;
        width: 30px;
        height: 30px;
    }

    .rv-faq__answer {
        font-size: 16px;
        line-height: 21px;
    }
}

/* --- Note moyenne (étape 2) ------------------------------------------------ */

.rv-list__summary {
    margin: -6px 0 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #677198;
}

.rv-stars--sm,
.rv-stars--sm img {
    width: 89px;
    height: 17px;
    flex-basis: 89px;
}

/* --- Modale « Laisser un avis » ------------------------------------------- */

.rv-modal {
    position: fixed;
    inset: 0;
    margin: auto;
    width: min(720px, calc(100% - 32px));
    max-height: calc(100% - 32px);
    overflow-y: auto;
    padding: 0;
    border: 0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(8, 15, 52, 0.3);
}

.rv-modal::backdrop {
    background: rgba(10, 36, 99, 0.6);
}

.rv-form {
    position: relative;
    padding: 40px;
}

.rv-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: #e8ebf4;
    color: var(--rv-navy);
    font-size: 26px;
    line-height: 36px;
    cursor: pointer;
}

.rv-modal__title {
    margin: 0 40px 8px 0;
    font-family: var(--rv-font-title);
    font-weight: 900;
    font-size: 32px;
    line-height: 38px;
    color: var(--rv-navy);
}

.rv-modal__intro {
    margin: 0 0 24px;
    font-size: 16px;
    line-height: 22px;
    color: #40536d;
}

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

.rv-form__rating {
    margin: 0 0 20px;
    padding: 0;
    border: 0;
}

.rv-form__rating legend,
.rv-form__field > span {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--rv-navy);
}

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

.rv-rating-input input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.rv-rating-input label {
    font-size: 36px;
    line-height: 1;
    color: #d5d9e2;
    cursor: pointer;
    transition: color 0.15s;
}

.rv-rating-input input:checked ~ label,
.rv-rating-input label:hover,
.rv-rating-input label:hover ~ label {
    color: #ffbb00;
}

.rv-rating-input input:focus-visible + label {
    outline: 2px solid var(--rv-blue);
    outline-offset: 2px;
    border-radius: 4px;
}

.rv-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 20px;
}

.rv-form__field {
    display: block;
}

.rv-form__field--full {
    grid-column: 1 / -1;
}

.rv-form__field input,
.rv-form__field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #c6c7cf;
    border-radius: 8px;
    background: #fff;
    font-family: var(--rv-font-text);
    font-size: 16px;
    color: var(--rv-navy);
}

.rv-form__field input:focus,
.rv-form__field textarea:focus {
    outline: none;
    border-color: var(--rv-blue);
    box-shadow: 0 0 0 3px rgba(22, 79, 218, 0.15);
}

.rv-form__field textarea {
    resize: vertical;
}

.rv-form__field small {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    color: #677198;
}

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

.rv-form__consent {
    margin: 20px 0 24px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    line-height: 18px;
    color: #40536d;
    cursor: pointer;
}

.rv-form__consent input {
    flex: 0 0 auto;
    margin-top: 2px;
    width: 16px;
    height: 16px;
    accent-color: var(--rv-blue);
}

.rv-form__alert {
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 15px;
    line-height: 21px;
}

.rv-form__alert ul {
    margin: 0;
    padding-left: 18px;
}

.rv-form__alert--success {
    background: #e3f6e8;
    color: #1d6b35;
}

.rv-form__alert--error {
    background: #fdeceb;
    color: #b42318;
}

@media (max-width: 575px) {
    .rv-form {
        padding: 28px 16px 20px;
    }

    .rv-modal__title {
        font-size: 24px;
        line-height: 30px;
    }

    .rv-form__grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
