/* loan-calculator.css */

#custom-loan-calculator {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
}

.clc-loan-warning {
    margin: 12px 0 16px;
    padding: 10px 12px;
    border: 1px solid #f0c7c7;
    border-radius: 8px;
    background: #fff7f7;
    color: #6b1b1b;
    font-size: 13px;
    line-height: 1.45;
}

.clc-loan-warning-head {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.clc-loan-warning p {
    margin: 0;
}

.clc-loan-warning a {
    color: #8f1d1d;
    text-decoration: underline;
}

.clc-disclosure {
    margin-top: 12px;
}

.clc-example {
    margin: 0 0 10px;
    padding: 10px 12px;
    border: 1px solid #bfdcf6;
    border-radius: 8px;
    background: #f4faff;
    color: #123d5e;
    font-size: 13px;
    line-height: 1.45;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
#loan-calculator-form {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

p.error-message {
    color: red;
    display: block;
}

label {
    display: block;
    font-weight: bold;
}

input[type="range"] {
    width: 100%;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    background-color: #007bff;
    border-radius: 50%;
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 15px;
    height: 15px;
    background-color: #007bff;
    border-radius: 50%;
    cursor: pointer;
}

#loan-amount-value {
    display: inline-block;
    margin-left: 5px;
    font-weight: bold;
}

button {
    background-color: #007bff;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #0056b3;
}

.loan-amount{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.loan-amount .loan-amount-rang{
    width: 50%;
}
.loan-amount .loan-amount-select{
    width: 40%;
}
.loan-duration{
   display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.loan-duration .loan-duration-rang{
    width: 50%;
}
.loan-duration .loan-duration-select{
    width: 40%;
}
.checkbox-field {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

input[type='checkbox'] {
    width: 20px;
    height: 20px;
}

.phone-and-email-field{
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 10px;
}
.phone-and-email-field .phone-number-field{
    width: 50%;
}
.phone-and-email-field .email-address-field{
    width: 50%;
}

.second-page-row{
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 10px;
}
.second-page-row div{
    width: 50%;
}
input[type=date], input[type=email], input[type=number], input[type=password], input[type=search], input[type=tel], input[type=text], input[type=url], select, textarea{
    background: #FAFAFA;
}
#loan-calculator-form .form-group label {
    margin: 1em 0;
font-size: 14px;
    
}
.form-group.checkbox-field label {
    margin: 0 !important;
}
.form-group.checkbox-field label {
    margin: 0 !important;
}
button.next-step {
    width: 100%;
    border: 2px solid #52bc80;
    background: #52bc80;
    color: #fff;
    font-size: 1.3em;
    font-weight: 600;
    border-radius: 5px;
    padding: 0.5em 0;
    margin-top: 1em;
}
button.next-step:hover{
  background: #fff;
  color: #000;
  border: 2px solid #000 !important;
}
button.previous-step{
background-color: #ffcc00;
    color: white;
    border: none;
    width: 240px;
    height: 30px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 11px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 4px;
    line-height: 0;
}
button.previous-step:hover{
  background: #fff;
  color: #000;
  border: 2px solid #000 !important;
}

button[type=submit]{
    
    /*float: right;*/
    width: 100%;
    border: 2px solid #52bc80;
    background: #52bc80;
    color: #fff;
    font-size: 1.3em;
    font-weight: 600;
    border-radius: 5px;
    padding: 0.5em 2em;
    margin-top: 1em;
}
button[type=submit]:hover{
  background: #fff;
  color: #000;
  border: 2px solid #000 !important;
}



/* loan-calculator.css */

#custom-loan-calculator {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
}

#loan-calculator-form {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    font-weight: bold;
}

input[type="range"] {
    width: 100%;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    background-color: #007bff;
    border-radius: 50%;
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 15px;
    height: 15px;
    background-color: #007bff;
    border-radius: 50%;
    cursor: pointer;
}

#loan-amount-value {
    display: inline-block;
    margin-left: 5px;
    font-weight: bold;
}


