.tf-loader {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    position: absolute;
    top: calc(50% - 24px);
    left: calc(50% - 24px);
    animation: rotate360 1s linear infinite
}

.tf-loader::before, .tf-loader::after {
    content: "";
    box-sizing: border-box;
    position: absolute;
    inset: 0px;
    border-radius: 50%;
    border: 5px solid #000;
    animation: prixClipFix 2s linear infinite ;
}

.tf-loader::after {
    transform: rotate3d(90, 90, 0, 180deg);
    border-color: #869A82;
}

.travel-form.tf-done .tf-form-flex {
    pointer-events: none !important;
}

.travel-form .tf-loader-outer,
.tf-loader-outer {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.9);
    pointer-events: none;
    opacity: 0;
    transition: opacity .25s ease-in-out;
}

.travel-form.tf-loading .tf-loader-outer,
.tf-loader-outer.tf-loading {
    opacity: 1;
    pointer-events: all;
}

@keyframes rotate360 {
    0% {
        transform: rotate(0deg)
    }

    100% {
        transform: rotate(360deg)
    }
}

@keyframes prixClipFix {
    0% {
        clip-path: polygon(50% 50%, 0 0, 0 0, 0 0, 0 0, 0 0)
    }

    50% {
        clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 0, 100% 0, 100% 0)
    }

    75%, 100% {
        clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 100% 100%, 100% 100%)
    }
}

.travel-form {
    width: 100%;
    position: relative;
    padding-top: 16px;
}

.tf-form-flex {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
}

.tf-form-flex .tf-form-group {
    flex: 0 0 50%;
}

.tf-form-flex:not(.tf-input-group) > .tf-form-group {
    flex: 0 0 calc(50% - 16px);
}

.tf-form-group-verical > .tf-form-group {
    flex: 0 0 calc(50% - 16px);
}

.tf-form-group-verical > .tf-form-group.tf-full-col { 
    flex: 0 0 calc(100% - 16px);
}

.tf-form-flex .tf-form-group.size25 {
    flex: 0 0 25%;
}

.tf-form-group.tf-full-col,
.tf-input-group .tf-form-group.tf-full-col { 
    flex: 0 0 100% !important;
}

.tf-form-group-verical {
    flex: 0 0 50%;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 16px;
}

.tf-form-group {
    position: relative;
}

.tf-group-sibling-field {
    padding-top: 32px;
}

.tf-input {
    width: 100%;
    line-height: 1.5;
    min-height: 40px;
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
    background-color: #fff;
}

.tf-counter-input {
    display: flex;
    flex-direction: row;
}

.tf-radio-group {
    gap: 16px;
}

.tf-radio-group .tf-radio {
    flex: 1;
    padding-top: 11px;
}

.tf-radio-group .tf-radio input {
    visibility: hidden;
    opacity: 0;
    height: 41px;
    position: absolute;
}

.tf-radio-group .tf-radio label {
    font-weight: 600;
    color: #000;
    background-color: #F1F1F1;
    width: 100%;
    display: block;
    position: relative;
    height: 40px;
    border-radius: 8px;
    padding-top: 4px;
    cursor: pointer;
    border: 3px solid #F1F1F1;
    transition: color .25s ease-in-out, border-color .25s ease-in-out, background-color .25s ease-in-out;
}

.tf-radio-group .tf-radio label > span {
    display: block;
    width: calc(100% - 34px);
    text-align: center;
    margin-left: 34px;
}

.tf-radio-group .tf-radio label::before {
    display: block;
    content: '';
    position: absolute;
    top: 50%;
    left: 14px;
    width: 20px;
    height: 20px;
    border-radius: 99px;
    transform: translateY(-50%);
    background-color: #d9d9d9;
    border: 5px solid #d9d9d9;
    transition: color .25s ease-in-out, border-color .25s ease-in-out, background-color .25s ease-in-out;
}

