.bato-contactform {
    text-align: left;
    padding-bottom: 60px;
}

.bato-contactform__inner {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
}

.bato-contactform__content {
    grid-column: 5 / span 8;
    padding: 90px 105px;
    background: var(--color-gray-light);
}

.bato-contactform__hero {
    margin-bottom: 15px;
}

.bato-contactform__pretitle {
    text-transform: uppercase;
}

.bato-contactform__note {
    color: var(--color-gray-middle);
    margin-left: auto;
}

/* form START */
.bato-contactform input:not([type=checkbox]):not([type=ratio]),
.bato-contactform textarea,
.bato-contactform select {
     --fs: 16px;
    --ls-mult: 0.02;

    width: 100%;
    height: 50px;
    padding-inline: 15px;
    background: #fff;
    border: 1px solid var(--color-gray-middle);
    font-family: inherit;
    font-weight: 300;
    font-size: var(--fs);
    letter-spacing: calc(var(--fs) * var(--ls-mult));
    line-height: 1.625;
}

.bcf {
    position: relative;
}

.bcf__message {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-gray-light);
    text-align: center;
    position: absolute;
    inset: 0;
    z-index: 2;
    transition: 0.3s;
}

.bcf__message:not(.active) {
    opacity: 0;
    pointer-events: none;
}

.bcf__fields {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bcf__group {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.bcf_label {
    font-size: 12px;
    line-height: 2;
    position: absolute;
    left: 15px;
    top: 0;
    pointer-events: none;
}

.bcf__group select {
    background: url(../img/select-arrow.svg) center right 10px no-repeat;
    background-color: #fff;
}

.bcf__group:has(.bcf_label) select {
    padding-top: 20px;
}

select.bcf__prefixes {
    flex: 0 0 auto;
    width: 200px;
    font-weight: 600;
}

.bcf__textarea {
    padding-block: 13px;
    height: 185px;
    min-height: 185px;
    resize: vertical;
}

.bcf__divider {
    height: 10px;
}

.bcf__consent {
    padding-block: 10px;
}

.bcf__footer {
    padding-top: 30px;
}

.bcf__submit {
    min-width: 218px;
    position: relative;
    transition: background-color 0.3s, color 0.3s;
}

.bcf__submit.loading {
    color: transparent;
    pointer-events: none;
    opacity: 0.7;
}

.bcf__submit.loading::after {
    content: '';
    aspect-ratio: 1;
    width: 24px;
    border: 3px solid transparent;
    border-top: 3px solid #fff;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* form END */



/* file upload START */
.bcf-file-upload {
    width: 100%;
    position: relative;
}

.bcf-file-upload__drop-area {
     --fs: 16px;
    --ls-mult: 0.02;
    --height: 50px;

    width: 100%;
    height: var(--height);
    padding-inline: 15px;
    background: #fff;
    border: 1px solid var(--color-gray-middle);
    font-family: inherit;
    font-weight: 500;
    font-size: var(--fs);
    letter-spacing: calc(var(--fs) * var(--ls-mult));
    line-height: var(--height);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.bcf-file-upload__drop-area.dragover {
    background: #e0f8f8;
}

.bcf-file-upload__drop-area span {
    font-size: 14px;
    color: var(--color-gray-middle);
}

.bcf-file-upload__input {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.bcf-file-upload__files {
    display: flex;
    flex-direction: column;
    padding: 20px;
    padding-top: 5px;
}

.bcf-file-upload__files:empty {
    padding: 0;
}

.bcf-file-upload__file {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 5px;
    font-size: 12px;
    opacity: 0.5;
}

.bcf-file-upload__remove {
    padding: 10px;
    margin: -10px;
    font-size: 14px;
    color: var(--color-red);
    cursor: pointer;
}

.bcf-file-upload__remove:hover {
    color: black;
}
/* file upload END */

@media screen and (max-width: 1024.9px) {
    .bato-contactform {
        background: var(--color-gray-light);
        padding: 0;
    }

    .bato-contactform__inner {
        display: block;
    }

    .bato-contactform__content {
        padding-inline: 20px;
        max-width: 600px;
        background: unset;
        margin-inline: auto;
    }
}

@media screen and (max-width: 575.9px) {
    .bcf__group {
        flex-direction: column;
    }

    select.bcf__prefixes {
        width: 100%;
    }
}