.loan-amount{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.loan-amount .loan-amount-rang{
    width: 50%;
}
.loan-amount .loan-amount-select{
    width: 40%;
}
.loan-duration{
   display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.loan-duration .loan-duration-rang{
    width: 50%;
}
.loan-duration .loan-duration-select{
    width: 40%;
}
.checkbox-field {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

input[type='checkbox'] {
    width: 20px;
    height: 20px;
}

.phone-and-email-field{
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
}
.phone-and-email-field .phone-number-field{
    width: 50%;
}
.phone-and-email-field .email-address-field{
    width: 50%;
}

.second-page-row{
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 10px;
}
.second-page-row div{
    width: 50%;
}

#custom-loan-calculator h2{
    text-align: center;
    margin-bottom: 1em;
    text-transform: uppercase;
    color: #000;
    padding: 1em;
    font-size: 20px;
}


.second-page-row {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 10px;
}





span.error-message {
    color: red;
}





input[type=range] {
  height: 50px;
  -webkit-appearance: none;
  margin: 10px 0;
  width: 100%;
}


input[type=range]:focus {
  outline: none;
}


input[type=range]::-webkit-slider-runnable-track {
  width: 100%;
  height: 23px;
  cursor: pointer;
  border-radius: 49px;
  border: 1px solid #000000;
}


input[type=range]::-webkit-slider-thumb {
  box-shadow: 1px 1px 6px #CCCCCC;
  border: 5px solid #FFFFFF;
  height: 38px;
  width: 38px;
  border-radius: 50px;
  background: #41BB7D;
  cursor: pointer;
  -webkit-appearance: none;
  margin-top: -10.5px;
}

.loan-information-field .form-group .loan-next{
      background: #f1f1f1;
    padding: 1%;
    display: inline-block;
    border: 1px solid;
    width: 30%;
    text-align: center;
}
.loan-information-field .form-group .loan-next div{display: inline-block;}

button#update-loan-button {
	
background-color: #ffcc00;
    color: white;
    border: none;
    width: 240px;
    height: 30px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 11px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 4px;
    line-height: 0;

}

button#confirm-update-button {
    background-color: #28a745; /* Green color when not active */
    color: white;
    border: none;
    width: 86px;
    height: 30px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 11px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 4px;
    line-height: 30px; /* Centers the text vertically */
}

#confirm-update-button:hover {
    background-color: #218838; /* Slightly lighter green on hover */
}
/* Style for Ja and Nej buttons in step 1 */
.settle-button {
    background-color: grey;
    color: white;
    border: none;
    width: 80px;
    height: 30px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 11px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 4px;
    line-height: 30px; /* Centers the text vertically */
}

.settle-button.active {
    background-color: #28a745; /* Green */
}

.settle-button:hover {
    background-color: #218838; /* Slightly lighter green */
}

.settle-button.deactivated {
    background-color: grey; /* Grey */
}
@media (max-width: 400px) {
    .loan-amount, .loan-duration, .phone-and-email-field, .second-page-row {
        flex-direction: column;
        gap: 0;
    }

    .loan-amount .loan-amount-rang, .loan-amount .loan-amount-select,
    .loan-duration .loan-duration-rang, .loan-duration .loan-duration-select,
    .phone-and-email-field .phone-number-field, .phone-and-email-field .email-address-field,
    .second-page-row div {
        width: 100%;
    }

    label {
        margin-bottom: 5px;
    }

    .form-group {
        margin-bottom: 20px;
    }
}
#employer-info {
    display: none;
}

.form-group {
    margin-bottom: 15px;
}

.second-page-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.second-page-row .form-group {
    flex: 1;
}

@media (max-width: 400px) {
    .loan-amount, .loan-duration, .phone-and-email-field, .second-page-row {
        flex-direction: column;
        gap: 0;
    }

    .loan-amount .loan-amount-rang, .loan-amount .loan-amount-select,
    .loan-duration .loan-duration-rang, .loan-duration .loan-duration-select,
    .phone-and-email-field .phone-number-field, .phone-and-email-field .email-address-field,
    .second-page-row .form-group {
        width: 100%;
    }

    label {
        margin-bottom: 5px;
    }

    .form-group {
        margin-bottom: 20px;
    }
}

button.previous-step,
button[type=submit] {
    display: inline-block;
    margin: 10px 5px;
}

button.previous-step:hover,
button[type=submit]:hover {
    background: #fff;
    color: #000;
    border: 2px solid #000 !important;
}

.clc-hp {
    position: absolute !important;
    left: -9999px !important;
    opacity: 0 !important;
}

.clc-error {
    color: #b00020;
    font-size: 12px;
    min-height: 16px;
}

.clc-field-error {
    border-color: #b00020 !important;
}
