
.containerCompareBankIsrael {
    background-color: #ffffff;
    border-radius: 1.5rem; /* More rounded corners for 2025 feel */
    box-shadow: 0 15px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05); /* Stronger, modern shadow */
    padding: 2rem; /* Slightly less padding inside container */
    width: 100%;
    max-width: 960px; /* Max width for desktop */
    display: flex;
    flex-direction: column;
    gap: 1rem; /* Reduced spacing between sections */
    margin-right: auto;
    margin-left: auto;
}

/* Custom styles for input focus */
input:focus, select:focus {
    outline: none;
    border-color: #3b82f6; /* Blue-500 for focus */
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.4); /* Blue-500 with opacity */
}

.input-field {
    padding: 0.75rem !important;
    border-radius: 0.75rem !important; /* More rounded */
    border: 1px solid #d1d5db !important; /* Gray-300 */
    font-size: 1rem !important; /* Slightly smaller font */
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem; /* Reduced gap */
}

.input-label {
    display: flex;
    align-items: center;
    gap: 0.4rem; /* Reduced gap */
    color: #4b5563; /* Gray-700 */
    font-size: 0.9rem; /* Slightly smaller font */
    font-weight: 500;
}

/* Action Buttons */
.action-button {
    background-color: #3b82f6; /* Blue-500 */
    color: white;
    padding: 0.7rem 1.2rem; /* Smaller padding */
    border-radius: 0.75rem; /* More rounded */
    font-weight: 700; /* Bolder */
    transition: background-color 0.2s, transform 0.1s;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.action-button:hover {
    background-color: #2563eb; /* Darker Blue-600 */
    transform: translateY(-1px);
}

.secondary-button {
    background-color: #6b7280; /* Gray-500 */
    color: white;
    padding: 0.6rem 1.2rem; /* Adjusted padding */
    border-radius: 0.75rem;
    font-weight: 600;
    transition: background-color 0.2s;
    font-size: 0.9rem; /* Smaller font */
}

.secondary-button:hover {
    background-color: #4b5563; /* Gray-700 */
}

/* Results Table (reverted from cards for Above the Fold list view) */
.results-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 0.75rem;
    overflow: hidden; /* Ensures rounded corners apply to content */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.results-table th, .results-table td {
    padding: 0.75rem 1rem; /* Adjusted padding */
    text-align: right;
    border-bottom: 1px solid #e5e7eb; /* Light gray border */
}

.results-table thead {
    background-color: #e5e7eb; /* Light gray for header */
    color: #4b5563;
    font-weight: 600;
    font-size: 0.85rem;
}

.results-table tbody tr:nth-child(even) {
    background-color: #f9fafb; /* Alternate row background */
}

.results-table tbody tr:hover {
    background-color: #f0f4f8; /* Subtle hover effect */
}

.bank-logo-small {
    width: 30px; /* Smaller logos for table */
    height: 30px;
    object-fit: contain;
    margin-inline-end: 8px;
    vertical-align: middle;
}

.bank-name-cell {
    display: flex;
    align-items: center;
    font-weight: 500;
    color: #1f2937;
}

.cheapest-row {
    background-color: #e0f2f7 !important; /* Light blue for cheapest row */
    border-left: 4px solid #3b82f6; /* Blue border on left */
    font-weight: 600;
}

.cheapest-row .bank-name-cell span {
    color: #1e40af; /* Darker blue for cheapest bank name */
}

.cheapest-badge-table {
    background-color: #3b82f6; /* Blue-500 */
    color: white !important;
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-inline-start: 5px;
    display: inline-block;
}

/* Call to Action Banner */
.call-to-action-banner {
    background-color: #dbeafe; /* Light blue for CTA banner */
    color: #1e40af; /* Darker blue text */
    padding: 1rem 1.5rem; /* Adjusted padding */
    border-radius: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    margin-top: 1rem; /* Space above CTA */
    font-size: 1rem;
    font-weight: 600;
}

.call-to-action-banner .action-button {
    background-color: #10b981; /* Green button inside light blue banner */
    margin-top: 0.75rem;
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
}

.hidden {
    display: none !important; /* Ensure hidden elements are not displayed */
}

.call-to-action-banner .action-button:hover {
    background-color: #059669; /* Darker green on hover */
}

@media (min-width: 768px) {
    .call-to-action-banner {
        flex-direction: row;
        justify-content: space-between;
        text-align: right;
        padding: 1.2rem 2rem;
    }

    .call-to-action-banner .action-button {
        margin-top: 0;
    }
}

/* Sticky CTA on Mobile */
@media (max-width: 767px) {
    .containerCompareBankIsrael {
        padding: 10px !important;
    }

    .sticky-cta {
        padding: 3px;
        display: none;
    }

    .sticky-cta .action-button {
        width: 100%;
        padding: 0.75rem;
    }

    .m-sticky-s {
        position: fixed;
        bottom: 7px;
        left: 4%;
        width: 91%;
        z-index: 99;
    }
}


/* Modals (Contact & Message) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Slightly darker overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px); /* Blur background */
}

