.simulator-container {
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.input-field, .select-field {
    margin-bottom: 15px;
    border-radius: 5px;
    font-size: 0.9em;
}

/* Add red asterisk for required fields */
.simulator-inputs label.required::after,
.bloc-informations label.required::after {
    content: " *";
    color: red;
    font-weight: bold;
    font-size: 1.2em;
}

.slider {
    width: 100%;
    margin-bottom: 10px;
    background: #f0e6dd;
    border-radius: 5px;
    -webkit-appearance: none;
    height: 10px;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    background-color: #d4c5a6;
    border: 2px solid #8c7a58;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

#interest_rate_value, #insurance_rate_value {
    font-size: 1em;
    margin-bottom: 15px;
    display: block;
}

.calculate-button {
    background-color: #da6934;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 0 auto;
    display: block;
}

.calculate-button:hover {
    background-color: #c1552b;
}

.update-button {
    background-color: #da6934;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 10px auto;
    display: block;
    width: 100%;
    font-size: 1.1em;
}

.update-button:hover {
    background-color: #c1552b;
}

.simulator-output {
    background-color: #f0e6dd;
    padding: 20px;
    border-radius: 0px 10px 10px 0px;
    box-shadow: inset 0px 0px 10px rgba(0, 0, 0, 0.05);
}

.simulator-output h4 {
    font-weight: normal;
    margin: 10px 0 5px;
}

.output-value {
    font-weight: normal;
    margin-bottom: 10px;
}

.output-details {
    font-weight: normal;
    margin-bottom: 10px;
    font-size: 0.9em;
    line-height: 1.4;
    margin-left: 15px;
}

.output-separator {
    height: 2px;
    background-color: white;
    margin: 10px 0;
    width: 50%;
}

#financing_status {
    margin-top: 20px;
    font-weight: bold;
    text-align: center;
}

.g-recaptcha {
    display: block;
    margin: 20px auto;
    padding: 20px 0;
}

