﻿/* עיצוב כללי לכרטיס בשיטת Grid */
.page1-topic-card {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 140px; /* טקסט מימין, תמונה משמאל */
    grid-template-rows: auto auto; /* שורה ראשונה לכותרת, שורה שנייה לתוכן ותמונה */
    grid-template-areas: "title title" "content image";
    align-items: center;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    cursor: pointer;
    direction: rtl;
    background: #fff;
    gap: 15px 20px;
}

    .page1-topic-card:hover {
        box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
        transform: translateY(-2px);
    }

    /* סימון ה-V */
    .page1-topic-card .check {
        position: absolute;
        top: 15px;
        left: 15px;
        width: 24px;
        height: 24px;
        background-color: #2e7d32;
        color: #fff;
        border-radius: 50%;
        display: none;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        z-index: 2;
    }

    .page1-topic-card.selected .check {
        display: flex;
    }

    /* מיקום הכותרת בראש הכרטיס */
    .page1-topic-card .card-title {
        grid-area: title;
        font-size: 18px;
        font-weight: 700;
        color: #1a2b4c;
        text-align: right;
    }

    /* מעטפת התמונה */
    .page1-topic-card .topic-image-wrapper {
        grid-area: image;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .page1-topic-card .topic-image-wrapper img {
            max-width: 100%;
            max-height: 140px;
            object-fit: contain;
            border-radius: 8px;
        }

    /* תוכן הכרטיס (תיאור ומחיר) */
    .page1-topic-card .card-content {
        grid-area: content;
        display: flex;
        flex-direction: column;
        text-align: right;
        justify-content: center;
    }

    .page1-topic-card .card-desc {
        font-size: 13px;
        color: #666;
        margin-bottom: 15px;
        line-height: 1.4;
    }

    /* מחיר */
    .page1-topic-card .topic-price {
        display: flex;
        align-items: center;
        gap: 4px;
        font-size: 15px;
        font-weight: 700;
        color: #e91e63;
        border-top: 1px solid rgba(0, 0, 0, 0.06);
        padding-top: 10px;
        width: fit-content;
    }

    .page1-topic-card .price-label {
        font-weight: 500;
        color: #e91e63;
    }

    /* צבעי הרקע ל-6 הקוביות */
    .page1-topic-card:nth-child(1) {
        background: linear-gradient(135deg, #fefaf4 0%, #f7ebd9 100%);
    }

    .page1-topic-card:nth-child(2) {
        background: linear-gradient(135deg, #f4f9f4 0%, #e1f0e2 100%);
    }

    .page1-topic-card:nth-child(3) {
        background: linear-gradient(135deg, #f4f8fb 0%, #e2edf7 100%);
    }

    .page1-topic-card:nth-child(4) {
        background: linear-gradient(135deg, #f5f8fa 0%, #e6edf3 100%);
    }

    .page1-topic-card:nth-child(5) {
        background: linear-gradient(135deg, #fdfaf0 0%, #f7ecd0 100%);
    }

    .page1-topic-card:nth-child(6) {
        background: linear-gradient(135deg, #faf4fb 0%, #eddff2 100%);
    }
/* קוד ה-CSS */
.banner-outer {
    width: 100%; /* מתפרס על כל רוחב האתר */
  /* height: 200px; /* קבע גובה רצוי */
   
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center; /* ממקם את התוכן במרכז */
    align-items: center;
}

.content-container {
    width: 100%;
    max-width: 1154px; /* כאן הגדר את רוחב דף ההזמנה שלך */
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.banner-content-img {
    width: 1154px;
    height: auto;
    max-height:115px;
}
.banner-outer {
    /* הגרדיאנט הזה יוצר מעבר חלק מהבורדו שבצד שמאל לכחול הכהה שבצד ימין */
    background: linear-gradient(90deg, #801F32 0%, #113B6D 70%);
    width: 100%;
}
.book-type-section.selection-attention {
    animation: selectionAttention 1.4s ease-out;
}

@keyframes selectionAttention {
    0% {
        transform: scale(1);
    }

    30% {
        transform: scale(1.015);
        box-shadow: 0 0 0 4px rgba(236, 72, 135, 0.18);
    }

    100% {
        transform: scale(1);
        box-shadow: none;
    }
}


/* =========================================================
           Wizard navigation - local overrides only
           ========================================================= */
/* פס התקדמות קטן וקומפקטי יותר */
.topbar {
    position: relative;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    padding-right: 58px !important; /* מקום לכפתור הבית */
}

#stepsBar .step .bullet {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    line-height: 30px !important;
    font-size: 14px !important;
}

#stepsBar .step .label {
    font-size: 14px !important;
}

#stepsBar .connector {
    width: 38px !important;
    min-width: 38px !important;
}

/* כפתור יציאה יחיד מה-Wizard - דף הבית */
.wizard-home-button {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    background: #ffffff;
    border: 1px solid #d9e2ec;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    font-size: 19px;
    line-height: 1;
    z-index: 20;
}

    .wizard-home-button:hover {
        transform: translateY(-50%) scale(1.05);
    }
.book-type-section.selection-attention {
    animation: selectionAttention 1.4s ease-out;
}


/* =========================================================
           Page 2 - optional school model search
           ========================================================= */
.school-search-panel {
    width: 100%;
    max-width: 760px;
    margin: 0 auto 16px;
    direction: rtl;
}

.school-search-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    background: #f8fbfd;
    border: 1px solid #d9e7ef;
    border-radius: 12px;
    cursor: pointer;
    text-align: right;
    color: #294e73;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
    background: #fff5f9;
    border: 1px solid #f0b6ce;
}

    .school-search-toggle:hover,
    .school-search-toggle[aria-expanded="true"] {
        background: #ffeaf3;
        border-color: #e51b73;
        box-shadow: 0 4px 14px rgba(30, 86, 120, .10);
    }

.school-search-toggle-text {
    min-width: 0;
}

.school-search-toggle-title {
    display: block;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    color: #294e73;
}

.school-search-toggle-subtitle {
    display: block;
    margin-top: 3px;
    font-size: 13px;
    font-weight: 400;
    color: #70879a;
}

.school-search-toggle-action {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #e51b73;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.school-search-toggle-arrow {
    display: inline-block;
    font-size: 17px;
    transition: transform .2s ease;
}

.school-search-toggle[aria-expanded="true"] .school-search-toggle-arrow {
    transform: rotate(180deg);
}

.school-search-body {
    margin-top: 9px;
    padding: 16px;
    background: #ffffff;
    border: 1px solid #e2e9ee;
    border-radius: 12px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, .05);
}

    .school-search-body[hidden] {
        display: none !important;
    }

.school-search-help {
    margin-bottom: 12px;
    color: #566a7a;
    font-size: 13px;
    line-height: 1.45;
}

.school-search-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
}

.school-search-field label {
    display: block;
    margin-bottom: 5px;
    color: #44596b;
    font-size: 13px;
    font-weight: 600;
}

.school-search-field input {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #cfdbe3;
    border-radius: 8px;
    background: #ffffff;
}

    .school-search-field input:focus {
        border-color: #5aa8cc;
        box-shadow: 0 0 0 3px rgba(90, 168, 204, .12);
        outline: none;
    }

.school-search-actions {
    display: flex;
    gap: 9px;
    margin-top: 12px;
}

    .school-search-actions button {
        min-height: 40px;
        padding: 8px 18px;
        border-radius: 20px;
        cursor: pointer;
    }

#doSearch {
    border: 0;
    background: linear-gradient(90deg, #e51b73 0%, #a93693 50%, #1879bd 100%);
    color: #ffffff;
    font-weight: 700;
}

#clearSearch {
    background: #ffffff;
    border: 1px solid #cfdbe3;
    color: #52697a;
}

.school-search-error {
    display: block;
    min-height: 18px;
    margin-top: 8px;
    color: #b42318;
    font-size: 13px;
    font-weight: 600;
}

@media (max-width: 600px) {
    .school-search-panel {
        margin-bottom: 12px;
    }

    .school-search-toggle {
        align-items: flex-start;
        padding: 12px 13px;
        gap: 9px;
    }

    .school-search-toggle-title {
        font-size: 14px;
    }

    .school-search-toggle-subtitle {
        font-size: 12px;
    }

    .school-search-toggle-action {
        font-size: 12px;
    }

    .school-search-fields {
        grid-template-columns: 1fr;
    }

    .school-search-actions {
        flex-direction: column;
    }

        .school-search-actions button {
            width: 100%;
        }
}


/* =========================================================
                   PAGE 4 - התאמה אישית ותוספות
                   ========================================================= */
#page4 .page4-personalization {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

#page4 .page4-service-card {
    border: 1px solid #e3e9ef;
    border-radius: 16px;
    padding: 20px;
    background: #ffffff;
    box-shadow: 0 5px 16px rgba(18, 60, 85, 0.06);
}

#page4 .page4-service-title {
    margin: 0 0 5px 0;
    color: #123c55;
    font-size: 20px;
    font-weight: 700;
}

#page4 .page4-service-subtitle {
    margin: 0 0 16px 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

#page4 .page4-details-panel {
    margin-top: 16px;
    padding: 16px;
    border: 1px solid #dbe7f0;
    border-radius: 12px;
    background: #f8fbfd;
}

#page4 .page4-upload-title {
    display: block;
    margin-bottom: 10px;
    color: #123c55;
    font-weight: 700;
}

#page4 .page4-upload-actions {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

#page4 .segmented-control {
    width: 100%;
    max-width: none;
}

#page4 .page4-summary-button-row {
    display: flex;
    justify-content: flex-start;
    margin-top: 2px;
}

#page4 #goToSummaryBtn {
    float: none !important;
    min-width: 210px;
}

<style >
/* =========================================================
                   PAGE 5 - סיכום הזמנה לאישור
                   ========================================================= */
#page5 .page5-summary-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 22px;
    align-items: start;
}

#page5 .page5-main-card,
#page5 .page5-preview-card {
    background: #ffffff;
    border: 1px solid #e3e9ef;
    border-radius: 16px;
    box-shadow: 0 5px 16px rgba(18, 60, 85, 0.06);
}

#page5 .page5-main-card {
    padding: 20px;
}

#page5 .page5-preview-card {
    padding: 16px;
    text-align: center;
    position: sticky;
    top: 18px;
}

    #page5 .page5-preview-card img {
        width: 100% !important;
        height: auto !important;
        max-height: 340px !important;
        object-fit: contain;
        border-radius: 12px;
    }

#page5 .page5-top-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 14px;
    align-items: center;
    padding: 14px 16px;
    margin-bottom: 18px;
    background: #f5f9fc;
    border: 1px solid #dbe7f0;
    border-radius: 12px;
}

#page5 .page5-product-name {
    font-size: 20px;
    font-weight: 800;
    color: #123c55;
    line-height: 1.35;
}

#page5 .page5-model-line {
    margin-top: 4px;
    color: #667987;
    font-size: 14px;
}

#page5 .page5-quick-stat {
    min-width: 105px;
    padding: 8px 12px;
    text-align: center;
    background: #ffffff;
    border: 1px solid #dbe7f0;
    border-radius: 10px;
}

#page5 .page5-quick-stat-label {
    display: block;
    font-size: 12px;
    color: #71808b;
    margin-bottom: 2px;
}

#page5 .page5-quick-stat-value {
    display: block;
    font-size: 17px;
    font-weight: 800;
    color: #123c55;
}

#page5 .page5-section {
    margin-top: 16px;
    border: 1px solid #e3e9ef;
    border-radius: 12px;
    overflow: hidden;
}

#page5 .page5-section-title {
    margin: 0;
    padding: 11px 14px;
    font-size: 17px;
    font-weight: 800;
    color: #123c55;
    background: #f8fbfd;
    border-bottom: 1px solid #e3e9ef;
}

#page5 .page5-details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
    padding: 4px 14px 10px;
}

#page5 .summary-detail {
    display: grid !important;
    grid-template-columns: 145px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 9px 0 !important;
    margin: 0 !important;
    border-bottom: 1px solid #edf1f4 !important;
    min-width: 0;
}

    #page5 .summary-detail > span:first-child {
        font-weight: 700;
        color: #41586a;
    }

    #page5 .summary-detail > span:last-child {
        color: #123c55;
        overflow-wrap: anywhere;
    }

