/* public/css/form-101.css */

.em101-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.em101-progress-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    padding: 0;
    list-style: none;
}

.em101-progress-step {
    flex: 1;
    text-align: center;
    padding: 12px 10px;
    background: #f5f5f5;
    border: 2px solid #ddd;
    position: relative;
    font-size: 14px;
    font-weight: 600;
    color: #666;
}

.em101-progress-step:first-child {
    border-radius: 8px 0 0 8px;
}

.em101-progress-step:last-child {
    border-radius: 0 8px 8px 0;
}

.em101-progress-step.active {
    background: #0073aa;
    border-color: #0073aa;
    color: white;
}

.em101-progress-step.completed {
    background: #46b450;
    border-color: #46b450;
    color: white;
}

.em101-progress-step.completed::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    font-weight: bold;
}

.em101-form-section {
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
}

.em101-form-section h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 8px;
}

.em101-field-group {
    margin-bottom: 20px;
}

.em101-field-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
}

.em101-field-group input,
.em101-field-group select,
.em101-field-group textarea {
    width: 100%;
    max-width: 400px;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.em101-field-group input:focus,
.em101-field-group select:focus,
.em101-field-group textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 5px rgba(0,115,170,0.3);
}

.em101-field-group input[type="radio"],
.em101-field-group input[type="checkbox"] {
    width: auto;
    margin-left: 8px;
    transform: scale(1.1);
}

.em101-radio-group,
.em101-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.em101-radio-option,
.em101-checkbox-option {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.em101-radio-option:hover,
.em101-checkbox-option:hover {
    background: #f0f7ff;
    border-color: #0073aa;
}

.em101-radio-option input:checked + label,
.em101-checkbox-option input:checked + label {
    color: #0073aa;
    font-weight: 600;
}

.em101-file-upload-area {
    border: 2px dashed #ccc;
    border-radius: 6px;
    padding: 20px;
    text-align: center;
    background: #fafafa;
    transition: all 0.3s ease;
    cursor: pointer;
}

.em101-file-upload-area:hover {
    border-color: #0073aa;
    background: #f0f7ff;
}

.em101-file-upload-area.dragover {
    border-color: #46b450;
    background: #f0fff0;
}

.em101-upload-icon {
    font-size: 24px;
    color: #666;
    margin-bottom: 10px;
}

.em101-upload-text {
    font-size: 14px;
    color: #666;
}

.em101-file-preview {
    margin-top: 10px;
    padding: 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: none;
}

.em101-error-message {
    color: #d63638;
    font-size: 13px;
    margin-top: 5px;
    display: none;
}

.em101-field-group.error input,
.em101-field-group.error select,
.em101-field-group.error textarea {
    border-color: #d63638;
    box-shadow: 0 0 5px rgba(214,54,56,0.3);
}

.em101-field-group.error .em101-error-message {
    display: block;
}

.em101-conditional-section {
    margin-top: 15px;
    padding: 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: none;
}

.em101-conditional-section.show {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 500px;
    }
}

.em101-navigation-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.em101-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.em101-btn-primary {
    background: #0073aa;
    color: white;
}

.em101-btn-primary:hover {
    background: #005a87;
}

.em101-btn-secondary {
    background: #666;
    color: white;
}

.em101-btn-secondary:hover {
    background: #444;
}

.em101-btn-success {
    background: #46b450;
    color: white;
}

.em101-btn-success:hover {
    background: #37a640;
}

.em101-btn-outline {
    background: transparent;
    color: #0073aa;
    border: 1px solid #0073aa;
}

.em101-btn-outline:hover {
    background: #0073aa;
    color: white;
}

.em101-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.em101-save-indicator {
    display: none;
    align-items: center;
    color: #666;
    font-size: 13px;
}

.em101-save-indicator.saving::before {
    content: "💾";
    margin-left: 5px;
    animation: pulse 1s infinite;
}

.em101-save-indicator.saved::before {
    content: "✅";
    margin-left: 5px;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.em101-summary-section {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
}

.em101-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.em101-summary-row:last-child {
    border-bottom: none;
}

.em101-summary-label {
    font-weight: 600;
    color: #333;
}

.em101-summary-value {
    color: #666;
}

.em101-declaration-box {
    background: #fffbf0;
    border: 1px solid #f0b849;
    border-radius: 6px;
    padding: 20px;
    margin: 20px 0;
}

.em101-declaration-text {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 15px;
}

.em101-signature-area {
    background: #f0f6fc;
    border: 1px solid #0073aa;
    border-radius: 6px;
    padding: 20px;
    margin-top: 20px;
}

.em101-signature-input {
    width: 100%;
    max-width: 300px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

/* רספונסיביות */
@media (max-width: 768px) {
    .em101-form-container {
        margin: 10px;
        padding: 15px;
    }
    
    .em101-progress-indicator {
        flex-direction: column;
    }
    
    .em101-progress-step {
        margin-bottom: 5px;
        border-radius: 4px !important;
    }
    
    .em101-radio-group,
    .em101-checkbox-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .em101-navigation-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .em101-btn {
        width: 100%;
        text-align: center;
    }
    
    .em101-field-group input,
    .em101-field-group select,
    .em101-field-group textarea {
        max-width: 100%;
    }
}

/* אנימציות */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.em101-form-step {
    animation: fadeIn 0.4s ease;
}

/* הדפסה */
@media print {
    .em101-navigation-buttons,
    .em101-progress-indicator {
        display: none;
    }
    
    .em101-form-container {
        box-shadow: none;
        border: none;
    }
}