.form-section {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}
.form-section:last-of-type {
    border-bottom: none;
}
.form-section h2 {
    margin-top: 0;
    font-size: 1.5em;
    margin-bottom: 20px;
}
.form-row {
    display: flex;
    gap: 20px;
}
.form-group {
    flex: 1;
    margin-bottom: 15px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 0.9em;
    color: #555;
}
.radio-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}
.radio-group div {
    display: flex;
    align-items: center;
}
.radio-group label {
    margin-left: 8px;
}
.rating-stars {
    font-size: 2.5em;
    color: #ccc;
    cursor: pointer;
}
.rating-stars .star:hover,
.rating-stars .star.hovered {
    color: #ffc107;
}
.rating-stars .star.selected {
    color: #ff9800;
}
.tags-block {
    margin-bottom: 20px;
}
.tags-selected {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 10px;
    min-height: 44px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    box-sizing: border-box;
}
.tags-selected .placeholder {
    color: #999;
    line-height: 24px;
}
.tags-available {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.tag {
    cursor: pointer;
    background-color: #f0f0f0;
    padding: 5px 12px;
    border-radius: 15px;
    transition: all 0.2s;
    border: 1px solid transparent;
}
.tag:hover {
    background-color: #e0e0e0;
}
.tag.selected {
    background-color: #e7f1ff;
    color: #007bff;
    border-color: #007bff;
}

textarea {
    resize: none;
    overflow-y: hidden;
    transition: height 0.2s;
}

.hint {
    display: block;
    font-size: 0.85em;
    color: #6c757d;
    margin-top: 4px;
}
.error-message {
    display: block;
    font-size: 0.85em;
    color: #dc3545;
    margin-top: 4px;
    visibility: hidden;
    height: 1.2em;
}
.error-message.visible {
    visibility: visible;
}
input.invalid, select.invalid, textarea.invalid, .invalid {
    border-color: #dc3545 !important;
}
.rating-stars.invalid .star {
    color: #dc3545 !important;
}