/* איפוס בסיסי */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rubik', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #333;
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}

/* כותרת */
.header {
    background: linear-gradient(90deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 25px 30px;
    position: relative;
}

.logo h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo p {
    font-size: 16px;
    opacity: 0.9;
    font-weight: 300;
}

.progress-container {
    margin-top: 20px;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: #2ecc71;
    width: 0%;
    transition: width 0.5s ease;
}

/* תוכן ראשי */
.main-content {
    display: flex;
    flex-wrap: wrap;
    padding: 30px;
    gap: 30px;
}

.form-container {
    flex: 1;
    min-width: 300px;
}

/* עיצוב כללי לשלב */
.step {
    display: none;
    animation: fadeIn 0.5s ease;
}

.step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-title {
    font-size: 22px;
    color: #2c3e50;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    font-weight: 600;
}

/* סגנונות לקלטים שונים */
.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
}

.input-group input[type="text"],
.input-group input[type="tel"],
.input-group input[type="number"],
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    font-family: 'Rubik', sans-serif;
    transition: border-color 0.3s;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    border-color: #3498db;
    outline: none;
}

.input-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* עיצוב למחוון */
.range-container {
    padding: 20px 0;
}

.range-value {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: #3498db;
    margin-bottom: 15px;
}

.range-slider {
    width: 100%;
    height: 10px;
    -webkit-appearance: none;
    appearance: none;
    background: #ddd;
    border-radius: 5px;
    outline: none;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    background: #3498db;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.range-slider::-moz-range-thumb {
    width: 25px;
    height: 25px;
    background: #3498db;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.range-slider::-webkit-slider-thumb:hover {
    background: #2980b9;
}

.range-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    color: #7f8c8d;
    font-size: 14px;
}

/* עיצוב לאופציות */
.options-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.option-btn {
    padding: 15px;
    background-color: #f8f9fa;
    border: 2px solid #ddd;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.option-btn:hover {
    background-color: #e9ecef;
    border-color: #bdc3c7;
}

.option-btn.selected {
    background-color: #e3f2fd;
    border-color: #3498db;
    color: #3498db;
}

.option-btn i {
    font-size: 18px;
}

/* כפתורים */
.navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Rubik', sans-serif;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background: linear-gradient(90deg, #3498db 0%, #2980b9 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(90deg, #2980b9 0%, #2573a7 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.btn-secondary {
    background-color: #f8f9fa;
    color: #2c3e50;
    border: 2px solid #ddd;
}

.btn-secondary:hover {
    background-color: #e9ecef;
}

.btn-submit {
    background: linear-gradient(90deg, #2ecc71 0%, #27ae60 100%);
    color: white;
}

.btn-submit:hover {
    background: linear-gradient(90deg, #27ae60 0%, #219653 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
}

/* תיבת מידע */
.info-box {
    flex: 0 0 300px;
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    border: 1px solid #e9ecef;
}

.info-box h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-box ul {
    list-style: none;
    margin-bottom: 25px;
}

.info-box li {
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-box li:last-child {
    border-bottom: none;
}

.info-box li i {
    color: #2ecc71;
}

.secure-info {
    background-color: #e3f2fd;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    color: #2980b9;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* אנימציית טעינה */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    display: none;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-overlay p {
    font-size: 18px;
    color: #2c3e50;
    font-weight: 500;
}

/* רספונסיביות */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }
    
    .info-box {
        flex: 0 0 auto;
        width: 100%;
    }
    
    .options-container {
        grid-template-columns: 1fr;
    }
    
    .navigation-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .logo h1 {
        font-size: 24px;
    }
}

/* עיצוב לשדות עם שגיאה */
.input-error {
    border-color: #e74c3c !important;
}

.error-message {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}