/* Container pentru formular */
.veziv-calculator-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background-color: #fff; /* Fundal alb */
    border: 1px solid #ddd; /* Border subțire */
    border-radius: 8px; /* Colțuri rotunjite */
    padding: 20px; /* Padding intern pentru spațiu între conținut și bordură */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Adăugarea unei umbre pentru un efect de adâncire */
}

/* Grupurile de câte trei elemente pe un rând */
.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* Fiecare input/select să ocupe un 1/3 din lățimea containerului */
.form-group {
    flex: 1 1 30%;
    display: flex;
    flex-direction: column;
    gap: 5px; /* Reduce the gap between label and input/select */
    /* margin-bottom: 10px; */
}

/* Eticheta deasupra inputului/selectului și lipită de acesta */
.form-group label {
    margin-bottom: 0; /* Remove margin between label and input/select */
    font-weight: bold;
    color: black;
    font-size: 12px;
}
/* Inputurile și selecturile să ocupe întreaga lățime disponibilă */
.form-group input,
.form-group select {
    width: 100%;
    padding: 8px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 5px !important;
}

.form-row .form-group:last-child {
    margin-bottom: 0 !important; /* Elimină spațiul suplimentar în partea de jos */
}

/* Ajustarea pentru ecrane mici (mobile) */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }
    
    .form-group {
        flex: 1 1 100%;
    }
    
    .calculator-note,
    #calculate {
        width: 100%;
    }
}

/* Stilizarea notei și butonului */
.calculator-note {
    width: 100%;
    background-color: #f9f9f9;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.calculator-note .note-icon {
    margin-right: 10px;
    color: #0073aa;
}

.veziv-calculator-button {
    width: 100%;
    background-color: #2C80FF !important; /* Light blue background */
    color: #fff;
    padding: 8px 0 !important;  /* Adjust padding for smaller height */
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    text-align: center;  /* Centrăm textul pe orizontală */
    display: flex;
    align-items: center;  /* Centrăm textul pe verticală */
    justify-content: center;  /* Centrăm textul pe orizontală */
    position: relative; /* Ensure icon is positioned correctly */
}

.veziv-calculator-button i {
    position: absolute; /* Position icon absolutely within the button */
    left: 0; /* Position icon to the left */
    width: 100px; /* Adjust width */
    height: 100%; /* Full height */
    background-color: #90ee90; /* Light green background for the icon */
    border-radius: 4px 0 0 4px; /* Rounded corners on the left */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px; /* Add border radius on the right */
}

.veziv-calculator-button i::before {
    content: '';
    display: inline-block;
    width: 32px;
    height: 32px;
    background-image: url('../img/touch-screen.png'); /* Use the new image */
    background-size: cover;
    animation: wiggle1 6s ease infinite;
}

@keyframes wiggle1 {
    0% { transform: rotate(0deg); }
    5% { transform: rotate(20deg); }
    10% { transform: rotate(0deg); }
    15% { transform: rotate(-20deg); }
    20% { transform: rotate(0deg); }
    25% { transform: rotate(20deg); }
    30% { transform: rotate(0deg); }
}

.veziv-calculator-button:hover i::before {
    animation: none; /* Stop animation on hover */
}

.veziv-calculator-button:hover {
    background-color: #2C80FF !important; /* No change on hover */
}

.slider-container {
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    width: 100%; /* Adjust the width of the slider */
    max-width: 100%;
}

.slider-content {
    overflow: hidden;
    width: 80%; /* Adjust the width of the slider content */
    margin: 0 auto; /* Center the content */
}

#loan-cards-container {
    display: flex;
    gap: 16px;
    transition: transform 0.5s ease-in-out;
    width: max-content;
}

.veziv-calculator-card {
    flex: 0 0 200px; /* Adjusted width to be even smaller */
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 15px; /* Add margin-top to the cards */
}

.veziv-calculator-card:nth-child(odd) {
    background-color: #2C80FF; /* Light blue background for the first card */
    color: white;
}

.veziv-calculator-card:nth-child(even) {
    background-color: #3268ba; /* Darker blue background for the second card */
    color: white;
}

.veziv-calculator-card-header {
    font-weight: bold; /* Make the font bold */
    color: inherit; /* Inherit color from parent */
    background: none; /* Remove background */
    padding: 0; /* Remove padding */
    border-radius: 0; /* Remove border radius */
    text-align: left; /* Align text to the left */
}

.veziv-calculator-card-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.veziv-calculator-card-body span {
    font-size: 14px;
}

.slider-button {
    background-color: #2C80FF !important; /* Blue background */
    color: white !important;
    border: none !important;
    cursor: pointer !important;
    padding: 24px !important; /* Increase size */
    border-radius: 50% !important; /* Make buttons circular */
    display: flex !important; /* Ensure buttons are displayed */
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px; /* Increase arrow size */
}

#slider-left {
    left: 5px; /* Position closer to the cards */
}

#slider-right {
    right: 5px; /* Position closer to the cards */
}

.slider-button:hover {
    background-color: #2C80FF !important; /* No change on hover */
}

.slider-button:disabled {
    background-color: #aaa !important;
    cursor: not-allowed !important;
}

@media (max-width: 768px) {
    .veziv-calculator-card {
        flex: 0 0 48%;
    }

    .veziv-calculator-button i {
        width: 30px !important; /* Smaller width for mobile */
        height: 30px !important; /* Smaller height for mobile */
    }
}

@media screen and (max-width: 782px) {
    .veziv-calculator-wrapper {
        padding: 16px;
    }

    .veziv-calculator-table {
        display: block;
        overflow-x: auto;
    }
}

/* New button below the cards */
.veziv-calculator-offers-button {
    width: 100%;
    background-color: #000 !important; /* Black background */
    color: #fff;
    padding: 8px 0 !important;  /* Adjust padding for smaller height */
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
    margin-top: 20px;
}

.veziv-calculator-offers-button:hover {
    background-color: #000 !important; /* No change on hover */
}

.slider-button,
.veziv-calculator-offers-button {
    padding: 8px 0 !important;  /* Adjust padding for smaller height */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Custom select arrow */
select {
    appearance: none;
    background: url('data:image/svg+xml;utf8,<svg fill="blue" height="32" viewBox="0 0 24 24" width="32" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>') no-repeat right 10px center;
    background-size: 24px 24px; /* Make the arrow larger */
    padding-right: 40px; /* Adjust padding to make room for the arrow */
}

/* .credit-selector {
    margin-bottom: 24px;
    padding: 16px;
    background: #f0f6fc;
    border: 1px solid #2271b1;
    border-radius: 8px;
}

.credit-selector label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1d2327;
}

.credit-selector select {
    width: 100%;
    padding: 10px;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    font-size: 14px;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.credit-selector select:hover {
    border-color: #2271b1;
}

.credit-selector select:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: none;
}

.calculator-note {
    margin: 20px 0;
    padding: 12px 16px;
    background: #f0f6fc;
    border-left: 4px solid #2271b1;
    border-radius: 0 4px 4px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.calculator-note .note-icon {
    color: #2271b1;
    font-size: 20px;
}

.calculator-note .note-text {
    color: #1d2327;
    font-size: 14px;
    line-height: 1.4;
}  */