.modal-content {
    background-color: white;
    padding: 2rem; /* More padding */
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); /* Stronger shadow */
    max-width: 500px; /* Slightly wider */
    width: 90%;
    position: relative;
    animation: fadeIn 0.3s ease-out;
}

.close-button {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem; /* Position on left for RTL */
    background: none;
    border: none;
    font-size: 1.8rem; /* Larger close button */
    cursor: pointer;
    color: #9ca3af; /* Gray-400 */
    transition: color 0.2s;
}

.close-button:hover {
    color: #4b5563; /* Gray-700 */
}

/* Advanced Parameters Toggle */
.advanced-parameters {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none; /* Disable interaction when hidden */
}

.advanced-parameters.expanded {
    max-height: 500px; /* Adjust as needed to fit content */
    transition: max-height 0.7s ease-in, opacity 0.5s ease-in, transform 0.5s ease-in;
    opacity: 1;
    transform: translateY(0);
    pointer-events: all; /* Enable interaction when expanded */
}

/* Skeleton Loader */
.skeleton-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.skeleton-table th, .skeleton-table td {
    padding: 0.75rem 1rem;
    text-align: right;
    border-bottom: 1px solid #e5e7eb;
}

.skeleton-table thead {
    background-color: #e5e7eb;
    color: #4b5563;
    font-weight: 600;
    font-size: 0.85rem;
}

.skeleton-table tbody tr {
    background-color: #ffffff;
    animation: pulse 1.5s infinite ease-in-out;
}

.skeleton-table .line {
    height: 1.2rem;
    background-color: #cbd5e1;
    border-radius: 0.25rem;
}

.skeleton-table .line-sm {
    height: 0.8rem;
    width: 70%;
}

.skeleton-table .line-lg {
    height: 1.5rem;
    width: 90%;
}

@keyframes pulse {
    0% {
        opacity: 0.8;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 0.8;
    }
}

/* Trust Elements */
.trust-elements {
    font-size: 0.85rem; /* Smaller font */
    color: #6b7280;
    text-align: center;
    margin-top: 1rem; /* Reduced margin */
}

.trust-elements a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
}

.trust-elements a:hover {
    text-decoration: underline;
}


/* ——— Mobile cards view ——— */
#mortgageResultsCards {
    display: none;
}

/* עיצוב הכרטיסים */
.cards-list {
    display: grid;
    gap: 14px;
}

.mortgage-card {
    border: 1px solid #e5e7eb; /* gray-200 */
    border-radius: 16px;
    padding: 14px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}

.mortgage-card .card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.mortgage-card .bank-side {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: #111827; /* gray-900 */
}

.mortgage-card .bank-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.mortgage-card .best-badge {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #2563eb; /* blue-600 */
    color: #fff;
}

.mortgage-card .card-rows {
    display: grid;
    grid-template-columns: 1fr 1fr; /* ערכים ושמות שדות */
    row-gap: 8px;
    column-gap: 8px;
}

.mortgage-card .label {
    color: #6b7280; /* gray-500 */
    text-align: right;
}

.mortgage-card .valueCard {
    text-align: right;
    font-weight: 600;
    color: #111827;
}

/* ——— תצוגה: מובייל מציג כרטיסים, מסתיר טבלה ——— */
@media (max-width: 768px) {
    #mortgageResultsContainer {
        display: none;
    }

    /* מסתיר טבלה */
    #mortgageResultsCards {
        display: block;
    }

    /* מציג כרטיסיות */
}

/* דסקטופ: כרגיל — טבלה מוצגת, כרטיסיות מוסתרות */
@media (min-width: 769px) {
    #mortgageResultsContainer {
        display: block;
    }

    #mortgageResultsCards {
        display: none;
    }
}