.tf-radio-group .tf-radio input:checked + label,
.tf-radio-group .tf-radio input + label:hover {
    color: #869A82;
    border-color: #869A82;
    transition: color .25s ease-in-out, border-color .25s ease-in-out;
}

.tf-radio-group .tf-radio input:not(:checked) + label:hover {
    border-color: #cedbcb;
}

.tf-radio-group .tf-radio input:checked + label::before {
    border-color: #869A82;
    background-color: #fff;
    transition: background-color .25s ease-in-out, border-color .25s ease-in-out;
}

.tf-field-desc {
    color: #1a1a1a;
    font-size: 12px;
    padding: 0;
}

.tf-field-desc.important-red {
    color: #f00;
}

.tf-font-bold {
    font-weight: bold;
}

.tf-input-group {
    padding: 8px;
    border: 2px solid #f5f5f5;
    border-radius: 8px;
    position: relative;
    width: 100%;
    flex: 1;
}

.tf-double-field {
    display: flex;
    gap: 8px;
    width: 100%;
}

.tf-double-field div {
    flex: 0 0 50%;
}

.tf-input-group.tf-input-group-half {
    flex: 0 0 50%;
}

.tf-double-field.tf-double-phone div:first-child {
    flex: 1 1 39%;
}

.tf-double-field.tf-double-phone div:last-child {
    flex: 1 1 100%;
}

.select2-container .select2-selection--single {
    min-height: 40px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered img {
    display: none !important;
}

.select2-container--default .select2-selection--single {
    border: 2px solid #D9D9D9;
}

.select2-results__option {
    padding: 4px 0;
    font-size: 12px;
}

.select2-container {
    width: 100% !important;
}

#travel-form-main .select2-selection__placeholder {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}

#travel-form-main .select2-selection__placeholder::after {
    display: inline;
    content: ' *';
    color: #f00;
}

#select2-lead_passenger_phone_ext-container {
    font-size: 12px;
    padding-top: 4px;
}

.tf-input-group.group-disabled {
    pointer-events: none;
}

.tf-input-group .group-label {
    font-size: 16px;
    font-weight: 400;
    color: #292929;
    text-transform: uppercase;
    position: absolute;
    top: 6px;
    left: 50%;
    z-index: 5;
    transform: translate(-50%, -100%);
}

.tf-input-group .disabled-group-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
    background-color: rgba(255, 255, 255, 0.9);
    vertical-align: middle;
    text-align: center;
    color: #869A82;
    font-weight: 500;
    border-radius: 8px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease-in-out;
}

.tf-input-group .disabled-group-overlay span {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    left: 50%;
    display: block;
    text-align: center;
}

.tf-input-group.group-disabled .disabled-group-overlay {
    opacity: 1;
    pointer-events: all;
}

.tf-input-group .group-label::after {
    display: block;
    content: '';
    width: calc(100% + 16px);
    height: calc(100% + 4px);
    left: -8px;
    top: -2px;
    background: #fff;
    position: absolute;
}

.tf-input-group .group-label span {
    position: relative;
    z-index: 2;
    white-space: nowrap;
}

.tf-counter-group {
    flex: 1;
    width: 100%;
}

.tf-counter-group .tf-counter-input {
    flex: 1;
}

.tf-counter-input {
    display: flex;
    flex-direction: row;
    background-color: #F1F1F1;
    border-radius: 8px;
}

.tf-counter-input > button {
    flex: 0 0 54px;
    background-color: transparent;
    border: 0;
    outline: none;
    height: 41px;
    color: #869A82;
    cursor: pointer;
}

.tf-counter-input > .count_display {
    flex: 1;
    height: 41px;
    background-color: #fff;
    border-radius: 4px;
    border: 2px solid #d9d9d9;
    text-align: center;
    padding-top: 6px;
}

.tf-mt-4 {
    margin-top: 32px;
}

