/**
 * Frontend Styles - Ankauf Formular
 */

/* Wrapper */
.fa-ankauf-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Header */
.fa-ankauf-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #0274be 0%, #015a94 100%);
    color: #fff;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.fa-ankauf-title {
    margin: 0 0 8px 0;
    font-size: 28px;
    font-weight: 700;
}

.fa-ankauf-subtitle {
    margin: 0;
    opacity: 0.9;
    font-size: 16px;
}

.fa-ankauf-header-icon svg {
    width: 80px;
    height: 80px;
    opacity: 0.3;
}

/* Progress Steps */
.fa-ankauf-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    padding: 0 20px;
}

.fa-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.fa-progress-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.fa-progress-step.active .fa-progress-number,
.fa-progress-step.completed .fa-progress-number {
    background: #0274be;
    color: #fff;
}

.fa-progress-step.completed .fa-progress-number {
    background: #28a745;
}

.fa-progress-label {
    font-size: 12px;
    color: #999;
    margin-top: 8px;
    white-space: nowrap;
}

.fa-progress-step.active .fa-progress-label {
    color: #0274be;
    font-weight: 600;
}

.fa-progress-line {
    flex: 1;
    height: 3px;
    background: #e0e0e0;
    margin: 0 10px;
    max-width: 60px;
    margin-bottom: 24px;
}

.fa-progress-line.completed {
    background: #28a745;
}

/* Form */
.fa-ankauf-form {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
}

/* Steps */
.fa-ankauf-step {
    display: none;
}

.fa-ankauf-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fa-step-title {
    margin: 0 0 8px 0;
    font-size: 22px;
    color: #333;
}

.fa-step-description {
    margin: 0 0 30px 0;
    color: #666;
}

/* Form Grid */
.fa-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.fa-form-group-full {
    grid-column: 1 / -1;
}

/* Form Elements */
.fa-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.fa-form-group label .required {
    color: #dc3545;
}

.fa-form-group input[type="text"],
.fa-form-group input[type="email"],
.fa-form-group input[type="tel"],
.fa-form-group input[type="number"],
.fa-form-group input[type="date"],
.fa-form-group input[type="month"],
.fa-form-group select,
.fa-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}

.fa-form-group input:focus,
.fa-form-group select:focus,
.fa-form-group textarea:focus {
    outline: none;
    border-color: #0274be;
    box-shadow: 0 0 0 3px rgba(2, 116, 190, 0.15);
}

.fa-form-group input.error,
.fa-form-group select.error {
    border-color: #dc3545;
}

.fa-form-group .error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
}

/* Input with suffix */
.fa-input-with-suffix {
    position: relative;
}

.fa-input-with-suffix input {
    padding-right: 50px;
}

.fa-input-suffix {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 14px;
}

/* Radio Group */
.fa-radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fa-radio-group-inline {
    flex-direction: row;
    gap: 20px;
}

.fa-radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.fa-radio-label input {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    accent-color: #0274be;
}

/* Checkbox */
.fa-checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    padding: 8px 0;
}

.fa-checkbox-label input {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    accent-color: #0274be;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Condition Cards */
.fa-condition-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.fa-condition-card {
    cursor: pointer;
}

.fa-condition-card input {
    display: none;
}

.fa-condition-content {
    display: block;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    text-align: center;
    transition: all 0.2s;
}

.fa-condition-card input:checked + .fa-condition-content {
    border-color: #0274be;
    background: rgba(2, 116, 190, 0.05);
}

.fa-condition-icon {
    display: block;
    font-size: 18px;
    margin-bottom: 5px;
}

.fa-condition-label {
    display: block;
    font-size: 13px;
    color: #555;
}

/* Equipment Groups */
.fa-equipment-groups {
    display: grid;
    gap: 25px;
}

.fa-equipment-group-title {
    margin: 0 0 12px 0;
    font-size: 16px;
    color: #0274be;
    padding-bottom: 8px;
    border-bottom: 2px solid #e0e0e0;
}

.fa-equipment-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
}

.fa-equipment-items .fa-checkbox-label {
    padding: 10px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    transition: background 0.2s;
}

.fa-equipment-items .fa-checkbox-label:hover {
    background: #e9ecef;
}

/* Photo Upload */
.fa-photo-dropzone {
    border: 2px dashed #d0d0d0;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.fa-photo-dropzone:hover,
.fa-photo-dropzone.dragover {
    border-color: #0274be;
    background: rgba(2, 116, 190, 0.03);
}

.fa-dropzone-icon svg {
    width: 60px;
    height: 60px;
    color: #ccc;
    margin-bottom: 15px;
}

.fa-dropzone-text {
    font-size: 16px;
    color: #666;
    margin: 0 0 8px 0;
}

.fa-dropzone-link {
    color: #0274be;
    text-decoration: underline;
    cursor: pointer;
}

.fa-dropzone-hint {
    font-size: 13px;
    color: #999;
    margin: 0;
}

.fa-photo-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.fa-photo-item {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f0;
}

.fa-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fa-photo-item .fa-photo-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    background: rgba(220, 53, 69, 0.9);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
}

.fa-photo-item.uploading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.fa-photo-tips {
    margin-top: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.fa-photo-tips h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #333;
}

.fa-photo-tips ul {
    margin: 0;
    padding-left: 20px;
}

.fa-photo-tips li {
    margin-bottom: 5px;
    font-size: 13px;
    color: #666;
}

/* Navigation */
.fa-ankauf-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.fa-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.fa-btn svg {
    width: 20px;
    height: 20px;
}

.fa-btn-primary {
    background: #0274be;
    color: #fff;
    margin-left: auto;
}

.fa-btn-primary:hover {
    background: #015a94;
}

.fa-btn-secondary {
    background: #e9ecef;
    color: #333;
}

.fa-btn-secondary:hover {
    background: #dee2e6;
}

.fa-btn-success {
    background: #28a745;
    color: #fff;
    margin-left: auto;
}

.fa-btn-success:hover {
    background: #218838;
}

.fa-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Success Message */
.fa-ankauf-success {
    text-align: center;
    padding: 60px 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.fa-success-icon svg {
    width: 80px;
    height: 80px;
    color: #28a745;
    margin-bottom: 20px;
}

.fa-ankauf-success h2 {
    margin: 0 0 15px 0;
    font-size: 28px;
    color: #333;
}

.fa-ankauf-success p {
    margin: 0;
    font-size: 16px;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .fa-ankauf-header {
        flex-direction: column;
        text-align: center;
        padding: 25px;
    }
    
    .fa-ankauf-header-icon {
        display: none;
    }
    
    .fa-ankauf-title {
        font-size: 22px;
    }
    
    .fa-ankauf-progress {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .fa-progress-line {
        display: none;
    }
    
    .fa-progress-label {
        display: none;
    }
    
    .fa-form-grid {
        grid-template-columns: 1fr;
    }
    
    .fa-condition-cards {
        grid-template-columns: 1fr;
    }
    
    .fa-equipment-items {
        grid-template-columns: 1fr;
    }
    
    .fa-ankauf-navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .fa-btn {
        width: 100%;
        justify-content: center;
    }
    
    .fa-btn-primary,
    .fa-btn-success {
        margin-left: 0;
    }
}
