.feedback-form-row {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.feedback-form-row > div {
    flex: 1;
    min-width: 180px;
}
.feedback-form label {
    font-size: 14px;
}
.feedback-form-row > div > label {
    padding: 10px 0 0 0;
    padding: 0px 15px;
    display: block;
}
.feedback-form input[type="text"],
.feedback-form select,
.feedback-form textarea {
    width: 100%;
    box-sizing: border-box;
}
.feedback-form-avatar {
    margin-top: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
}
.feedback-form input[type="text"],
.feedback-form textarea,
.feedback-form select {
    width: 100%;
    padding: 0px 15px;
    border: none;
    border-bottom: 2px solid #ddd;
    border-radius: 0;
    font-size: 16px;
    margin: 0px 0px 20px;
    background: none;
    transition: border-color 0.2s;
    box-shadow: none;
    height: 48px;
    line-height: 48px;
}
.feedback-form input[type="text"]:focus,
.feedback-form input[type="text"]:hover,
.feedback-form textarea:focus,
.feedback-form textarea:hover {
    border-bottom: 2px solid #26a69a;
    outline: none;
}
.feedback-form textarea {
    min-height: 120px;
    font-size: 14px;
    resize: none;
    overflow-y: auto;
    scrollbar-width: none;
}
.feedback-form select {
    font-size: 14px;
}
.feedback-form textarea::-webkit-scrollbar {
    display: none;
}
.feedback-form select:focus,
.feedback-form select:hover {
    border-bottom: 2px solid #26a69a;
    outline: none;
}
.feedback-form input::placeholder,
.feedback-form textarea::placeholder,
.feedback-form select::placeholder {
    font-size: 14px;
    color: #b0b0b0;
    opacity: 0.8;
}
.feedback-form-rating {
    display: flex;
    align-items: center;
    gap: 10px;
}
.feedback-form-textarea {
    margin-top: 24px;
}
.feedback-form-avatar img {
    margin-top: 10px;
    width: 100px;
    height: 100%;
    border-radius: 50%;
    border: 1px solid #eee;
}
.feedback-form-privacy {
    margin-top: 20px;
    margin-bottom: 8px;
    font-size: 11px;
}
.feedback-form-rating input[type="range"] {
    flex: 1;
}
input[type="range"]#feedback-rating {
    width: 100%;
    background: #eee;
    border-radius: 0;
    outline: none;
    margin-bottom: 0;
    box-shadow: none;
    appearance: none;
    position: relative;
    accent-color: #17a2b8;
    height: 10px;
    margin-top: 8px;
}
input[type="range"]#feedback-rating::-webkit-slider-runnable-track {
    height: 10px;
    background: linear-gradient(to right, #5bbab3 0%, #5bbab3 var(--progress), #eee var(--progress), #eee 100%);
    border-radius: 0;
}
input[type="range"]#feedback-rating::-moz-range-progress {
    background-color: #5bbab3;
    height: 6px;
    border-radius: 3px;
}
input[type="range"]#feedback-rating::-moz-range-track {
    background-color: #eee;
    height: 6px;
    border-radius: 3px;
}
input[type="range"]#feedback-rating::-ms-fill-lower {
    background-color: #5bbab3;
    height: 6px;
    border-radius: 3px;
}
input[type="range"]#feedback-rating::-ms-fill-upper {
    background-color: #eee;
    height: 6px;
    border-radius: 3px;
}
input[type="range"]#feedback-rating::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    background: #5bbab3;
    border: 2px solid #5bbab3;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    cursor: pointer;
    margin-top: -8px;
    transition: background 0.2s, border 0.2s;
}
input[type="range"]#feedback-rating:hover::-webkit-slider-thumb,
input[type="range"]#feedback-rating:active::-webkit-slider-thumb {
    background: #fff;
    border: 2px solid #5bbab3;
}
input[type="range"]#feedback-rating::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #5bbab3;
    border: 2px solid #5bbab3;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    cursor: pointer;
    transition: background 0.2s, border 0.2s;
}
input[type="range"]#feedback-rating:hover::-moz-range-thumb,
input[type="range"]#feedback-rating:active::-moz-range-thumb {
    background: #fff;
    border: 2px solid #5bbab3;
}
input[type="range"]#feedback-rating::-ms-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #5bbab3;
    border: 2px solid #5bbab3;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    cursor: pointer;
    transition: background 0.2s, border 0.2s;
}
input[type="range"]#feedback-rating:hover::-ms-thumb,
input[type="range"]#feedback-rating:active::-ms-thumb {
    background: #fff;
    border: 2px solid #5bbab3;
}
input[type="range"]#feedback-rating::-ms-tooltip {
    display: none;
}
input[type="range"]#feedback-rating:focus {
    outline: none;
}
#rating-value {
    position: absolute;
    top: -32px;
    left: 0;
    background: #5bbab3;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    border-radius: 4px;
    padding: 2px 8px;
    z-index: 2;
    min-width: 22px;
    text-align: center;
    pointer-events: none;
    transition: left 0.1s;
}
.feedback-range-scale {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    margin-bottom: 0;
    padding: 0 2px;
    position: relative;
    font-size: 10px;
    color: #b0b0b0;
    width: 100%;
    pointer-events: none;
    height: 18px;
}
.feedback-range-scale span {
    position: relative;
    text-align: center;
    width: 1px;
    flex: 1 1 0;
    font-size: 10px;
    color: #b0b0b0;
    z-index: 1;
}
.feedback-range-scale span::before {
    content: "";
    display: block;
    width: 1px;
    height: 8px;
    background: #b0b0b0;
    margin: 0 auto 2px auto;
    border-radius: 1px;
    opacity: 0.7;
}
.feedback-range-scale span.small-tick::before {
    height: 4px;
    opacity: 0.4;
}
.feedback-rating-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 5px;
    font-size: 12px;
    color: #333;
    font-weight: 500;
    position: relative;
}
.feedback-rating-labels span {
    background: rgba(0,0,0,0.1);
    color: #333;
    font-size: 12px;
    padding: 2px 8px;
    min-width: 22px;
    text-align: center;
    display: inline-block;
}
.feedback-form-rating-slider {
    position: relative;
    width: 100%;
}
#rating-value {
    position: absolute;
    top: -23px;
    left: 0;
    background: #5bbab3;
    color: #fff;
    font-size: 14px;
    padding: 2px 8px;
    z-index: 2;
    min-width: 22px;
    text-align: center;
    pointer-events: none;
    transition: left 0.1s;
}
.feedback-form-message {
    margin-top: 15px;
}
.feedback-form-buttons {
    margin-top: 10px;
}
.button {
    cursor: pointer;
    font-size: 16px;
    background: #26a69a;
    color: #fff;
    padding: 10px 30px;
    border: none;
    border-radius: 4px;
    margin-top: 10px;
    transition: background 0.2s;
}
.button:last-child {
    margin-right: 0;
}
#feedback-reset.button {
    background: #26a69a;
    color: #fff;
}
.feedback-form-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 1px solid #eee;
}
.feedback-privacy-link {
    color: #007bff;
    text-decoration: none;
    transition: color 0.2s, border-bottom 0.2s;
}
.feedback-privacy-link:hover, .feedback-privacy-link:focus {
    color: #0056b3;
    text-decoration: underline;
    border-bottom: 1px solid #0056b3;
}
.input-error {
    border-bottom: 2px solid #F44336 !important;
}
.feedback-toast {
    position: fixed;
    top: 24px;
    right: 24px;
    margin-top: 24px;
    z-index: 9999;
    background: #f8d7da;
    color: #721c24;
    padding: 12px 20px;
    border-radius: 4px;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    min-width: 260px;
    max-width: 90vw;
    text-align: left;
    line-height: 1.5;
    border: 1px solid #f5c6cb;
}
.feedback-toast {
    display:none;
}

@media (max-width: 900px) {
    .feedback-form-row {
        gap: 16px;
    }
}
@media (max-width: 601px) {
    .feedback-form-row {
        flex-direction: column;
        gap: 0;
    }
    .feedback-form-row > div {
        min-width: 0;
        width: 100%;
        margin-bottom: 18px;
    }
}
@media (max-width: 400px) {
    .feedback-form-avatar {
        flex-direction: column;
        align-items: flex-start;
    }
    .feedback-form-avatar img {
        display: block;
        margin: 0;
    }
    .feedback-form-avatar label,
    .feedback-form-avatar input[type="file"] {
        display: block;
        width: 100%;
        text-align: left;
        margin: 0;
    }
}