.rew-form-wrap,
.rew-carousel-wrap {
    --rew-primary: #052963;
    --rew-text: #052963;
    --rew-muted: #6b7280;
    --rew-bg: #ffffff;
    --rew-card-bg: #e1eaf7;
    --rew-border: #052963;
    --rew-radius: 20px;
    --rew-max-width: 1180px;
    --rew-shadow: none;
    box-sizing: border-box;
    color: var(--rew-text);
}

.rew-form-wrap *,
.rew-carousel-wrap * {
    box-sizing: border-box;
}

.rew-form-wrap {
    max-width: var(--rew-max-width);
    margin: 0 auto;
    background: transparent;
}

.rew-form-inner {
    padding: clamp(22px, 4vw, 42px);
    border: 1px solid var(--rew-border);
    border-radius: var(--rew-radius);
    box-shadow: var(--rew-shadow);
    background: var(--rew-bg);
}

.rew-form-minimal .rew-form-inner {
    border: 0;
    box-shadow: none;
    padding-left: 0;
    padding-right: 0;
}

.rew-form-title {
    margin: 0 0 10px;
    color: var(--rew-text);
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.15;
    font-weight: 800;
}

.rew-form-subtitle {
    margin: 0 0 24px;
    color: var(--rew-muted);
    font-size: 16px;
    line-height: 1.65;
}

.rew-form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.rew-notice {
    width: 100%;
    margin: 0 0 18px;
    padding: 13px 16px;
    border-radius: 12px;
    font-weight: 600;
}

.rew-notice-success {
    background: #ecfdf3;
    color: #027a48;
    border: 1px solid #abefc6;
}

.rew-notice-error {
    background: #fff1f3;
    color: #c01048;
    border: 1px solid #fecdd6;
}

.rew-field-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.rew-field {
    width: 100%;
    margin-bottom: 16px;
    text-align: left;
}

.rew-field label {
    display: block;
    margin: 0 0 8px;
    color: var(--rew-text);
    font-size: 14px;
    font-weight: 700;
}

.rew-field input,
.rew-field textarea {
    width: 100%;
    min-height: 50px;
    border: 1px solid var(--rew-border);
    border-radius: 14px;
    background: #fff;
    color: var(--rew-text);
    font-size: 16px;
    line-height: 1.5;
    padding: 13px 15px;
    outline: none;
    transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}

.rew-field textarea {
    min-height: 140px;
    resize: vertical;
}

.rew-field input:focus,
.rew-field textarea:focus {
    outline: none !important;
    box-shadow: none !important;
    border-color: var(--rew-border);
}

.rew-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: var(--rew-primary);
    color: #fff;
    min-height: 52px;
    padding: 14px 26px;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    transition: transform .2s ease, opacity .2s ease;
    box-shadow: none !important;
}

.rew-submit:hover,
.rew-submit:focus {
    transform: translateY(-1px);
    opacity: .96;
    box-shadow: none !important;
    outline: none !important;
}

.rew-submit:active {
    transform: translateY(0);
}

.rew-hp {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.rew-powered {
    margin-top: 18px;
    color: var(--rew-muted);
    font-size: 12px;
    text-align: center;
}

.rew-powered a {
    color: var(--rew-primary);
    text-decoration: none;
    font-weight: 700;
}

.rew-carousel-wrap {
    width: 100%;
    margin: 0 auto;
}

.rew-empty {
    padding: 22px;
    border: 1px dashed var(--rew-border);
    border-radius: var(--rew-radius);
    color: var(--rew-muted);
    text-align: center;
}

.rew-carousel {
    position: relative;
    --rew-columns: 3;
    --rew-gap: 22px;
    width: 100%;
}

.rew-viewport {
    overflow: hidden;
    width: 100%;
}

.rew-track {
    display: flex;
    align-items: stretch;
    gap: var(--rew-gap);
    transform: translate3d(0, 0, 0);
    transition: transform .45s ease;
    will-change: transform;
}

.rew-slide {
    flex: 0 0 calc((100% - (var(--rew-gap) * (var(--rew-columns) - 1))) / var(--rew-columns));
    min-width: 0;
    display: flex;
}

.rew-card {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 265px;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: flex-start;
    padding: clamp(22px, 3vw, 32px);
    border: 1px solid var(--rew-border);
    border-radius: var(--rew-radius);
    background: var(--rew-card-bg);
    box-shadow: var(--rew-shadow);
    overflow: hidden;
}

.rew-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 0;
    background: var(--rew-primary);
    opacity: .9;
}