.card {
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.card-header {
    background-color: #da6934;
    color: white;
    padding: 10px;
    border-radius: 5px 5px 0 0;
}

.card-body {
    background-color: #fff8f0;
    padding: 15px;
    border-radius: 0 0 5px 5px;
    font-size: 0.9em;
    line-height: 1.6;
}

@media (min-width: 992px) {
    .col-lg-5, .col-lg-7 {
        padding: 1vw;
    }
}

@media (max-width: 992px) {
    .col-lg-5, .col-lg-7 {
        padding: 4vw;
        border-radius: 10px!important;
    }
}

.form-control {
    border-radius: 0px;
    font-size: 0.9em;
}

/* Remove red and green border colors */
.input-field:focus, .select-field:focus {
    outline: none;
    border-color: inherit;
}

/* Added styles to hide the user information header and fields after calculation */
.bloc-informations.hidden {
    display: none !important;
}

/* Added padding and margin adjustments for better visual alignment */
.simulator-inputs label {
    margin-bottom: 5px;
}

.simulator-inputs input, .simulator-inputs select {
    margin-bottom: 20px;
}

/* Styling for the RGPD checkbox */
.checkbox-wrapper-46 {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.checkbox-wrapper-46 input[type="checkbox"] {
    display: none;
    visibility: hidden;
}

.checkbox-wrapper-46 .cbx {
    margin: auto;
    -webkit-user-select: none;
    user-select: none;
    cursor: pointer;
}

.checkbox-wrapper-46 .cbx span {
    display: inline-block;
    vertical-align: middle;
    transform: translate3d(0, 0, 0);
}

.checkbox-wrapper-46 .cbx span:first-child {
    position: absolute!important;
    margin-top: 6px!important;
    width: 18px;
    height: 18px;
    border-radius: 3px;
    transform: scale(1);
    vertical-align: middle;
    border: 1px solid #9098A9;
    transition: all 0.2s ease;
}

.checkbox-wrapper-46 .cbx span:first-child svg {
    position: absolute;
    top: 3px;
    left: 2px;
    fill: none;
    stroke: #FFFFFF;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 16px;
    stroke-dashoffset: 16px;
    transition: all 0.3s ease;
    transition-delay: 0.1s;
    transform: translate3d(0, 0, 0);
}

.checkbox-wrapper-46 .cbx span:first-child:before {
    content: "";
    width: 100%;
    height: 100%;
    background: #506EEC;
    display: block;
    transform: scale(0);
    opacity: 1;
    border-radius: 50%;
}

.checkbox-wrapper-46 .cbx span:last-child {
    padding-left: 35px!important;
    font-size: 11px!important;
}

.checkbox-wrapper-46 .inp-cbx:checked + .cbx span:first-child {
    background: #506EEC;
    border-color: #506EEC;
    animation: wave-46 0.4s ease;
}

.checkbox-wrapper-46 .inp-cbx:checked + .cbx span:first-child svg {
    stroke-dashoffset: 0;
}

.checkbox-wrapper-46 .inp-cbx:checked + .cbx span:first-child:before {
    transform: scale(3.5);
    opacity: 0;
    transition: all 0.6s ease;
}

@keyframes wave-46 {
    50% {
        transform: scale(0.9);
    }
}

/* Tooltip styling */
.tooltip {
    position: relative;
}

.tooltip__item {
    display: none;
    position: absolute;
    background: white;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    width: max-content;
    max-width: 90vw;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 5px;
}

.tooltip__item table {
    width: 100%;
    table-layout: fixed;
}

.tooltip__item table td,
.tooltip__item table th {
    padding: 8px;
    word-break: break-word;
}

@media screen and (min-width: 769px) {
    .tooltip__item {
        max-width: 850px;
    }
}

label[for="interest_rate"],
label[for="insurance_rate"] {
    position: relative;
    display: inline-block;
}

label[for="interest_rate"]:hover + input + output + .tooltip__item,
label[for="insurance_rate"]:hover + input + output + .tooltip__item {
    display: block;
}

/* Ajustements pour le tableau dans le tooltip */
.tooltip__item .google-sheet-table {
    margin-top: 0;
    font-size: 0.9em;
}

/* "Le saviez-vous" box styling */
.did-you-know-box {
    background-color: #ffffff;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-top: 20px;
}

.did-you-know-box h3 {
    color: #da6934;
}

.did-you-know-box table {
    width: 100%;
    margin-top: 15px;
}

table th, table td {
    text-align: center;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

/* Styling for rent summary */
#rent_message {
    font-size: 1em!important;
    line-height: 1.4;
}

/* Style for invalid input fields */
/* Remove default invalid input styles */
input:invalid {
    border-color: inherit;
    box-shadow: none;
}

/* Remove default valid input styles */
input:valid {
    border-color: inherit;
    box-shadow: none;
}

input {
    border-bottom: 1px solid #ced4da!important;
}

/* Hide number input spinners */
input[type="number"] {
    -webkit-appearance: none;
    -moz-appearance: textfield;
    appearance: textfield;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/** CSS pour le tableau dynamique des taux d'intérêts **/

.google-sheet-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-family: Arial, sans-serif;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.google-sheet-table th, .google-sheet-table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: center;
}

.google-sheet-table th {
    background-color: #da6934;
    color: white;
    font-weight: bold;
}

.google-sheet-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.google-sheet-table tr:hover {
    background-color: #f1f1f1;
}

.rates-row {
    margin: 20px 0;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

.rates-row .col-md-4 {
    position: relative;
    margin-bottom: 10px;
}

.rates-row .tooltip__item {
    display: block;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.rates-row label:hover + input + .tooltip__item,
.rates-row label:hover + select + .tooltip__item {
    opacity: 1;
    visibility: visible;
}

.rates-row input[readonly] {
    background-color: #fff;
    cursor: default;
    text-align: center;
    font-weight: bold;
    color: #da6934;
}

.rates-row select {
    text-align: center;
    font-weight: bold;
    color: #da6934;
}

.rates-row label {
    text-align: center;
    width: 100%;
    margin-bottom: 8px;
}

@media screen and (max-width: 768px) {
    .tooltip__item {
        width: 90vw !important;
        max-width: 90vw;
        left: 50%;
        transform: translateX(-50%);
    }

    .tooltip__item table {
        width: 100%;
        font-size: 14px;
    }

    .tooltip__item table td,
    .tooltip__item table th {
        padding: 8px 4px;
        word-break: break-word;
    }

    .rates-row .tooltip__item {
        width: 125%;
    }
}

#loan_duration {
    text-align: center;
}

input[name="loan_duration"] {
    text-align: center;
}