:root {
    /* הגדרת צבעים */
    --primary-yellow: #ffde59; 
    --dark-black: #121212;
    --text-dark: #2c3e50;
    --text-gray: #95a5a6;
    --border-light: #e0e0e0;
    --bg-light: #f8f9fa;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Heebo', sans-serif;
    outline: none;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- Header --- */
header {
    background-color: var(--dark-black);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between; /* משאיר את התפריט בצד */
    align-items: center;
    position: relative; /* <-- חשוב מאוד! מאפשר ללוגו להיות ממוקם ביחס לכותרת */
    height: 60px; /* גובה קבוע לכותרת */
}

.logo {
    position: absolute; /* מנתק את הלוגו מהזרימה הרגילה */
    left: 50%;          /* דוחף אותו לאמצע */
    transform: translateX(-50%); /* מתקן את המירכוז שיהיה מדויק */
    
    display: flex;
    align-items: center;
    justify-content: center;
}

/* הגדרת גודל התמונה של הלוגו */
.logo img {
    max-height: 80px; /* גובה הלוגו - תשחקי עם המספר הזה אם זה גדול/קטן מדי */
    width: auto;      /* שומר על פרופורציות */
}

.menu-btn {
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
}

/* --- Main Layout --- */
.main-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 20px;
    padding-bottom: 40px;
}

.card-container {
    background: #fff;
    width: 100%;
    max-width: 500px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    overflow: hidden;
    padding-bottom: 20px;
}

/* --- Progress Steps --- */
.wizard-steps {
    display: flex;
    justify-content: space-between;
    padding: 25px 30px 10px;
    position: relative;
}

.wizard-steps::before {
    content: '';
    position: absolute;
    top: 45px;
    left: 50px;
    right: 50px;
    height: 2px;
    background: var(--border-light);
    z-index: 1;
}

.step {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 60px;
    text-align: center;
}

.icon-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 8px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.step-label {
    font-size: 0.75rem;
    color: var(--text-gray);
    font-weight: 500;
}

.step.active .icon-circle {
    border-color: var(--primary-yellow);
    color: var(--dark-black);
    background-color: var(--primary-yellow);
    box-shadow: 0 4px 10px rgba(255, 245, 157, 0.6);
    transform: scale(1.1);
}

.step.active .step-label {
    color: var(--dark-black);
    font-weight: 700;
}

/* --- Content --- */
.content {
    padding: 20px 30px;
    text-align: center;
}

h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    line-height: 1.2;
    color: var(--dark-black);
}

.highlight {
    background: linear-gradient(120deg, transparent 10%, var(--primary-yellow) 60%);
    padding: 0 5px;
    border-radius: 8px;
}

p.subtitle {
    font-size: 1rem;
    color: #666;
    margin-bottom: 35px;
}

/* --- Form Fields --- */
.input-group {
    position: relative;
    margin-bottom: 30px;
    text-align: right;
}

.input-field {
    width: 100%;
    padding: 10px 0;
    font-size: 1.1rem;
    color: var(--dark-black);
    border: none;
    border-bottom: 2px solid #ddd;
    background: transparent;
    transition: border-color 0.3s;
    border-radius: 0;
}

.input-field:focus {
    border-bottom-color: var(--primary-yellow);
}

.input-label {
    position: absolute;
    top: 10px;
    right: 0;
    font-size: 1rem;
    color: #999;
    pointer-events: none;
    transition: 0.3s ease all;
}

/* אנימציה של התווית */
.input-field:focus ~ .input-label,
.input-field:not(:placeholder-shown) ~ .input-label {
    top: -15px;
    font-size: 0.85rem;
    color: var(--dark-black);
    font-weight: 600;
}

/* --- Button Styling (התיקון כאן) --- */
.btn-next {
    display: flex;             /* מיישר את התוכן הפנימי (טקסט וחץ) */
    justify-content: center;   /* ממקם תוכן פנימי באמצע */
    align-items: center;       /* ממקם תוכן פנימי באמצע הגובה */
    
    width: 50%;                /* רוחב 50% כמו שביקשת */
    margin: 30px auto;         /* המילה auto היא הקסם שממרכז את הכפתור כולו */
    
    padding: 16px;
    background-color: var(--dark-black);
    color: var(--primary-yellow);
    font-size: 1.2rem;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    gap: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transition: transform 0.2s, background-color 0.3s;
}

.btn-next:hover {
    transform: translateY(-2px);
    background-color: #000;
}

.btn-next:active {
    transform: scale(0.98);
}

/* --- Video --- */
.video-container {
    margin-top: 40px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    background-color: #000;
    border: 1px solid #eee;
}

.aspect-ratio-box {
    position: relative;
    padding-bottom: 56.25%; 
    height: 0;
}

.aspect-ratio-box iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* --- Footer --- */
footer {
    text-align: center;
    font-size: 0.85rem;
    color: #888;
    padding: 20px;
    background-color: #fff;
    border-top: 1px solid #eee;
}

/* --- Mobile --- */
@media (max-width: 600px) {
    .card-container {
        max-width: 100%;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
    }
    
    .wizard-steps::before {
        left: 40px;
        right: 40px;
    }
    
    h1 { font-size: 1.6rem; }
    
    .main-wrapper {
        background: #fff;
        padding-top: 0;
    }
}
/* --- רכיב נגישות --- */
.accessibility-wrapper {
    position: fixed;
    bottom: 20px;
    left: 20px; /* בצד שמאל למטה, סטנדרטי בישראל */
    z-index: 9999;
}

.access-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #0056b3; /* כחול נגישות סטנדרטי */
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.access-icon:hover { transform: scale(1.1); }

.access-menu {
    position: absolute;
    bottom: 60px;
    left: 0;
    width: 250px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    display: none; /* מוסתר כברירת מחדל */
    overflow: hidden;
}

.access-menu.open { display: block; }

.access-header {
    background: #f1f1f1;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
}

.access-header h3 { font-size: 16px; margin: 0; }
.close-btn { background: none; border: none; font-size: 20px; cursor: pointer; }

.access-options { list-style: none; padding: 0; margin: 0; }
.access-options li button {
    width: 100%;
    text-align: right;
    padding: 12px;
    background: none;
    border: none;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.access-options li button:hover { background-color: #f9f9f9; }

.access-statement-link { padding: 10px; text-align: center; font-size: 12px; }
.access-statement-link a { text-decoration: underline; color: #333; }

/* --- מחלקות השינוי (מה קורה כשלוחצים) --- */

/* הגדלת טקסט */
body.access-large-text * {
    font-size: 110% !important; /* מגדיל הכל ב-10% */
}

/* ניגודיות גבוהה */
body.access-high-contrast {
    background-color: #000 !important;
    color: #fff !important;
}
body.access-high-contrast * {
    background-color: #000 !important;
    color: #fff !important;
    border-color: #fff !important;
}
body.access-high-contrast .btn-next {
    border: 2px solid #ffff00 !important;
    color: #ffff00 !important;
}
body.access-high-contrast input {
    border-bottom: 2px solid #fff !important;
}

/* הדגשת קישורים */
body.access-highlight-links a {
    text-decoration: underline !important;
    background-color: #ffff00 !important;
    color: #000 !important;
}