.car-calculator-section-calc {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 50px 20px 0px 20px;
    background-color: #f9f9f9; /* Light background color */
    background-position: top, bottom;
    background-repeat: no-repeat;
    background-size: 100% auto;
}


.container-calc {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}
@media (max-width: 1200px) {
    .arrow-btn-calc-right {
        margin-bottom: 380px;
        right: 14%;
    }
     .arrow-btn-calc-left {
        margin-bottom: 380px;
       left: 14%;
    }
  .container-calc {
    display: flex;
    flex-direction: column;   /* Stacks items in a column */
  }
    .car-image-calc {
    margin-bottom: -90px;
    margin-top: -100px;
  }
    .car-calculator-section-calc {
      padding: 0px 20px 50px 20px;
  }
}

/*.arrow-btn-calc {
    background-color: #3b5978; /* Dark blue arrow color
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-left: 80px;
    margin-right:80px;
}
*/
.arrow-btn-calc-left {
    background-color: #3b5978; /* Dark blue arrow color */
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    position: absolute;
    left: 5%;
    padding: 10px 15px;
}


.arrow-btn-calc-right {
    background-color: #3b5978; /* Dark blue arrow color */
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    position: absolute;
    right: 5%;
    padding: 10px 15px;
}

.arrow-btn-calc-left:hover {
    background-color: #fff;
    color: #3b5978;
}
.arrow-btn-calc-right:hover {
    background-color: #fff;
    color: #3b5978;
}

.car-image-calc img {
    height: auto;
    max-width: 500px;
    margin-right: 0px;
}

.calculator-box-calc {
    background-color: rgb(126 57 142); /* Purple background */
    color: white;
    padding: 20px;
    text-align: center;
    border-radius: 15px;
    max-width: 450px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1); /* Soft shadow */
}

.card-title-calc {
    font-size: 28px;
    margin-bottom: 20px;
    color:#fff;
}

.card-icon-calc {
    margin-bottom: 20px;
}

.card-description-calc {
    font-size: 16px;
    margin-bottom: 30px;
    color:#fff;
}

.card-button-calc {
    display: inline-block;
    padding: 12px 25px;
    background-color: transparent;
    border: 2px solid white;
    border-radius: 50px;
    color: white;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.3s ease;
    width:100%;
}

.card-button-calc:hover {
    background-color: white;
    color: #6A329F;
}

@media screen and (max-width: 767px) {
    .car-calculator-section-calc {
        flex-direction: column;
        text-align: center;
    }

    .arrow-btn-calc-right {
        margin-bottom: 140px;
        right: 30%;
    }
     .arrow-btn-calc-left {
        margin-bottom: 140px;
       left: 30%;
    }
    .car-image-calc {
    margin-bottom: -40px;
    margin-top: -100px;
  }

  /* The car illustration is a 1000x1000 image capped at max-width: 500px, and
     nothing else constrained it. .car-image-calc is a flex item of the column
     .container-calc with align-items: center, so it was sized to its content
     (500px) and centred -- at 393px it rendered x -53 to 447, i.e. both bumpers
     cropped off the viewport. Cap BOTH the box and the image: capping only the
     box leaves the image overflowing to the right instead of symmetrically.
     Scoped to <=767px on purpose -- an unscoped `.car-image-calc { max-width:
     100% }` lets the box stretch to the column and shifts the image 135px left
     at 1440px. Verified: 768/1024/1440 are pixel-identical to before. */
  .car-image-calc { max-width: 100%; }
  .car-image-calc img { max-width: 100%; }
}
button#prevCar {
    background-color: #487794;
}
button#nextCar {
    background-color: #487794;
}
button#prevCar:hover {
    background-color: #dae3e9;
    color:#fff;
}
button#nextCar:hover {
    background-color: #dae3e9;
    color:#fff;
}
a.card-button-calc:hover {
    text-decoration: none;
}