body.popup-open {
    height: 100%;
}

/* popup Form */
.popup {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    padding: 40px 16px;
    z-index: 1000;
    overflow-y: auto;
}

.popup-content {
    background-color: white;
    color: var(--clr-primary);
    padding: 40px 50px;
    border-radius: 25px;
    width: 545px;
    box-shadow: 0 15px 40px rgba(42, 51, 83, .13);
    min-height: 500px;
    margin-inline: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}

.close-btn {
    height: 35px;
    width: 35px;
    border-radius: 50%;
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
    background-color: var(--clr-primary);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.close-btn:hover {
    background-color: var(--clr-secondary);
}

.close-btn img {
    width: 17px;
    height: 17px;
}

.close-btn:hover {
    color: #000;
}

#popup_form {
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#step-1 {
    text-align: left;
}

.form-step {
    width: 100%;
    text-align: center;
    display: none;
    text-align: center;
    opacity: 0;
}

.form-step.active {
    display: block;
    opacity: 1;
    animation-name: fadeInUp;
    animation-duration: 1.5s;
    animation-fill-mode: forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.form-step .row {
    padding: 10px 0;
}

#popup_form .title {
    text-align: left;
}

.title h3 {
    font-weight: 900;
    font-size: 24px;
    line-height: 1.2;
    color: var(--clr-secondary);
    margin: 0;
}

.mascot img {
    height: 140px;
}

.form-step hr {
    height: 2px;
    width: 100%;
    border-radius: 10px;
    opacity: 1;
    background: var(--clr-secondary);
    border: none;
    margin: 10px auto 10px auto;
}

/* sliders */
.form-slider {
    display: flex;
    justify-content: center;
    align-items: center;
}

.big-form-slider {
    flex-direction: column;
}

.slider {
    width: 100% !important;
    margin: 10px 0 !important;
    height: auto !important;
    padding-left: 15px;
}

input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    margin: 10px 0;
    height: 10px;
    border-radius: 12px;
    background: linear-gradient(to right, var(--clr-secondary) 0%, var(--clr-secondary) var(--slider-value, 0%), rgba(224, 224, 224, 0.80) var(--slider-value, 0%), rgba(224, 224, 224, 0.80) 100%);
}

input[type=range]::-webkit-slider-runnable-track {
    height: 12px;
    border-radius: 12px;
    background: linear-gradient(to right, var(--clr-secondary) 0%, var(--clr-secondary) var(--slider-value, 0%), rgba(224, 224, 224, 0.80) var(--slider-value, 0%), rgba(224, 224, 224, 0.80) 100%);
}

input[type=range]::-moz-range-track {
    height: 12px;
    border-radius: 12px;
    background: linear-gradient(to right, var(--clr-secondary) 0%, var(--clr-secondary) var(--slider-value, 0%), rgba(224, 224, 224, 0.80) var(--slider-value, 0%), rgba(224, 224, 224, 0.80) 100%);
}

input[type=range]::-ms-track {
    height: 12px;
    border-radius: 12px;
    background: transparent;
    border: none;
    color: transparent;
}

input[type="range"] {
    -webkit-appearance: none;
    background: transparent;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    background-image: url('/bichoForm_assets/img/thumb.svg');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    border: none;
    cursor: pointer;
    margin-top: -6px;
}

input[type="range"]::-moz-range-thumb {
    width: 25px;
    height: 25px;
    background-image: url('/bichoForm_assets/img/thumb.svg');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    border: none;
    cursor: pointer;
    margin-top: -6px;
}

input[type="range"]::-ms-thumb {
    width: 25px;
    height: 25px;
    background-image: url('/bichoForm_assets/img/thumb.svg');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    border: none;
    cursor: pointer;
    margin-top: -6px;
}

.question-title h6 {
    font-size: 12px;
    color: var(--clr-primary);
    font-weight: 400;
}

.question-title h5 {
    font-size: 18px;
    margin: 0 auto 20px auto;
    color: var(--clr-primary);
    font-weight: 700;
}

#small-txt {
    font-size: 12px;
    color: var(--clr-primary);
    line-height: 1;
    margin: -15px auto 20px auto;
}

.value-display {
    width: 100%;
    height: 45px;
    border-radius: 15px;
    border: 1px solid var(--clr-secondary);
    background: var(--white);
    color: var(--clr-secondary);
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0 20px;
}

.value-display span {
    line-height: 1;
    margin-top: 5px;
}

.value-display span:focus-visible {
    outline: none !important;
}

