/* ========================================
   VERSETZUNG - Form Styles
   ======================================== */

/* Hero */
.transfer-hero {
    background: linear-gradient(135deg, #0f1419 0%, #1a1f2e 50%, #0f1419 100%);
}

/* Form Section */
.form-section {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    padding: 32px;
    max-width: 1200px;
}

/* Form Card */
.form-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.form-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 28px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
}

.form-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-blue-dim);
    color: var(--accent-blue);
    border-radius: var(--radius-sm);
    font-size: 1.25rem;
}

.form-title h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.form-title p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Form */
.transfer-form {
    padding: 28px;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.form-label i {
    color: var(--accent-blue);
    font-size: 0.85rem;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.15s ease;
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: var(--bg-elevated);
    box-shadow: 0 0 0 3px var(--accent-blue-dim);
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-hint {
    display: block;
    margin-top: 6px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.form-select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Radio Group - Department Selection */
.radio-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.radio-option {
    cursor: pointer;
}

.radio-option input {
    display: none;
}

.radio-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.radio-option input:checked + .radio-box {
    border-color: var(--accent-blue);
    background: var(--accent-blue-dim);
}

.dept-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 12px;
    filter: grayscale(30%);
    transition: filter 0.2s ease;
}

.radio-option input:checked + .radio-box .dept-logo {
    filter: grayscale(0%);
}

.radio-option:hover .radio-box {
    border-color: var(--border-light);
    background: var(--bg-elevated);
}

.dept-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.dept-full {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Checkbox Grid */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.checkbox-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s ease;
}

.checkbox-option:hover {
    border-color: var(--border-light);
    background: var(--bg-elevated);
}

.checkbox-option input {
    display: none;
}

.checkbox-box {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    border: 2px solid var(--border-light);
    border-radius: 4px;
    color: transparent;
    font-size: 0.7rem;
    transition: all 0.15s ease;
}

.checkbox-option input:checked ~ .checkbox-box {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: white;
}

.checkbox-option span:last-child {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.checkbox-option input:checked ~ span:last-child {
    color: var(--text-primary);
}

/* Form Actions */
.form-actions {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 24px;
    background: var(--accent-blue);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.submit-btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.submit-btn.loading {
    pointer-events: none;
}

.submit-btn.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Success / Error Messages */
.success-message,
.error-message {
    padding: 48px 28px;
    text-align: center;
}

.success-message.hidden,
.error-message.hidden {
    display: none;
}

.success-icon,
.error-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    border-radius: 50%;
    font-size: 2.5rem;
}

.success-icon {
    background: rgba(34, 197, 94, 0.15);
    color: var(--green);
}

.error-icon {
    background: rgba(239, 68, 68, 0.15);
    color: var(--red);
}

.success-message h3,
.error-message h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.success-message p,
.error-message p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.reset-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s ease;
}

.reset-btn:hover {
    background: var(--bg-hover);
    border-color: var(--border-light);
}

/* Info Card */
.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.info-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.info-header i {
    color: var(--accent-blue);
    font-size: 1.1rem;
}

.info-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.info-list {
    list-style: none;
}

.info-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.info-list li:last-child {
    border-bottom: none;
}

.info-list li i {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 2px;
}

.info-list li span {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
    .form-section {
        grid-template-columns: 1fr;
        padding: 16px;
    }
    
    .info-card {
        position: static;
    }
}

@media (max-width: 768px) {
    .radio-group {
        grid-template-columns: 1fr;
    }
    
    .checkbox-grid {
        grid-template-columns: 1fr;
    }
    
    .form-header {
        padding: 20px;
    }
    
    .transfer-form {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .dept-logo {
        width: 48px;
        height: 48px;
    }
    
    .radio-box {
        padding: 16px;
    }
}