.tf-mt-2 {
    margin-top: 16px;
}

.tf-mb-4 {
    margin-bottom: 32px;
}

.tf-mb-2 {
    margin-bottom: 16px;
}

.tf-input-wrap {
    position: relative;
}

.tf-input-wrap label {
    position: absolute;
    font-size: 14px;
    font-weight: 600;
    top: 0;
    transform: translate(0, 8px) scale(1);
    left: 0;
    padding: 0 16px;
    transition: transform .25s ease-in-out;
    transform-origin: left center;
    pointer-events: none;
    transition-delay: .35s;
    white-space: nowrap;
    overflow: hidden;
    max-width: 100%;
}

.tf-input-wrap textarea + label {
    margin-top: 0;
}

.tf-form-group .tf-input {
    width: 100%;
    border: 2px solid #D9D9D9;
    border-radius: 4px;
    padding: 12px 16px 0 16px;
}

.tf-form-group select.tf-input {
    padding-left: 12px;
}

textarea.tf-input {
    resize: none;
}

.tf-form-group .tf-input:focus + label,
.tf-form-group input.tf-input.active + label,
.tf-form-group .tf-input.has-val + label{
    transform: translate(5px, 0) scale(0.8);
    transition-delay: 0;
    transition: transform .25s ease-in-out;
}

@media screen and (max-device-width: 812px) and (-webkit-min-device-pixel-ratio: 2) {
    .tf-form-group .tf-input + label{
        transform: translate(5px, 0) scale(0.8);
        transition-delay: 0;
        transition: transform .25s ease-in-out;
    }
}

.tf-input[required] + label::after {
    content: ' *';
    color: #f00;
}

.tf-negative-gap {
    margin-top: -16px;
}

.tf-dyn-desc {
    display: none;
}

.tf-dyn-desc.active {
    display: block;
}

.tf-input:disabled {
    background-color: #F1F1F1;
}

.tf-input-group .tf-form-group {
    flex: 1;
}

.tf-input-group.tf-col-2 .tf-form-group {
    flex: 0 0 calc(50% - 8px);
}

.tf-proceed-group {
    margin-top: 16px;
}

.tf-proceed-group .tf-price-box {
    flex: 1;
    text-align: right;
    opacity: 1;
    transition: opacity .25s ease-in-out;
}

.tf-proceed-group .tf-price-box.price-not-calculated {
    opacity: 0;
}

.tf-proceed-group .tf-price-box .label {
    text-transform: uppercase;
    font-weight: bold;
    margin-top: -3px;
}

.tf-proceed-group .tf-price-box .price-value {
    font-size: 32px;
    font-weight: bold;
    line-height: 32px;
    margin-top: 4px;
}

.tf-proceed-group .tf-price-box.tf-no-price-available .price-value {
    display: none;
}

.tf-proceed-group .tf-price-box .price-unavailable {
    font-size: 20px;
    font-weight: bold;
    line-height: 32px;
    margin-top: 4px;
    display: none;
}

.tf-proceed-group .tf-price-box.tf-no-price-available .price-unavailable {
    display: block;
}

.tf-proceed-group .tf-submit-button {
    flex: 0 0 260px;
    height: 60px;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    background-color: #869A82;
    border: 0;
    cursor: pointer;
    transition: background-color .25s ease-in-out;
}

.tf-proceed-group .tf-submit-button:hover {
    background-color: rgba(134, 154, 130, 0.8);
}

.tf-proceed-group .tf-submit-button:disabled {
    background-color: rgba(134, 154, 130, 0.5);
}

.tf-form-group.tf-right {
    text-align: right;
}

.tf-checkbox {
    position: relative;
    user-select: none;
}

.tf-checkbox input {
    opacity: 0;
    position: absolute;
    z-index: -10;
    left: 0;
    height: 24px;
    top: 50%;
    visibility: hidden;
}

