/**
 * Copyright © Magmodules.eu. All rights reserved.
 * See COPYING.txt for license details.
 */

/* Fallback styles for non-Hyva themes */
.support-form-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 30px;
}

/* Support sidebar wrapper - sticky positioning */
.support-sidebar-wrapper {
    position: sticky;
    top: 6rem;
}

.support-form .field {
    margin-bottom: 20px;
}

.support-form .label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.support-form .label span::after {
    content: ' *';
    color: #dc2626;
}

.support-form .field:not(.required) .label span::after {
    content: '';
}

.support-form .control {
    width: 100%;
}

.support-form .input-text,
.support-form .select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: #fff;
}

.support-form .input-text:focus,
.support-form .select:focus {
    outline: none;
    border-color: var(--support-primary, #3b82f6);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.support-form textarea.input-text {
    min-height: 140px;
    resize: vertical;
}

.support-form .input-file {
    width: 100%;
    padding: 12px;
    border: 2px dashed #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.2s;
    background-color: #fafafa;
}

.support-form .input-file:hover {
    border-color: var(--support-primary, #3b82f6);
}

.support-form .note {
    font-size: 12px;
    color: #666;
    margin-top: 6px;
}

.support-form .actions-toolbar {
    margin-top: 30px;
}

.support-form .action.submit.primary {
    width: 100%;
    padding: 14px 24px;
    background: var(--support-primary, #3b82f6);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
}

.support-form .action.submit.primary:hover:not(:disabled) {
    opacity: 0.9;
    transform: translateY(-1px);
}

.support-form .action.submit.primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.support-form .action.submit.primary.loading span {
    display: inline-flex;
    align-items: center;
}

/* Dropzone */
.dropzone-container {
    position: relative;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
    background-color: #fafafa;
}

.dropzone-container:hover,
.dropzone-container.dragover {
    border-color: var(--support-primary, #3b82f6);
    background-color: rgba(59, 130, 246, 0.05);
}

.dropzone-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.dropzone-content {
    pointer-events: none;
}

.dropzone-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 12px;
    color: #9ca3af;
}

.dropzone-container:hover .dropzone-icon,
.dropzone-container.dragover .dropzone-icon {
    color: var(--support-primary, #3b82f6);
}

.dropzone-text {
    font-size: 14px;
    color: #374151;
    margin: 0 0 6px 0;
}

.dropzone-hint {
    font-size: 12px;
    color: #9ca3af;
    margin: 0;
}

/* File list */
.file-list {
    margin-top: 12px;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: #f3f4f6;
    border-radius: 6px;
    margin-bottom: 8px;
    font-size: 13px;
}

.file-item:last-child {
    margin-bottom: 0;
}

.file-name {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #374151;
    overflow: hidden;
}

.file-name span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-size {
    color: #9ca3af;
    font-size: 12px;
    margin-left: 8px;
    flex-shrink: 0;
}

.file-remove {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: color 0.2s;
}

.file-remove:hover {
    color: #dc2626;
}

/* Responsive */
@media (max-width: 768px) {
    .support-form-container {
        padding: 20px 15px;
    }
}
