.tlf-form{
    --light-accent: #DEFDEF;
    --light-grey: #d4d4d4;
    --next-button: #0e161f;
    --main-color: green;
    font-family: Arial, Helvetica, sans-serif;
    width:465px;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04), 
              0 4px 20px rgba(0, 0, 0, 0.08);
    margin:50px auto;
    scroll-margin-top: 100px;
}
.tlf-form--spanish {
    --light-accent: #fff8da;
    --main-color: #e0ac01;
}
.tlf-form *{
    box-sizing: border-box;
}
.tlf-step__label{
    background-color: var(--light-accent);
    color: var(--main-color);
    font-size: 13px;
    -webkit-text-stroke-width: 0.2px;
    padding:8px 12px;
    border-radius: 20px;
    width: fit-content;
}
.tlf-choice{
    cursor: pointer;
    border: 1px solid var(--light-grey);
    border-radius: 10px;
    padding: 9px 14px;
    transition: all 0.3s;
    white-space: nowrap;
    box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.027),
    0 20px 25px -5px rgba(0, 0, 0, 0.021);
}
.tlf-form input[type="radio"], .tlf-options input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
}
.tlf-options{
    display: flex;
    flex-direction: row;
    gap: 10px;
    flex-wrap: wrap;
}
.tlf-field-group__label{
    margin-bottom:3px;
    -webkit-text-stroke-width: 0.3px;
    font-size: 16px;
    margin-top:0px;
}
.tlf-choice:has(input:checked){
    border-color:var(--main-color);
    background-color: var(--light-accent);
}
.tlf-button__wrapper{
    margin-top: auto;
    padding-top:20px;
}
.tlf-next-button{
    background-color: var(--next-button);
    border:none;
    color:white;
    font-size: 16px;
    padding: 16px;
    border-radius: 10px;
    width:100%;
    cursor:pointer;
}
.tlf-back-button{
    width: fit-content;
    background-color: white;
    border: 1px solid rgb(150, 150, 150);
    color: rgb(150, 150, 150);
    font-size: 15px;
    padding:8px 30px;
    font-weight: 500;
    cursor:pointer;
    border-radius: 10px;
    transition: .3s;
}
.tlf-step{
    display: none;
    min-height:510px;
}
.tlf-step.is-active{
    display: flex;
    flex-direction: column;
}
#additional-comment{
    width: 100%;
    border-radius: 15px;
    border: 1px solid var(--light-grey);
    height: 140px;
    padding: 15px;
}
.tlf-step__title{
    margin: 10px 0px 0px 0px;
    font-size:27px
}
.tlf-step__title::after {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    background: rgb(233, 233, 233);
    margin-top: 10px;
}
input.tlf-single-text__field, select#tlf-source__select{
    padding:10px 20px 10px 44px;
    width:100%;
    border: 1px solid var(--light-grey);
    border-radius: 12px;
    font-size: 16px;
    color:rgb(77, 81, 87);
    height:auto;
}
.tlf-field__group{
    padding-top: 10px;
}
.tlf-input__wrap{
    position:relative;
}
.tlf-input__wrap img{
    position: absolute;
    top:50%;
    transform: translateY(-50%);
    left:14px;
}
.tlf-single-text__field.correct{
    border-color: var(--main-color);
    background-color: var(--light-accent);
}
.tlf-text__fields{
    display: flex;
    flex-direction: column;
    gap:12px;
    padding-top:15px;
}
.cf-turnstile {
    padding-top:10px;
}
select#tlf-source__select {
    color:#969696;
}
.tlf-input__wrap select{
    appearance: none;
    -webkit-appearance: none;
    cursor:pointer;
    padding-right: 50px;
}
#tlf-checkbox__agreement{
    line-height: 16px;
    font-size: 15px;
}
.tlf-wrapper__agreement{
    display: flex;
    align-items: center;
    gap:5px;
}
#tlf-button__final{
    background-color: var(--main-color);
    border:none;
    color:white;
    font-size: 16px;
    padding: 16px;
    border-radius: 10px;
    width:100%;
    cursor:pointer;
}
#agreement__pointer{
    cursor:pointer;
}
.star__required{
    color: red;
}
.top-wrapper{
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.tlf-extra-field{
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.tlf-form input:focus-visible,
.tlf-form select:focus-visible,
.tlf-form textarea:focus-visible,
.tlf-form button:focus-visible,
.tlf-form radio:focus-visible{
    outline: 2px solid #000;
    outline-offset: 2px;
}
.tlf-choice input[type="radio"]:focus-visible + .tlf-choice__content {
    outline: 2px solid #000;
    outline-offset: 2px;
}
.tlf-choice input[type="checkbox"]:focus-visible + .tlf-choice__content {
    outline: 2px solid black;
    outline-offset: 2px;
}
.tlf-choice {
    -webkit-tap-highlight-color: transparent;
}
.tlf-success {
    display: none;

    min-height: 450px;
    padding: 25px;

    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
    border-radius: 24px;
}

.tlf-success.is-active {
    display: flex;
}

.tlf-success__check {
    width: 100px;
    height: 100px;
}

.tlf-success__check svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.tlf-success__circle {
    fill: rgba(32, 168, 58, 0.1);
    stroke: #20a83a;
    stroke-width: 2;

    transform-origin: center;

    animation: success-circle-pop 0.55s ease-out both;
}

.tlf-success__tick {
    fill: none;
    stroke: #20a83a;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;

    stroke-dasharray: 40;
    stroke-dashoffset: 40;

    animation: success-tick-draw 0.45s 0.3s ease-out forwards;
}

h2.tlf-success__title {
    margin: 15px 0 10px;
    font-size: 27px;
}

.tlf-success__text {
    margin: 0;
    font-size: 18px;
}

.tlf-success__subtext {
    margin: 0 0 20px;
    font-size: 16px;
    color: #6b7280;
}

.tlf-success__button {
    padding: 16px 28px;

    border-radius: 14px;

    background: #142231;
    color: white;

    text-decoration: none;
    font-weight: 600;
    font-size: 15px;

    transition: transform 0.2s ease, opacity 0.2s ease;
}

#tlf-back-to-form-btn{
    border-radius: 10px;
}

@keyframes success-circle-pop {
    0% {
        opacity: 0;
        transform: scale(0.7);
    }

    70% {
        opacity: 1;
        transform: scale(1.06);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes success-tick-draw {
    to {
        stroke-dashoffset: 0;
    }
}

.tlf-single-text__field.incorrect{
    border-color: red !important;
    -webkit-box-shadow: 0 0 0px 1000px #fae1e1 inset !important;
    box-shadow: 0 0 0px 1000px #fae1e1 inset !important;
}

input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0px 1000px #ffffff inset !important;
  box-shadow: 0 0 0px 1000px #ffffff inset !important;
}

#goal-select.english {
    border-radius: 10px;
}

.tlf-conditional-options {
    display: none;
}

.tlf-conditional-options.is-active {
    display: flex;
}

.tlf-conditional-group {
    display: none;
}

.tlf-conditional-group.is-active {
    display: block;
}
.tlf-conditional-choice-goal {
    display:none;
}
.tlf-conditional-choice-goal.is-active {
    display: flex;
}

.tlf-other-goal {
    display: none;
}

.tlf-other-goal.is-active {
    display: block;
}

.tlf-other-goal {
    padding-top:10px;
}
/* -- responsywność -- */

@media (max-width: 700px) {
    .tlf-form {
        width: 100%;
        margin:0;
        padding:25px;
    }
    .tlf-options {
        gap: 7px;
    }
    .tlf-step__title {
        font-size: 23px;
    }
    #additional-comment {
        height: 100px;
    }
    input.tlf-single-text__field, select#tlf-source__select {
        font-size: 15px;
    }
    .tlf-success__text {
        font-size: 16px;
    }
    .tlf-success__subtext {
        font-size: 15px;
    }
}

@media (min-width: 701px) {
    .tlf-back-button:hover {
        background-color: #969696;
        border-color: transparent;
    }
}