:root {
    --bg: #f9fafb;
    --text: #1f2937;
    --muted: #6b7280;
    --border: #d1d5db;
    --green: #166534;
    --blue: #2563eb;
}
.divider {
    margin: 0 32px;
    border-top: 1px dashed var(--border);
}

.rating-section {
    padding: 28px 32px 32px;
}

.rating-section * {
    box-sizing: border-box;
}

.rating-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.label {
    color: var(--muted);
    font-weight: 600;
}

.rating-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rating-btn {
    width: 38px;
    height: 38px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
    font-size: 22px;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
    padding: 4px;
}

.rating-btn:hover {
    transform: scale(1.12);
}

.rating-btn.is-active {
    color: #fff;
}

.rating-btn.is-exact {
    box-shadow: 0 0 0 2px #d1d5db;
}

/*.rating-1.is-active { background: #ef4444; }
.rating-2.is-active { background: #f97316; }
.rating-3.is-active { background: #facc15; color: #111827; }
.rating-4.is-active { background: #4ade80; color: #064e3b; }
.rating-5.is-active { background: #10b981; }*/

.rt-1.is-active { background: #ef4444; }
.rt-2.is-active { background: #f97316; }
.rt-3.is-active { background: #facc15; color: #111827; }
.rt-4.is-active { background: #4ade80; color: #064e3b; }
.rt-5.is-active { background: #10b981; }
.meta {
    color: #9ca3af;
    font-size: 14px;
}

.feedback-form {
    margin-top: 22px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f3f4f6;
    padding: 20px;
    position: relative;
}

.avatar {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 700;
    background: #f97316;
    color: #fff;
}

.feedback-form .h3 {
    margin: 0 44px 14px 0;
    font-size: 17px;
    font-weight: bold;
}

.reasons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.reason-btn {
    border: 1px solid #d1d5db;
    border-radius: 999px;
    background: #fff;
    color: #4b5563;
    padding: 8px 14px;
    font-size: 14px;
    cursor: pointer;
}

.reason-btn.is-selected {
    border-color: #3b82f6;
    color: #1d4ed8;
    background: #eff6ff;
    font-weight: 600;
}

.comment-input,
.contact-field-input {
    border-radius: 10px !important;
    border: 1px solid #d1d5db;
    padding: 15px !important;
    font-size: 14px !important;
    line-height: 1.45;
    outline: none;
    font-family: inherit;
    color: var(--text);
    background-color: #fff;
    box-sizing: border-box;
}

.comment-input {
    width: 100%;
    min-height: 120px;
    resize: vertical;
}

.comment-input:focus,
.contact-field-input:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.3);
}

.contact-inputs-row {
    display: flex;
    gap: 12px;
    margin-top: 4px;
    margin-bottom: 4px;
}

.contact-field-input {
    flex: 1 1 0;
    min-width: 0;
}

.actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

.submit-btn {
    border: 0;
    border-radius: 10px;
    background: var(--blue);
    color: #fff;
    padding: 9px 16px;
    cursor: pointer;
    font-weight: 600;
}

.submit-btn:hover {
    background: #1d4ed8;
}

.success-message {
    margin-top: 16px;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    background: #f0fdf4;
    color: #15803d;
    font-weight: 600;
}

@media (max-width: 640px) {
    .rating-section {
        padding-left: 16px;
        padding-right: 16px;
    }

    .divider {
        margin: 0 16px;
    }

    .contact-inputs-row {
        flex-direction: column;
    }
}