.rew-quote {
    position: absolute;
    top: 10px;
    right: 22px;
    color: var(--rew-primary);
    opacity: .12;
    font-size: 96px;
    line-height: 1;
    font-family: Georgia, serif;
    pointer-events: none;
}

.rew-text {
    position: relative;
    z-index: 1;
    color: var(--rew-text);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: var(--rew-author-gap, 24px);
}

.rew-text p {
    margin: 0;
}

.rew-author {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: var(--rew-author-justify, center);
    gap: 12px;
    min-width: 0;
    margin-top: auto;
    text-align: var(--rew-author-align, center);
}

.rew-author-no-avatar .rew-author-info {
    width: 100%;
}

.rew-avatar {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(5,41,99,.10);
    color: var(--rew-primary);
    border: 1px solid rgba(5,41,99,.20);
    font-weight: 900;
    letter-spacing: .02em;
    overflow: hidden;
}

.rew-avatar-media {
    background: transparent;
}

.rew-avatar-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rew-avatar-icon i,
.rew-avatar-icon svg {
    display: block;
    width: 52%;
    height: 52%;
    color: currentColor;
    fill: currentColor;
}

.rew-author-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    text-align: inherit;
}

.rew-author strong {
    color: var(--rew-text);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.25;
}

.rew-author em {
    margin-top: 4px;
    color: var(--rew-muted);
    font-size: 13px;
    font-style: normal;
    line-height: 1.35;
}

.rew-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    margin-top: 22px;
}

.rew-nav {
    position: static;
    z-index: 1;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: var(--rew-primary);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transform: none;
    box-shadow: none !important;
    outline: none;
    transition: transform .2s ease, opacity .2s ease, background .2s ease, color .2s ease;
    padding: 0;
}

.rew-nav-icon {
    width: 1em;
    height: 1em;
    display: block;
    pointer-events: none;
}

.rew-nav:hover,
.rew-nav:focus {
    transform: none;
    box-shadow: none !important;
    outline: none !important;
}

.rew-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    padding-top: 0;
}

.rew-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(5,41,99,.35);
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, width .2s ease;
}

.rew-dot.is-active {
    width: 20px;
    background: var(--rew-primary);
}

.rew-full {
    display: grid;
    gap: 34px;
}

@media (max-width: 1024px) {
    .rew-carousel {
        --rew-columns: 2;
    }

}

@media (max-width: 767px) {
    .rew-field-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .rew-form-inner {
        padding: 20px;
        border-radius: calc(var(--rew-radius) - 4px);
    }

    .rew-submit {
        width: 100%;
    }

    .rew-carousel {
        --rew-columns: 1;
        --rew-gap: 16px;
    }

    .rew-card {
        min-height: 230px;
    }

    .rew-nav {
        width: 38px;
        height: 38px;
        font-size: 28px;
    }
}

.rew-labels-hidden .rew-field label {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Neutralize browser/Elementor focus glow on the public form. */
.elementor-widget-recenzii_ew_form .rew-field input:focus,
.elementor-widget-recenzii_ew_form .rew-field textarea:focus,
.rew-form-wrap .rew-field input:focus,
.rew-form-wrap .rew-field textarea:focus {
    outline: none !important;
    box-shadow: none !important;
}

.elementor-widget-recenzii_ew_form .rew-submit,
.rew-form-wrap .rew-submit,
.elementor-widget-recenzii_ew_form .rew-submit:hover,
.elementor-widget-recenzii_ew_form .rew-submit:focus,
.rew-form-wrap .rew-submit:hover,
.rew-form-wrap .rew-submit:focus {
    box-shadow: none !important;
}


/* v1.3: use icon arrows and completely remove card shadows. */
.rew-carousel-wrap .rew-card,
.elementor-widget-recenzii_ew_testimonial_carousel .rew-card {
    box-shadow: none !important;
    filter: none !important;
}


/* v1.5: automatic curly quotation marks around review text. */
.rew-carousel-wrap .rew-text {
    quotes: "“" "”";
}

.rew-carousel-wrap .rew-text::before {
    content: open-quote;
}

.rew-carousel-wrap .rew-text::after {
    content: close-quote;
}

.rew-carousel-wrap .rew-text p {
    display: inline;
}

.rew-carousel-wrap .rew-text p + p::before {
    content: "\A";
    white-space: pre;
}

/* Recenzii EW 1.8 - navigație sub carduri, fără suprapunere sau mișcare. */
.rew-submit,
.rew-nav {
    transition-property: color, background-color, border-color, opacity, box-shadow !important;
}
.rew-submit:hover,
.rew-submit:focus {
    transform: none !important;
}
.rew-nav:hover,
.rew-nav:focus {
    transform: none !important;
}

/* Recenzii EW 1.9 - prezentare Google Maps inspirată de cardurile oficiale. */
.rew-google-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 0 auto clamp(24px, 4vw, 40px);
    color: var(--rew-text);
    text-align: center;
}

