/* assets/css/style.css */

.eilam-wizard-card {
    background: #ffffff;
    padding: 50px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.06);
    max-width: 850px; /* הרחבתי מעט לטובת 3 כפתורים */
    margin: 40px auto;
    text-align: center;
    position: relative;
    font-family: 'Heebo', 'Assistant', sans-serif;
    color: #1d1d1f;
    overflow: hidden;
}

[x-cloak] { display: none !important; }

.eilam-progress-bar {
    position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: #f5f5f7;
}
.eilam-progress-fill {
    height: 100%; background: linear-gradient(90deg, #0071e3, #42a5f5); transition: width 0.6s ease;
}

.eilam-content {
    font-size: 26px; font-weight: 600; margin-bottom: 40px; line-height: 1.3; color: #1d1d1f;
    animation: fadeInFloat 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* --- הגריד הראשי (3 בשורה) --- */
.eilam-answers-grid {
    display: grid;
    /* המספר הזה קובע כמה יכנסו. 220px מאפשר בערך 3 בשורה ברוחב 800px */
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
    gap: 15px;
    margin-top: 30px;
}

/* --- גריד מיוחד למסך הביניים (2 בשורה בלבד) --- */
.eilam-answers-grid.grid-two-columns {
    grid-template-columns: 1fr 1fr; /* חלוקה שווה ל-2 */
}

/* כפתורים */
.eilam-btn-answer {
    background: #f2f2f7; border: 1px solid #e5e5ea; padding: 20px 15px; border-radius: 16px;
    cursor: pointer; transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 12px; font-size: 17px; font-weight: 500; color: #1d1d1f;
    opacity: 0; transform: translateY(40px);
    animation: slideUpFloat 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.eilam-btn-answer:hover {
    background: #e4e4eb; transform: translateY(-4px); box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
.eilam-btn-answer.btn-highlight {
    background: #e8f2ff; border-color: #0071e3; color: #0071e3;
}
.eilam-btn-answer:nth-child(1) { animation-delay: 0.1s; }
.eilam-btn-answer:nth-child(2) { animation-delay: 0.2s; }
.eilam-btn-answer:nth-child(3) { animation-delay: 0.3s; }

/* רשימה בתוך הכפתור */
.btn-summary-list {
    font-size: 13px; font-weight: normal; opacity: 0.9; margin-top: 8px; text-align: right;
    width: 100%; line-height: 1.5; border-top: 1px solid rgba(0,113,227, 0.2); padding-top: 5px;
}

/* --- הגדרת הפוטר (הנחה) --- */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* תואם ל-2 הכפתורים במסך הביניים */
    gap: 15px;
    margin-top: 5px;
    width: 100%;
}
.eilam-early-bird-note {
    font-size: 14px; color: #2da44e; font-weight: 800; text-align: center;
    grid-column: 2; /* מכריח את הטקסט להיות בעמודה השמאלית (מתחת לכפתור תשלום) */
}

/* --- כפתורי עריכה (השינוי הגדול) --- */
.edit-buttons-container {
    display: flex;
    flex-wrap: wrap; /* יורד שורה אם אין מקום */
    gap: 10px;
    justify-content: center;
    margin-top: 40px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.eilam-edit-btn {
    background: #fff;
    border: 1px solid #ddd;
    color: #555;
    padding: 6px 12px;
    border-radius: 20px; /* עגול וקטן */
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}
.eilam-edit-btn strong { color: #000; font-weight: 600; }
.eilam-edit-btn:hover {
    border-color: #0071e3; color: #0071e3; background: #f0f7ff; transform: translateY(-1px);
}

/* שאר האלמנטים */
.eilam-icon { font-size: 28px; color: #6e6e73; transition: color 0.3s; }
.btn-highlight .eilam-icon { color: #0071e3; }
.eilam-back-link { background: none; border: none; color: #0071e3; font-size: 14px; cursor: pointer; margin-top: 30px; display: flex; align-items: center; gap: 5px; opacity: 0.8; }
.participant-badge { background: #e8f2ff; color: #0071e3; padding: 4px 12px; border-radius: 12px; font-size: 12px; display: inline-block; margin-bottom: 20px; font-weight: 600; }
.eilam-summary-box { text-align: right; background: #fbfbfd; border-radius: 12px; padding: 15px; margin: 20px 0; border: 1px solid #f2f2f7; max-height: 250px; overflow-y: auto; }
.summary-item { display: flex; align-items: center; background: white; padding: 10px; margin-bottom: 8px; border-radius: 8px; border: 1px solid #e5e5ea; }
.summary-num { background: #86868b; color: white; width: 24px; height: 24px; font-size: 12px; display: flex; align-items: center; justify-content: center; border-radius: 50%; margin-left: 10px; }
.eilam-spinner { font-size: 16px; color: #86868b; padding: 40px; }

@keyframes fadeInFloat { from { opacity: 0; transform: translateY(-15px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUpFloat { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }