:root {
    --primary-color: #0b2e59;
    --secondary-color: #d4af37;
    --bg-color: #f8f9fa;
    --text-color: #333;
    --border-color: #e0e0e0;
}

* {
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* --- Language Switcher --- */
.lang-switch-wrapper {
    position: absolute;
    top: 20px;
    left: 20px; /* מקובע תמיד לשמאל */
    z-index: 100;
    display: flex;
    gap: 5px;
    background: rgba(255, 255, 255, 0.9);
    padding: 5px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.lang-btn {
    background: transparent;
    border: none;
    padding: 6px 12px;
    cursor: pointer;
    font-weight: bold;
    color: #555;
    border-radius: 4px;
    transition: all 0.3s;
    font-size: 14px;
}

.lang-btn.active {
    background: var(--primary-color);
    color: white;
}

/* Header Image */
.hero-image {
    width: 100%;
    height: 350px; 
    object-fit: cover; 
    object-position: top center; 
    display: block;
}

/* Main Container */
.container {
    max-width: 650px; 
    margin: -60px auto 40px; 
    background: #fff;
    padding: 40px; 
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15); 
    position: relative;
    z-index: 10;
}

h1 {
    color: var(--primary-color);
    text-align: center;
    font-size: 28px;
    margin-bottom: 5px;
}

/* --- עיצוב באנר מכירתי לכותרת המשנה --- */
h2.subtitle {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a4a8c 100%); /* רקע כחול עמוק ויוקרתי */
    color: #ffffff; /* טקסט לבן בולט */
    text-align: center;
    font-size: 21px;
    font-weight: 800;
    margin-top: 5px;
    margin-bottom: 35px;
    padding: 22px 20px;
    border-radius: 12px;
    border-bottom: 5px solid var(--secondary-color); /* פס זהב עבה שמושך את העין */
    box-shadow: 0 10px 25px rgba(11, 46, 89, 0.3); /* הצללה חזקה שגורמת לאלמנט "לצוף" */
    line-height: 1.4;
    animation: pulse-attention 2.5s infinite ease-in-out; /* אנימציית פעימה עדינה */
}

/* קלאס להדגשת אחוז ההנחה בתוך הטקסט */
.highlight-sale {
    color: var(--secondary-color) !important; /* מחייב את הדפדפן להשתמש בזהב */
    font-size: 1.15em;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    display: inline-block;
    margin-right: 5px;
}

/* אנימציה שמושכת תשומת לב */
@keyframes pulse-attention {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); } /* גדל ב-2% בלבד כדי לא להציק בעין */
    100% { transform: scale(1); }
}

/* Form Sections */
.form-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.form-section:last-child {
    border-bottom: none;
}

.section-title {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title span {
    background: var(--secondary-color);
    color: #fff;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    font-weight: bold;
}

/* Inputs */
.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.input-group input[type="text"],
.input-group input[type="tel"],
.input-group input[type="email"],
.input-group input[type="number"] {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(11, 46, 89, 0.1);
}

.phone-input-wrapper {
    display: flex;
    gap: 10px;
}

.phone-input-wrapper select {
    width: 30%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 16px;
    background-color: #fff;
    cursor: pointer;
    transition: border-color 0.3s;
}

.phone-input-wrapper select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(11, 46, 89, 0.1);
}

.phone-input-wrapper input {
    width: 70% !important;
}

.error-msg {
    color: #dc3545;
    font-size: 13px;
    margin-top: 5px;
    display: none;
}

html[dir="ltr"] #phone-error {
    text-align: left !important;
}

/* Bank Selection Grid */
.banks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); 
    gap: 15px;
    margin-top: 15px;
}

.bank-option {
    position: relative;
}

.bank-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    z-index: -1;
}

.bank-option label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 10px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    height: 100%;
    font-size: 14px;
}

.bank-option label:hover {
    border-color: #bbb;
}

.bank-option input[type="radio"]:checked + label {
    border-color: var(--primary-color);
    background-color: rgba(11, 46, 89, 0.05);
    font-weight: bold;
}

.bank-logo {
    width: 60px;
    height: 40px;
    object-fit: contain;
    margin-bottom: 8px;
}

.submit-wrapper {
    margin-top: 25px;
    display: block; 
}

.submit-btn {
    width: 100%; 
    background: linear-gradient(135deg, #0b2e59 0%, #1a4a8c 100%);
    color: #fff;
    border: none;
    padding: 16px 20px;
    font-size: 18px;
    font-weight: 800;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(11, 46, 89, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #0e3a70 0%, #225a9c 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(11, 46, 89, 0.3);
}

.btn-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.submit-btn:hover .btn-icon {
    transform: translateX(-5px);
}

html[dir="ltr"] .btn-icon {
    transform: scaleX(-1); /* הופך את החץ לרוסית */
}
html[dir="ltr"] .submit-btn:hover .btn-icon {
    transform: scaleX(-1) translateX(-5px); 
}

#success-message {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    font-size: 60px;
    color: #28a745;
    margin-bottom: 20px;
}

#success-message h3 {
    color: var(--primary-color);
    font-size: 24px;
}

#success-message p {
    font-size: 18px;
    color: #555;
    margin-bottom: 30px;
}

.back-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    width: 100%;
    max-width: 250px;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.back-btn:hover {
    background-color: rgba(11, 46, 89, 0.05);
}

.btn-icon-back {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.back-btn:hover .btn-icon-back {
    transform: translateX(5px);
}

html[dir="ltr"] .btn-icon-back {
    transform: scaleX(-1);
}
html[dir="ltr"] .back-btn:hover .btn-icon-back {
    transform: scaleX(-1) translateX(5px);
}

#floating-contact-btn.elegant-floating-btn {
    position: fixed;
    bottom: 30px;
    left: 30px; /* תמיד יישאר בצד שמאל */
    width: 65px;
    height: 65px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(11, 46, 89, 0.1), 0 12px 20px rgba(11, 46, 89, 0.2), 0 20px 30px rgba(11, 46, 89, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1); 
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

#floating-contact-btn.elegant-floating-btn:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 8px 12px rgba(11, 46, 89, 0.15), 0 16px 24px rgba(11, 46, 89, 0.25), 0 25px 40px rgba(11, 46, 89, 0.35);
}

.elegant-chat-icon {
    width: 30px;
    height: 30px;
    color: var(--secondary-color);
    transition: transform 0.3s ease;
}

#floating-contact-btn.elegant-floating-btn:hover .elegant-chat-icon {
    transform: scale(1.1) rotate(-5deg); 
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    display: flex;
    opacity: 1;
}

.modern-modal-content {
    background-color: #fff;
    border-radius: 20px;
    width: 90%;
    max-width: 420px;
    text-align: center;
    position: relative;
    box-shadow: 0 15px 50px rgba(0,0,0,0.25);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    overflow: hidden; 
}

.modal-overlay.show .modern-modal-content {
    transform: translateY(0);
}

.close-modal-btn.floating-close {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
    transition: all 0.2s;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

html[dir="ltr"] .close-modal-btn.floating-close {
    left: auto;
    right: 15px;
}

.close-modal-btn.floating-close:hover {
    transform: scale(1.1);
    background: #f0f0f0;
}

.modal-banner-logo {
    width: 100%;
    padding: 0;
    margin: 0;
    background-color: #fff;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    overflow: hidden;
    line-height: 0;
}

.full-bleed-logo {
    width: 100%;
    height: auto; 
    display: block;
}

.modal-body-content {
    padding: 30px 25px 25px;
    background-color: #ffffff;
}

.modern-contact-actions.four-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.modern-action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 18px 10px;
    border-radius: 16px;
    text-decoration: none;
    font-size: 15px;
    font-weight: bold;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(0,0,0,0.03);
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.modern-action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.phone-card { background: linear-gradient(145deg, #ffffff, #edf2ff); color: #3b5bdb; }
.phone-card .icon-circle { background: linear-gradient(135deg, #748ffc, #4c6ef5); color: white; }

.wa-card { background: linear-gradient(145deg, #ffffff, #e6fcf5); color: #08a082; }
.wa-card .icon-circle { background: linear-gradient(135deg, #38d9a9, #12b886); color: white; }

.wa-bot-card { background: linear-gradient(145deg, #ffffff, #e3fafc); color: #0b7285; }
.wa-bot-card .icon-circle { background: linear-gradient(135deg, #3bc9db, #15aabf); color: white; }

.email-card { background: linear-gradient(145deg, #ffffff, #fff4e6); color: #d9480f; }
.email-card .icon-circle { background: linear-gradient(135deg, #ffa94d, #fd7e14); color: white; }

.icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.marketing-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px dashed #f0f0f0;
    text-align: center;
}

.discount-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b6b, #fa5252);
    color: white;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 12px;
    box-shadow: 0 4px 10px rgba(250, 82, 82, 0.3);
}

.marketing-footer p {
    margin: 0;
    font-size: 15px;
    color: #495057;
    font-weight: 500;
    line-height: 1.5;
}

.required-star {
    color: #e53935;
    font-weight: bold;
    margin-right: 3px;
}
html[dir="ltr"] .required-star {
    margin-right: 0;
    margin-left: 3px;
}

/* --- Error Modal --- */
.error-icon-wrapper {
    color: #e53935;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
}

.error-title {
    color: var(--primary-color);
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 10px;
}

.error-desc {
    color: #555;
    font-size: 16px;
    margin-bottom: 25px;
    line-height: 1.5;
}

.error-close-action {
    background: linear-gradient(135deg, #e53935 0%, #c62828 100%);
    max-width: 200px;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(229, 57, 53, 0.2);
}

.error-close-action:hover {
    background: linear-gradient(135deg, #c62828 0%, #b71c1c 100%);
    box-shadow: 0 8px 20px rgba(229, 57, 53, 0.3);
}

@media (max-width: 600px) {
    .hero-image { height: 220px; }
    .container { margin: -40px 15px 20px; padding: 20px; }
    .banks-grid { grid-template-columns: repeat(2, 1fr); }
    h1 { font-size: 24px; }
    h2.subtitle { font-size: 18px; padding: 18px 15px; }
    .submit-wrapper { flex-direction: column; gap: 15px; }
    .submit-btn { width: 100%; }
    
    #floating-contact-btn.elegant-floating-btn {
        bottom: 25px; left: 25px; width: 60px; height: 60px;
    }
    .elegant-chat-icon { width: 26px; height: 26px; }
    
    .lang-switch-wrapper {
        top: 10px;
        left: 10px; /* תמיד יישאר בצד שמאל גם במובייל */
    }
	
	/* --- תיקוני פופאפ צור קשר למובייל --- */
    .modern-modal-content {
        max-height: 85vh; /* מגביל את הגובה ל-85% מהמסך */
        overflow-y: auto; /* מוסיף גלילה פנימית במידה והתוכן ארוך */
    }

    .modal-body-content {
        padding: 20px 15px 15px; /* מקטין מעט את הריווחים הפנימיים */
    }

    .modern-contact-actions.four-grid {
        gap: 10px; /* מקטין את הרווח בין הכפתורים */
    }

    .modern-action-card {
        padding: 12px 5px;
        font-size: 13px; /* טקסט מעט קטן יותר למסכים קטנים */
    }

    .icon-circle {
        width: 40px;
        height: 40px;
        font-size: 20px;
        margin-bottom: 8px;
    }
}