.brgmr-wrap {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px 16px;
    color: var(--brgmr-text);
    font-family: var(--brgmr-font);
}

.brgmr-wrap * {
    box-sizing: border-box;
}

.brgmr-form-shell,
.brgmr-reviews-shell {
    background: var(--brgmr-bg);
    border: 1px solid #ececec;
    border-radius: var(--brgmr-radius);
    padding: 28px;
    margin-bottom: 28px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .05);
}

.brgmr-form-shell {
    border-top: 4px solid var(--brgmr-secondary);
}

.brgmr-reviews-shell {
    border-top: 4px solid var(--brgmr-primary);
}

.brgmr-form-head,
.brgmr-reviews-head {
    max-width: 740px;
    margin: 0 auto 24px;
    text-align: center;
}

.brgmr-kicker {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--brgmr-secondary);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.brgmr-form-head h2,
.brgmr-reviews-head h2 {
    margin: 0 0 8px;
    color: var(--brgmr-primary);
    font-family: var(--brgmr-heading-font);
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.2;
    font-weight: 800;
}

.brgmr-form-head p {
    margin: 0;
    color: var(--brgmr-muted);
    font-size: 15px;
    line-height: 1.6;
}

.brgmr-form {
    display: grid;
    gap: 16px;
}

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

.brgmr-field,
.brgmr-upload,
.brgmr-rating-field {
    width: 100%;
}

.brgmr-field span,
.brgmr-rating-field legend {
    display: inline-block;
    margin-bottom: 7px;
    color: var(--brgmr-primary);
    font-size: 14px;
    font-weight: 700;
}

.brgmr-field em,
.brgmr-rating-field em {
    color: var(--brgmr-secondary);
    font-style: normal;
}

.brgmr-field small,
.brgmr-upload small {
    display: block;
    margin-top: 6px;
    color: var(--brgmr-muted);
    font-size: 12px;
}

.brgmr-field input,
.brgmr-field textarea {
    width: 100%;
    border: 1px solid #dddddd;
    border-radius: 10px;
    background: #ffffff;
    color: var(--brgmr-text);
    font: inherit;
    line-height: 1.45;
    padding: 13px 14px;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.brgmr-field textarea {
    resize: vertical;
    min-height: 125px;
}

.brgmr-field input:focus,
.brgmr-field textarea:focus {
    border-color: var(--brgmr-primary);
    box-shadow: 0 0 0 3px rgba(176, 8, 18, .09);
}

.brgmr-rating-field {
    border: 0;
    margin: 0;
    padding: 0;
    text-align: center;
}

.brgmr-stars {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid #e5e5e5;
    border-radius: 999px;
    background: #ffffff;
}

.brgmr-stars input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.brgmr-stars label {
    cursor: pointer;
    color: #cfcfcf;
    font-size: 26px;
    line-height: 1;
    transition: color .18s ease;
}

.brgmr-stars label:hover,
.brgmr-stars label:hover ~ label,
.brgmr-stars input:checked ~ label {
    color: var(--brgmr-secondary);
}

.brgmr-upload {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 142px;
    padding: 18px;
    text-align: center;
    border: 1px dashed #cfcfcf;
    border-radius: 12px;
    background: #ffffff;
    cursor: pointer;
    overflow: hidden;
    transition: border-color .18s ease, background .18s ease;
}

.brgmr-upload:hover {
    border-color: var(--brgmr-secondary);
    background: #fafafa;
}

.brgmr-upload input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.brgmr-upload-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin-bottom: 8px;
    border-radius: 50%;
    background: var(--brgmr-primary);
    color: #ffffff;
    font-size: 22px;
    line-height: 1;
}

.brgmr-upload strong {
    display: block;
    color: var(--brgmr-primary);
    font-weight: 700;
}

.brgmr-preview {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.brgmr-upload.has-preview::after {
    content: "Image selected";
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    padding: 6px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, .68);
    font-size: 12px;
    font-weight: 700;
}

.brgmr-video-field {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brgmr-submit {
    justify-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 0;
    border-radius: 999px;
    padding: 13px 24px;
    min-width: 185px;
    background: var(--brgmr-secondary);
    color: #ffffff;
    font-weight: 800;
    letter-spacing: .01em;
    cursor: pointer;
    box-shadow: none;
    transition: background .18s ease, transform .18s ease;
}

.brgmr-submit:hover {
    background: var(--brgmr-primary);
    transform: translateY(-1px);
}

.brgmr-submit svg {
    width: 18px;
    height: 18px;
}

.brgmr-review-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.brgmr-card {
    border: 1px solid #e9e9e9;
    border-radius: var(--brgmr-radius);
    padding: 18px;
    background: var(--brgmr-card);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .04);
    overflow: hidden;
}

.brgmr-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.brgmr-avatar {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    background: var(--brgmr-primary);
    color: #ffffff;
    font-weight: 800;
    font-size: 16px;
}

.brgmr-card h3 {
    margin: 0 0 4px;
    color: var(--brgmr-primary);
    font-family: var(--brgmr-heading-font);
    font-size: 17px;
    line-height: 1.25;
    font-weight: 800;
}

.brgmr-card-stars {
    color: var(--brgmr-secondary);
    letter-spacing: 1px;
    font-size: 14px;
}

.brgmr-review-text {
    color: var(--brgmr-text);
    font-size: 14px;
    line-height: 1.65;
}

.brgmr-review-text p {
    margin: 0 0 12px;
}

.brgmr-review-image {
    margin: 14px 0 0;
    border-radius: 10px;
    overflow: hidden;
    background: #f5f5f5;
}

.brgmr-review-image img {
    display: block;
    width: 100%;
    height: auto;
}

.brgmr-video-wrap {
    position: relative;
    overflow: hidden;
    margin-top: 14px;
    border-radius: 10px;
    background: #000000;
}

.brgmr-video-wrap iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    display: block;
}

.brgmr-video-wrap a {
    display: block;
    padding: 16px;
    color: #ffffff;
}

.brgmr-card-date {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #eeeeee;
    color: var(--brgmr-muted);
    font-size: 12px;
    font-weight: 600;
}

.brgmr-empty,
.brgmr-notice {
    border-radius: 12px;
    padding: 15px 16px;
    text-align: center;
    background: #ffffff;
    border: 1px solid #e8e8e8;
}

.brgmr-empty strong,
.brgmr-empty span {
    display: block;
}

.brgmr-empty strong {
    color: var(--brgmr-primary);
    font-size: 17px;
}

.brgmr-empty span {
    color: var(--brgmr-muted);
    margin-top: 4px;
}

.brgmr-notice {
    margin-bottom: 18px;
    font-weight: 700;
}

.brgmr-notice-success {
    color: var(--brgmr-primary);
    background: #fbfbfb;
    border-left: 4px solid var(--brgmr-secondary);
}

.brgmr-notice-error {
    color: #8a1f1f;
    background: #fff7f7;
    border-color: #f0c5c5;
}

@media (max-width: 900px) {
    .brgmr-review-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .brgmr-grid-2,
    .brgmr-review-grid {
        grid-template-columns: 1fr;
    }

    .brgmr-form-shell,
    .brgmr-reviews-shell {
        padding: 20px;
    }

    .brgmr-stars label {
        font-size: 24px;
    }
}
