/* fields START */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px white inset;
}

input[type='text'],
input[type='email'],
input[type='tel'],
input[type='number'],
input[type='password'],
input[type='search'],
textarea,
select,
.select2 .select2-selection {
    box-sizing: border-box;
    width: 100%;
    height: 5.3rem;
    padding: 1.6rem 2.8rem;
    font-family: inherit;
    font-weight: 400;
    font-size: 1.6rem;
    border-bottom: 0.1rem solid rgba(0, 0, 0, 0.7);
    color: var(--color-dark);
    text-overflow: ellipsis;
    overflow: hidden;
    transition: color 0.3s;
}

textarea {
    --height: 10rem;

    display: block;
    height: var(--height);
    min-height: var(--height);
    max-height: calc(var(--height) * 2.5);
    resize: vertical;
    overflow: auto;
}

input::placeholder,
textarea::placeholder {
    opacity: 1;
    color: var(--color-gray-l);
}

input,
textarea {
   -webkit-appearance: none;
   -moz-appearance:    none;
   appearance:         none;
   border-radius: 0;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

select {
    -moz-appearance: none;
    -webkit-appearance: none;
    -ms-appearance: none;
    appearance: none;
    background: url('../images/icons/select-arrow.svg') no-repeat;
    background-position: right 3rem center;
}

select::-ms-expand,
select::-webkit-select {
    display: none;
}
/* fields END */



/* checkox, redio START */
input[type="checkbox"],
input[type="radio"] {
    --input-color: var(--color-dark);

    flex: 0 0 auto;
    display: inline-block;
    vertical-align: middle;
    aspect-ratio: 1;
    width: 1.6rem;
    border: 0.2rem solid var(--input-color);
    border-radius: 0.4rem;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 1;
}

input[type="checkbox"]:has( + span),
input[type="radio"]:has( + span) {
    translate: 0 -0.2rem;
}

input[type="radio"] {
    border-radius: 100%;
}

input[type="checkbox"]::before,
input[type="radio"]::before {
    content: "";
    width: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    opacity: 0;
    translate: -50% -50%;
    rotate: -45deg;
}

input[type="checkbox"]:checked::before,
input[type="radio"]:checked::before {
    opacity: 1;
}

input[type="checkbox"]::before {
    aspect-ratio: 2/1;
    border: 0.2rem solid var(--input-color);
    border-top-color: transparent;
    border-right-color: transparent;
    margin-top: -0.2rem;
}

input[type="radio"]::before {
    aspect-ratio: 1;
    border-radius: 100%;
    background: var(--input-color);
}

input[type="checkbox"] + span,
input[type="radio"] + span {
    margin-left: 0.5rem;
}

@media screen and (max-width: 575.9px) {
    input[type='text'],
    input[type='email'],
    input[type='tel'],
    input[type='number'],
    input[type='password'],
    input[type='search'],
    textarea,
    select {
        padding-inline: 1rem;
        font-size: 1.4rem;
    }
}
/* checkox, redio END */



/* form START */
form {
    --gutter: 1rem;

    display: flex;
    flex-direction: column;
    gap: var(--gutter);
}

.form__row {
    display: flex;
    gap: var(--gutter);
}

.form__col {
    flex: 1;
    width: 100%;
    flex-grow: 1;
    position: relative;
}

.form__col_2 {
    flex-grow: 2;
}

.form__row.grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
}

.form__row.grid .form__col {
    grid-column: span 4;
}

.form__row.grid .form__col_2 {
    grid-column: span 8;
}



.form__field {    
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.form__label sup {
    vertical-align: unset;
    font-size: 100%;
    color: var(--color-primary-700);
}

.form__agree {
    padding-top: 3rem;
    font-size: 1.4rem;
}

.form__agree a {
    position: relative;
}

.form__agree a::after {
    content: '';
    display: block;
    width: 100%;
    height: 0.1rem;
    background: currentColor;
    position: absolute;
    bottom: 0;
    left: 0;
    transition: 0.3s;
}

.form__agree a:hover::after {
    width: 0;
}

.form__btns {
    padding-top: 3rem;
}

div:has( > .form__submit) {
    display: flex;
}

@media screen and (max-width: 767.9px) {
    form {
        width: 100%;
    }

    .form__row,
    .form__row.grid {
        display: flex;
        flex-direction: column;
    }
}
/* form END */



/* CF7 START */
.wpcf7-form-control-wrap {
    width: 100%;
}

.wpcf7-list-item {
    margin: 0;
}

.wpcf7-not-valid-tip {
    padding-top: 0.5rem;
    font-size: 1.2rem;
    color: #FF4500;
}

.wpcf7 form .wpcf7-response-output {
    padding: 0;
    border: 0;
    color: #FF4500;    
    margin: 0;
}

.wpcf7 form.sent .wpcf7-response-output {
    color: #46b450;
}

.wpcf7-spinner {
    position: absolute;
    top: 50%;
    right: 0;
    translate: 0 -50%;
    z-index: 1;
}
/* CF7 END */



/* choices.js START */
.choices {
    min-width: 25rem;
    max-width: 100%;
    text-align: left;
    vertical-align: unset;
    position: relative;
}

.choices__inner {
    display: flex;
    align-items: center;
    padding: 0 !important;
    border-radius: 1rem !important;
    font-weight: 600;
    font-size: 1.4rem;
    color: var(--color-black);
    background: rgba(0, 0, 0, 0.1);
    border: 0.1rem solid rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    overflow: hidden;
    position: relative;
}

.choices__placeholder {
    opacity: 1;
    color: var(--color-black);
}

.choices[data-type*='select-one']::after {
    --position: 3rem;

    content: "";
    width: 0.6rem;
    height: 0.6rem;
    aspect-ratio: 1;
    border: 0.1rem solid var(--color-black) !important;
    border-bottom-color: transparent !important;
    border-left-color: transparent !important;
    position: absolute;
    right: var(--position);
    top: 50%;
    translate: 0 -75%;
    transform: rotate(135deg);
    pointer-events: none;
    margin: 0 !important;
}

.choices[data-type*='select-one'].is-open::after {
    height: 0.6rem;
    translate: 0 0;
    transform: rotate(-45deg);
}

.choices__list--dropdown,
.choices__list[aria-expanded] {
    border: none;
    border-radius: 1rem;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(2rem);
    padding: 0.5rem 0;
    margin-top: 0.2rem;
    overflow: hidden;
    z-index: 100;
}

.choices__list {
    padding: 0;
}

.choices__list--dropdown, 
.choices__list[aria-expanded] {
    width: auto;
    overflow-x: auto;
    right: 0;
    left: auto;
}

.choices__list--dropdown {
    padding-top: 0.5rem;
}

.choices__item {
    display: flex;
    align-items: center;
    min-height: 5rem;
    padding-inline: 2.8rem !important;
    padding-right: 5rem !important;
    min-width: 23rem;
    font-weight: 500;
    font-size: 1.4rem;
    white-space: nowrap;
}

.choices__item--selectable.is-highlighted,
.choices__item--selectable.is-selected {
    background: rgba(255, 255, 255, 0.6);
    color: var(--color-black);
}

.choices__item--selectable.is-selected {
    font-weight: 700;
}

[dir="rtl"] .choices[data-type*='select-one']::after {
    right: auto;
    left: var(--position);
}

@media screen and (max-width: 575.9px) {
    .choices {
        width: 100%;
    }
}
/* choices.js END */
