:root {
    --primary-color: #665143; 
    --secondary-color: #708f71; 
    --accent-color: #1a0000; 
    --bg-color: #d6d6d6;
    --text-color: #2d3748; 
    --light-gray-color: #e2e8f0;
    --border-color: #cbd5e0;
    --header-font: 'Assistant', sans-serif;
}

body {
    font-family: var(--header-font);
    margin: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.registration-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* --- Panel צדדי (דסקטופ) --- */
.side-panel {
    width: 380px;
    background-color: #ffffff;
    border-left: 1px solid var(--light-gray-color);
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.logo {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
    margin-bottom: 4rem;
    display: block;
    text-align: right;
}

.logo span {
    color: var(--secondary-color);
}

.progress-bar-vertical {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: #a0aec0;
    transition: all 0.3s ease;
    padding: 10px;
    border-radius: 8px;
    border-right: 4px solid transparent;
}

.progress-step.active {
    color: var(--primary-color);
    background-color: #f0f4f9;
    border-right-color: var(--accent-color);
}
.progress-step.completed {
    color: var(--secondary-color);
}

.step-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
}

.step-label h4 {
    margin: 0 0 4px 0;
    font-size: 1rem;
    font-weight: 700;
}
.step-label p {
    margin: 0;
    font-size: 0.9rem;
}

.side-panel-footer {
    margin-top: auto;
    font-size: 0.8rem;
    color: #718096;
}

/* --- אזור תוכן מרכזי --- */
.content-panel {
    flex-grow: 1;
    padding: 3rem 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.step-wrapper {
    max-width: 550px;
    width: 100%;
    margin: 0 auto;
}

/* ✨ --- התיקון הסופי --- ✨ */
.step {
    display: none;
}
.step.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

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

.step h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.step p {
    font-size: 1.1rem;
    color: #4a5568;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

/* --- רכיבי טופס --- */
.form-group {
    margin-bottom: 1.5rem;
    text-align: right;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: all 0.2s ease;
}
.form-group input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.15);
}

/* --- כפתורים --- */
.nav-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}
.nav-btn, .google-btn, .nav-btn-secondary {
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    text-align: center;
}
.next-btn { background-color: var(--secondary-color); color: #fff; }
.next-btn:hover { background-color: #276749; }
.next-btn:disabled { background-color: #a0aec0; cursor: not-allowed; }

.back-btn { background-color: var(--light-gray-color); color: var(--text-color); }
.back-btn:hover { background-color: #d1d9e4; }

.google-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: auto;
    background-color: var(--primary-color);
    color: #fff;
}
.google-btn:hover { background-color: #24466b; }

.nav-btn-secondary {
    background-color: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}
.nav-btn-secondary:hover {
    background-color: rgba(49, 130, 206, 0.05);
}

/* --- רכיבים ייחודיים לשלבים --- */
.location-summary {
    background-color: #f0f4f9;
    border: 1px solid #d6e2f1;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-top: 1.5rem;
    text-align: right;
}
.location-summary h4 { margin: 0 0 0.5rem 0; color: var(--secondary-color); }
.location-summary p { font-size: 0.9rem; margin-bottom: 0.25rem; }
.location-summary p:last-child { margin-bottom: 0; }
.location-summary .fa-check-circle { margin-left: 8px; }

.summary-card {
    background: linear-gradient(135deg, #f7fafc, #eef2f9);
    border: 1px solid var(--light-gray-color);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: right;
}
.summary-card h3 { margin-top: 0; color: var(--primary-color); }
.summary-card .price-note { color: var(--secondary-color); font-weight: 700; }

/* --- הסתרת רכיבים והצגתם לפי הצורך --- */
.mobile-header, .progress-bar-mobile { display: none; }

/* ======================================= */
/* --- רספונסיביות למובייל --- */
/* ======================================= */
@media (max-width: 992px) {
    .registration-container {
        flex-direction: column;
    }

    .side-panel {
        display: none; /* הסתר את הפאנל הצדדי לחלוטין */
    }

    .content-panel {
        padding: 1.5rem;
        justify-content: flex-start;
    }

    .step-wrapper {
        margin: 0;
    }
    
    .mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 2rem;
    }

    .mobile-header .logo {
        margin-bottom: 0;
        font-size: 1.8rem;
    }
    
    .progress-bar-mobile {
        display: block;
        margin-bottom: 2rem;
    }
    .progress-track {
        height: 8px;
        background-color: var(--light-gray-color);
        border-radius: 4px;
        overflow: hidden;
    }
    .progress-fill {
        height: 100%;
        width: 25%; /* יתעדכן עם JS */
        background-color: var(--accent-color);
        border-radius: 4px;
        transition: width 0.4s ease;
    }

    .step h2 {
        font-size: 1.8rem;
    }
    .step p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .nav-buttons {
        flex-direction: column-reverse;
    }
}