.tf-checkbox input + label {
    position: relative;
    padding-left: 32px;
}

.tf-checkbox input + label::before,
.tf-checkbox input + label::after {
    content: '';
    display: block;
    width: 24px;
    height: 24px;
    position: absolute;
    transform: translateY(-50%);
    top: 50%;
    left: 0;
}

.tf-checkbox input + label::before {
    border: 2px solid #D9D9D9;
    background-color: #fff;
    border-radius: 4px;
    transition: border-color .25s ease-in-out, background-color .25s ease-in-out;
}

.tf-checkbox input + label::after {
    content: "\f00c";
    font-weight: 900;
    font-family: "Font Awesome 6 Free";
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    font-style: normal;
    font-variant: normal;
    line-height: 1;
    text-rendering: auto;
    text-align: center;
    line-height: 24px;
    color: #fff;
    opacity: 0;
    transition: opacity .25s ease-in-out;
}

.tf-checkbox input:checked + label::after {
    opacity: 1;
}

.tf-checkbox input + label:hover::before {
    background-color: #ededed;
}

.tf-checkbox input:checked + label::before {
    background-color: #869A82;
    border-color: #869A82;
}

.tf-checkbox input:not([disabled]) + label {
    cursor: pointer;
}

#tf_tos_check_wrap {
    text-align: right;
}

.tf-success-wrap {
    position: absolute;
    z-index: 50;
    width: 100%;
    top: 0;
    left: 0;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    background-color: #fff;
    transition: opacity .25s ease-in-out;
}

.tf-success-wrap.active {
    opacity: 1;
}

.tf-success-wrap .tf-success-inner {
    width: 100%;
    padding: 0 16px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    position: absolute;
}

.tf-green-check {
    width: 120px;
    height: 120px;
    background-color: #869A82;
    color: #fff;
    margin: 0 auto;
    border-radius: 150px;
    text-align: center;
    overflow: hidden;
}

.tf-green-check i {
    font-size: 60px;
    line-height: 120px;
}

.tf-success-wrap .tf-green-check i {
    opacity: 1;
    transition-delay: 0.6s;
    transform: translateY(100px);
    transition: transform .5s cubic-bezier(.22,2.2,.4,.45);
}

.tf-success-wrap.active .tf-green-check i {
    opacity: 1;
    transform: translateY(0);
}

@media screen and (max-width: 992px) {
    .tf-input-group .tf-form-group:not(.tf-counter-group) {
        flex: 0 0 calc(50% - 8px);
    }

    #trip_type_group {
        flex: 0 0 calc(40% - 16px);
    }
}

@media screen and (max-width: 780px) {
    #trip_type_group {
        flex: 1 1 100%;
        margin-bottom: 16px;
    }

    #tf_lead_passenger_group .tf-form-group {
        flex: 1 1 100%;
    }

    #tf_arrival_flight_group .tf-form-group,
    #tf_return_flight_group .tf-form-group {
        flex: 1 1 100%;
    }
}

@media screen and (max-width: 460px) {
    .tf-input-group.tf-input-group-half {
        flex: 1 1 100%;
    }

    .tf-group-sibling-field {
        padding-top: 16px;
    }

    .tf-form-flex:not(.tf-input-group) > .tf-form-group {
        flex: 1 1 100%;
    }
    
    #tf_arrival_flight_group,
    #tf_return_flight_group {
        flex: 1 1 100%;
    }

    .tf-counter-group .tf-counter-input {
        flex: 1 1 100%;
    }

    .tf-proceed-group .tf-price-box {
        flex: 1 1 100%;
        text-align: center;
    }
    
    .tf-proceed-group {
        margin-top: 16px;
        justify-content: center;
    }

    #tf_tos_check_wrap {
        text-align: center;
    }
}

@media screen and (max-width: 400px) {
    .tf-input-group .tf-form-group:not(.tf-counter-group) {
        flex: 0 0 100%;
    }
} 