.big-form-slider .value-display {
    width: 70%;
    text-align: center;
    justify-content: center;
    margin-bottom: 20px;
}

.dinheiro_extra_slider {
    margin: 20px auto 5px auto;
}

/* radio */
.radio-opt {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
}

.radio-buton {
    width: 45%;
}

.radio-opt-normal {
    margin-bottom: 30px;
    justify-content: space-between;
}

.radio-opt-normal .radio-buton {
    width: 48%;
}

.radio-buton:last-of-type {
    margin-left: 15px;
}

.radio-buton input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-buton label {
    background: var(--white);
    border: 1px solid var(--clr-secondary);
    border-radius: 15px;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
    width: 100%;
    height: 45px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0 0 0 20px;
    color: var(--clr-secondary);
    font-size: 15px;
    font-weight: 500;
}

.radio-opt-normal .radio-buton label {
    width: 100%;
    margin: 0 auto;
    padding: 0 0 0 10px;
}

.radio-opt-normal .radio-buton:first-of-type {
    margin-right: 5px;
}

.radio-opt-normal .radio-buton:last-of-type {
    margin-left: 5px;
}

.radio-buton label img {
    height: 15px;
    margin: -1px 8px 0 0;
}

.radio-opt-normal .radio-buton label img {
    height: 20px;
}

.radio-buton label:hover,
.radio-buton input[type="radio"]:checked+label {
    background: var(--clr-secondary);
    color: var(--white);
}

.radio-buton label:hover img,
.radio-buton input[type="radio"]:checked+label img {
    filter: brightness(0) invert(1);
}

.radio-opt-grid {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px 0;
}

.radio-opt-grid .radio-buton {
    width: 48%;
}

.radio-opt-grid .radio-buton:first-of-type,
.radio-opt-grid .radio-buton:last-of-type {
    margin: 0;
}

.disc {
    text-align: left;
    font-size: 9px;
    line-height: 1.1;
    color: var(--clr-primary);
    margin: 10px 0 0 0;
}

#saida {
    text-align: center;
}

.dinheiro_extra_slider,
#saida,
.titular1,
.titular2,
.mensalidade_valor,
.contrato_tipo,
.contrato_anos,
.contrato_tipo2,
.contrato_anos2,
#success-message {
    display: none;
}

.results {
    margin: 20px auto !important;
}

.results p {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    font-size: 12px;
}

.results p span {
    font-size: 18px;
    font-weight: 700;
}

.results p span img {
    height: 30px;
    margin-top: -2px;
}

.results p:first-of-type {
    background: var(--clr-secondary);
    border-radius: 10px 10px 0 0;
    color: var(--white);
}

.results p:last-of-type {
    background: var(--clr-primary);
    border-radius: 0 0 10px 10px;
    color: var(--white);
}

.results p:last-of-type span {
    color: var(--lightgreen);
}

/* input */
.form-input input {
    width: 100%;
    height: 45px;
    border-radius: 15px;
    border: 1px solid var(--clr-secondary);
    font-size: 16px;
    color: var(--clr-primary) !important;
    font-weight: 400 !important;
    padding-left: 50px;
    background-size: 20px !important;
    background-position: 10px 11px !important;
    background-repeat: no-repeat !important;
    -webkit-appearance: none;
    text-align: left !important;
    margin: 0 auto;
    line-height: 1;
}

.form-input input:focus-visible {
    outline: none !important;
}

::-webkit-input-placeholder {
    color: rgba(0, 0, 0, 0.3);
}

:-moz-placeholder {
    color: rgba(0, 0, 0, 0.3);
    opacity: 1;
}

::-moz-placeholder {
    color: rgba(0, 0, 0, 0.3);
    opacity: 1;
}

:-ms-input-placeholder {
    color: rgba(0, 0, 0, 0.3);
}

::-ms-input-placeholder {
    color: rgba(0, 0, 0, 0.3);
}

::placeholder {
    color: rgba(0, 0, 0, 0.3);
}

#SimuladorModal .titular2 {
    margin: 30px auto 20px auto;
}

#nascimento1,
#nascimento2,
#qnt_tempo {
    background: url('/bichoForm_assets/img/icons/date.svg'), var(--white);
    background-position: 15px 10px !important;
}

#mensalidade {
    background: url('/bichoForm_assets/img/icons/euro.svg'), var(--white);
    background-position: 15px 10px !important;
}

#nome {
    background: url('/bichoForm_assets/img/icons/user.svg'), var(--white);
    background-position: 15px 10px !important;
}

