.review-form {
    max-width: 100%;
    background: #fff;
    color: #1a1a1a;
    font-size: 14px;
    line-height: 1.5;
    font-family: inherit;
}

.review-form__title {
    flex: 1;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
}

.review-form__product {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    align-items: flex-start;
}

.review-form__product-img {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    overflow: hidden;
    background: #f0f0f0;
}

.review-form__product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-form__product-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background: #e0e0e0;
}

.review-form__product-info {
    flex: 1;
    min-width: 0;
}

.review-form__product-name {
    font-size: 14px;
    color: #2d2d2d;
    margin: 0 0 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.review-form__product-name:last-child {
    margin-bottom: 0;
}

.review-form__row {
    margin-bottom: 20px;
}

.review-form__row--compact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.review-form__field {
    margin: 0 0 20px;
}

.review-form__field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #1a1a1a;
}

.review-form .required {
    color: #b00020;
}

.review-form__field-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.review-form__field-head label {
    margin-bottom: 0;
}

.review-form__hint {
    font-size: 12px;
    color: #666;
}

.review-form__rating-block {
    margin-bottom: 20px;
}

.review-form__rating-head {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.review-form__rating-label {
    font-weight: 500;
    color: #1a1a1a;
}

.review-form__rating-value {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    min-width: 24px;
}

.review-form__stars {
    display: inline-flex;
    gap: 4px;
    align-items: center;
}

.review-form__star {
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    position: relative;
}

.review-form__star::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23dddddd'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E") center/100% no-repeat;
}

.review-form__star--on::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23e6c553'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E");
}

.review-form__field--review {
    margin-bottom: 20px;
}

.review-form__field--review textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    border: 1px solid #e5e5e5;
    box-sizing: border-box;
    resize: vertical;
    font-family: inherit;
    font-size: 14px;
    color: #1a1a1a;
}

.review-form__field--review textarea:focus {
    outline: none;
    border-color: #1a1a1a;
}

.review-form__hidden {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
}

.review-form__photos-block {
    margin-bottom: 24px;
}

.review-form__photo-dropzone {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    padding: 24px;
    border: 2px dashed #e5e5e5;
    background: #fafafa;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.review-form__photo-dropzone:hover,
.review-form__photo-dropzone.review-form__photo-dropzone--over {
    border-color: #1a1a1a;
    background: #f5f5f5;
}

.review-form__photo-dropzone-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='17 8 12 3 7 8'/%3E%3Cline x1='12' y1='3' x2='12' y2='15'/%3E%3C/svg%3E") center/contain no-repeat;
}

.review-form__photo-dropzone-text {
    font-size: 14px;
    color: #666;
    text-align: center;
    line-height: 1.4;
}

.review-form__file-input {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    overflow: hidden;
}

.review-form__photo-previews {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.review-form__photo-preview-item {
    width: 64px;
    height: 64px;
    overflow: hidden;
    background: #e8e8e8;
}

.review-form__photo-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-form__photos {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.review-form__photo-slot {
    width: 80px;
    height: 80px;
    border: 2px dashed #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background: #fafafa;
}

.review-form__photo-slot:hover {
    border-color: #1a1a1a;
    background: #f5f5f5;
}

.review-form__photo-add {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.review-form__photo-icon {
    font-size: 28px;
    color: #999;
    line-height: 1;
}

.review-form__photo-slot:hover .review-form__photo-icon {
    color: #1a1a1a;
}

.review-form__photo-preview {
    display: none;
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.review-form__photo-slot.has-preview .review-form__photo-add {
    display: none;
}

.review-form__photo-slot.has-preview .review-form__photo-preview {
    display: block;
}

.review-form__consent {
    margin-bottom: 24px;
}

.review-form__consent-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-weight: normal;
}

.review-form__consent-switch {
    position: relative;
    flex-shrink: 0;
    width: 44px;
    height: 24px;
}

.review-form__consent-input {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
}

.review-form__consent-slider {
    display: block;
    width: 44px;
    height: 24px;
    border-radius: 1rem;
    background: #e0e0e0;
    transition: background 0.2s;
}

.review-form__consent-slider::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    transition: transform 0.2s;
}

.review-form__consent-input:checked + .review-form__consent-slider {
    background: #1a1a1a;
}

.review-form__consent-input:checked + .review-form__consent-slider::after {
    transform: translateX(20px);
}

.review-form__consent-text {
    flex: 1;
    font-size: 13px;
    line-height: 1.55;
    color: #2d2d2d;
}

.review-form__row--compact input[type="text"],
.review-form__row--compact input[type="tel"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e5e5e5;
    box-sizing: border-box;
    font-size: 14px;
    color: #1a1a1a;
}

.review-form__row--compact input:focus {
    outline: none;
    border-color: #1a1a1a;
}

.review-form__captcha {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.review-form__captcha img {
    vertical-align: middle;
}

.review-form__captcha input[type="text"] {
    padding: 8px 12px;
    border: 1px solid #e5e5e5;
    font-size: 14px;
}

.review-form__submit-wrap {
    margin: 0;
}

.review-form__submit {
    width: 100%;
    padding: 14px 24px;
    background: #1a1a1a;
    color: #fff;
    border: none;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s;
}

.review-form__submit:hover {
    background: #000;
}

.review-success {
    padding: 14px 18px;
    margin-bottom: 18px;
    background: #f0f7f0;
    color: #1a3d1a;
    font-size: 14px;
}

.review-error {
    padding: 14px 18px;
    margin-bottom: 18px;
    background: #faf0f0;
    color: #5c2020;
    font-size: 14px;
}

.review-form__field-error {
    display: block;
    font-size: 12px;
    color: #b00020;
    margin-top: 4px;
}

.review-form__success-msg {
    padding: 14px 18px;
    margin-bottom: 18px;
    background: #f0f7f0;
    color: #1a3d1a;
    font-size: 14px;
}

.review-form__success-msg[hidden] {
    display: none;
}