.rew-google-summary-title {
    font-size: clamp(20px, 2.4vw, 28px);
    font-weight: 800;
    line-height: 1.2;
}

.rew-rating {
    display: inline-flex;
    line-height: 1;
}

.rew-rating-stars {
    position: relative;
    display: inline-block;
    color: #c7c7c7;
    font-size: 23px;
    line-height: 1;
    letter-spacing: 1px;
}

.rew-rating-stars::before {
    content: "★★★★★";
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--rew-rating-percent, 0%);
    overflow: hidden;
    color: #fbbc04;
    white-space: nowrap;
}

.rew-google-review-count {
    color: var(--rew-text);
    font-size: 14px;
    line-height: 1.4;
    text-decoration: none;
}

.rew-google-review-count strong {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.rew-google-attribution {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #5f6368;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    letter-spacing: normal;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.rew-google-attribution-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.rew-google-attribution-wrap.is-compact {
    margin: 0 0 16px;
}

.rew-google-provider-attributions {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    color: #5e5e5e;
    font-size: 12px;
}

.rew-google-provider-attributions a {
    color: inherit;
}

.rew-google-g {
    width: 24px;
    height: 24px;
    display: block;
    flex: 0 0 auto;
}

.rew-card-google {
    min-height: 235px;
    padding: clamp(20px, 2.6vw, 26px);
    border-color: #dadce0;
    background: #fff;
    color: #202124;
}

.rew-google-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 10px;
}

.rew-google-author {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: #202124;
    text-decoration: none;
}

.rew-google-avatar,
.rew-card-google .rew-avatar {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 50%;
    object-fit: cover;
}

.rew-google-author-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.rew-google-author-info strong {
    overflow: hidden;
    color: #202124;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rew-google-author-info small {
    color: #80868b;
    font-size: 13px;
    line-height: 1.35;
}

.rew-google-card-source {
    display: inline-flex;
    flex: 0 0 auto;
    padding: 2px;
}

.rew-google-card-source .rew-google-g {
    width: 20px;
    height: 20px;
}

.rew-card-google > .rew-rating {
    margin-bottom: 10px;
}

.rew-card-google .rew-rating-stars {
    font-size: 18px;
}

.rew-google-text {
    color: #202124;
    font-size: 15px;
    line-height: 1.55;
    margin-bottom: 12px;
}

.rew-carousel-wrap .rew-google-text::before,
.rew-carousel-wrap .rew-google-text::after {
    content: none;
}

.rew-google-read-more {
    margin-top: auto;
    color: #5f6368;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}

.rew-google-translated {
    display: block;
    margin: -4px 0 10px;
    color: #80868b;
    font-size: 11px;
    line-height: 1.35;
}

.rew-google-read-more:hover,
.rew-google-read-more:focus {
    color: #1a73e8;
    text-decoration: underline;
}

.rew-google-notice {
    margin: 14px 0 0;
    color: var(--rew-muted);
    font-size: 13px;
    line-height: 1.45;
    text-align: center;
}

@media (max-width: 767px) {
    .rew-google-summary {
        margin-bottom: 24px;
    }

    .rew-card-google {
        min-height: 220px;
    }
}