#page5 .page5-qty-wrap {
    padding: 12px 14px 14px;
}

#page5 #sum_qty {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
    padding: 0 !important;
}

#page5 .page5-qty-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 9px 11px;
    background: #f8fbfd;
    border: 1px solid #e3e9ef;
    border-radius: 9px;
}

#page5 .page5-qty-name {
    font-weight: 700;
    color: #41586a;
}

#page5 .page5-qty-value {
    font-weight: 800;
    color: #123c55;
    white-space: nowrap;
}

#page5 .page5-extras-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
    padding: 4px 14px 10px;
}

#page5 .price-breakdown-container {
    margin: 0;
    padding: 12px 14px 14px;
    border: 0;
    background: #ffffff;
}

#page5 .breakdown-title {
    display: none;
}

#page5 .price-detail-row {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) 105px 105px 115px;
    gap: 10px;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px solid #edf1f4;
}

    #page5 .price-detail-row .price-label {
        color: #41586a;
        font-weight: 700;
    }

    #page5 .price-detail-row .price-value,
    #page5 .price-detail-row .price-total {
        text-align: left;
        white-space: nowrap;
    }

    #page5 .price-detail-row .price-total {
        font-weight: 800;
        color: #123c55;
    }

#page5 .breakdown-final-total {
    margin-top: 4px;
    padding-top: 12px;
    border-top: 2px solid #cfdbe4;
    border-bottom: 0;
    background: #f8fbfd;
    border-radius: 8px;
    padding-inline: 10px;
}

#page5 .page5-date-card {
    margin-top: 18px;
    padding: 15px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    background: #fffaf1;
    border: 1px solid #f0d8a5;
    border-radius: 12px;
}

#page5 .page5-date-title {
    font-size: 17px;
    font-weight: 800;
    color: #123c55;
}

#page5 .page5-date-help {
    margin-top: 3px;
    color: #6e7880;
    font-size: 13px;
    line-height: 1.5;
}

#page5 #DateEventProduct {
    width: 180px;
    min-height: 42px;
    padding: 7px 10px;
    border: 1px solid #c6d2da;
    border-radius: 8px;
    background: #ffffff;
    color: #123c55;
    font-size: 15px;
}

#page5 .page5-review-note {
    margin-top: 14px;
    padding: 10px 12px;
    color: #526978;
    background: #f6f9fb;
    border-radius: 9px;
    font-size: 13px;
}

#page5 .page5-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 14px;
}

#page5 #confirmAndFinishBtn {
    float: none !important;
    margin: 0 !important;
    min-width: 220px;
}

@media (max-width: 900px) {
    #page5 .page5-summary-layout {
        grid-template-columns: 1fr;
    }

    #page5 .page5-preview-card {
        position: static;
        order: -1;
    }

        #page5 .page5-preview-card img {
            max-height: 260px !important;
            width: auto !important;
            max-width: 100% !important;
        }
}

@media (max-width: 650px) {
    #page5 .page5-main-card {
        padding: 12px;
    }

    #page5 .page5-top-summary {
        grid-template-columns: 1fr 1fr;
    }

    #page5 .page5-top-summary-main {
        grid-column: 1 / -1;
    }

    #page5 .page5-details-grid,
    #page5 .page5-extras-grid,
    #page5 #sum_qty {
        grid-template-columns: 1fr;
    }

    #page5 .summary-detail {
        grid-template-columns: 125px minmax(0, 1fr);
    }

    #page5 .price-detail-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 4px 10px;
    }

        #page5 .price-detail-row .price-label {
            grid-column: 1 / -1;
        }

        #page5 .price-detail-row .price-value:nth-of-type(2) {
            display: none;
        }

    #page5 .page5-date-card {
        flex-direction: column;
        align-items: stretch;
    }

    #page5 #DateEventProduct {
        width: 100%;
    }

    #page5 #confirmAndFinishBtn {
        width: 100%;
    }
}

.event-date-note {
    margin-top: 8px;
    padding: 7px 12px;
    background: #fff7fa;
    border-right: 3px solid #e85b91;
    border-radius: 6px;
    color: #7a3d55;
    font-size: 13px;
    font-weight: 600;
}