#email_popup {
    background: url('/bichoForm_assets/img/icons/email.svg'), var(--white);
    background-position: 15px 10px !important;
}

#telefone {
    background: url('/bichoForm_assets/img/icons/call.svg'), var(--white);
    background-position: 15px 10px !important;
}

#nif {
    background: url('/bichoForm_assets/img/icons/id.svg'), var(--white);
    background-position: 15px 10px !important;
}

input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px white inset !important;
    box-shadow: 0 0 0 1000px white inset !important;
    -webkit-text-fill-color: #000 !important;
    padding-left: 20px !important;
}

label.error {
    display: none;
}

.input-groups input {
    margin-top: 20px;
}

.input-groups input:first-of-type {
    margin-top: 0px;
}

#popup_form .form-check {
    margin-top: 20px;
    text-align: center;
    padding: 0;
}

#popup_form .form-check label {
    margin: 0;
    position: relative;
    padding-left: 18px;
    cursor: pointer;
    line-height: 1;
    color: var(--black);
    font-size: 11px;
    font-weight: 200;
}

#popup_form .form-check input[type=checkbox] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

#popup_form .checkmark {
    position: absolute;
    top: -2px;
    left: 0;
    height: 12px;
    width: 12px;
    background-color: transparent;
    border: 1px solid var(--clr-secondary);
    border-radius: 2px;
    padding-right: 5px;
    color: var(--clr-secondary);
}

#popup_form .form-check input[type=checkbox]:checked+.checkmark::after {
    content: "\2713";
    display: block;
    text-align: center;
    line-height: 12px;
    margin-left: 0.5px;
    margin-top: 0.5px;
    font-size: 14px;
}

#popup_form #politica-link {
    color: var(--black);
    text-decoration: none;
}

#popup_form #politica-link:hover {
    color: var(--clr-secondary);
    text-decoration: underline;
}

#popup_form label.error,
#popup_form #termos-error {
    color: red;
    font-size: 11px;
    width: 100%;
    font-weight: 400;
    text-align: center;
    margin-top: 5px;
}

#popup_form #termos-error {
    padding: 0;
}

.form-button {
    width: 280px;
    height: 55px;
    background: var(--clr-secondary);
    font-weight: 700;
    color: var(--white);
    font-size: 20px;
    border: none;
    border-radius: 20px;
    line-height: 1;
    margin: 10px auto 0 auto;
    transition: all 0.6s ease;
}

.form-button:hover {
    background: var(--clr-primary);
}

.final-step {
    text-wrap: balance;
}

.final-step img {
    height: 200px;
    margin-bottom: 20px;
}

.final-step h3 {
    font-size: 30px;
    font-weight: 700;
    color: var(--clr-secondary);
    line-height: 1.1;
}

.final-step p {
    line-height: 1.1;
    font-size: 18px;
    color: var(--clr-primary);
    margin-top: 20px;
}

@media (max-width: 768px) {
    .radio-opt {
        justify-content: space-between;
    }
    .radio-buton label {
        height: 50px;
        text-align: start;
        line-height: 1.2;
    }
}

@media (max-width: 480px) {
    .popup-content {
        padding: 15px 25px;
        max-width: 95%;
    }

    .close-btn {
        height: 28px;
        width: 28px;
    }

    .close-btn img {
        width: 12px;
        height: 12px;
    }

    .title h3 {
        font-size: 20px;
    }

    .mascot img {
        height: 105px;
    }

    .value-display {
        padding: 0 12px;
        width: 80%;
        font-size: 15px;
    }

    .radio-buton label,
    .value-display {
        height: 40px;
    }

    .dinheiro_extra_slider {
        margin: 13px auto 0px auto;
    }

    .value-display span {
        margin-top: 0;
    }

    .disc {
        text-align: left;
        font-size: 8px;
        margin: 0;
    }

    .results {
        margin: 10px auto !important;
    }

    .results p {
        padding: 5px 15px;
        font-size: 11px;
    }

    .results p span img {
        height: 22px;
    }

    .form-button {
        width: 100%;
        height: 50px;
    }

    .form-step hr {
        margin-block: 5px;
    }
    
        .radio-opt-normal .radio-buton {
        width: 100%;
    }
    .radio-buton {
        width: 100%;
    }
    
    .radio-opt-normal .radio-buton:last-of-type {
        margin-left: 0;
    }
    .radio-buton:last-of-type {
        margin-left: 0;
    }
    
    .radio-opt {
        justify-content: space-between;
        flex-direction: column;
        gap: 15px;
    }
    
    .form-button {
        font-size: 18px;
    }
    
}
