.sp-question-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.sp-question-form textarea,
.sp-question-form select {
    width: 100%;
    border: 0;
    border-radius: 12px;
    background: #fff;
}

.sp-question-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]) {
    min-height: 38px;
    padding: 8px 12px;
}

.sp-question-form textarea {
    min-height: 220px;
    padding: 12px;
    resize: vertical;
}

.sp-question-form input:focus,
.sp-question-form textarea:focus,
.sp-question-form select:focus {
    outline: 0;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.13);
}

.sp-answer-form textarea,
.sp-answer-form .form-control {
    width: 100%;
}

.sp-answer-form textarea {
    min-height: 220px;
    padding: 12px;
    border: 0;
    border-radius: 12px;
    background: #fff;
    resize: vertical;
}

.sp-answer-form textarea:focus,
.sp-answer-form .form-control:focus {
    outline: 0;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.13);
}

.sp-drop-zone {
    padding: 28px 20px;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    background: #fff;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.sp-drop-zone:hover,
.sp-drop-zone.dragover,
.sp-drop-zone.is-dragover {
    border-color: var(--sp-brand, #f97316);
    background: #fff7ed;
}

.sp-image-preview-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 14px;
}

.new-image-item,
.sp-new-image-item,
.sp-existing-image-item {
    position: relative;
    width: 112px;
    height: 112px;
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.new-image-item img,
.sp-new-image-item img,
.sp-existing-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sp-existing-image-item {
    cursor: grab;
    user-select: none;
}

.sp-existing-image-item:active {
    cursor: grabbing;
}

.sp-existing-image-item.is-dragging {
    opacity: 0.45;
}

.sp-existing-image-item.is-cover {
    outline: 2px solid #212529;
    outline-offset: 2px;
}

.sp-image-drag-handle {
    position: absolute;
    top: 0.35rem;
    left: 0.35rem;
    z-index: 3;
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.sp-image-cover-badge {
    position: absolute;
    left: 0.4rem;
    bottom: 0.4rem;
    z-index: 3;
    display: none;
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
    background: #212529;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
}

.sp-existing-image-item.is-cover .sp-image-cover-badge {
    display: inline-flex;
}

.sp-image-cover-btn {
    position: absolute;
    right: 0.35rem;
    bottom: 0.35rem;
    z-index: 3;
    border: 0;
    border-radius: 999px;
    padding: 0.25rem 0.55rem;
    background: rgba(255, 255, 255, 0.92);
    color: #212529;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.1;
}

.sp-image-cover-btn:disabled {
    color: #fff;
    background: #212529;
    opacity: 1;
}

.sp-image-remove-btn {
    z-index: 4;
    width: 26px;
    height: 26px;
    font-size: 13px;
    opacity: 0.88;
}

.sp-image-remove-btn:hover {
    opacity: 1;
}

.sp-image-order-badge {
    position: absolute;
    left: 0.4rem;
    bottom: 0.4rem;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 0.45rem;
    border-radius: 999px;
    background: #212529;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
}

.sidebar-sticky {
    position: sticky;
    top: 72px;
}