.wpcf7-form {
    padding: 30px 0 0 0;

    --wpcf7-color-primary: #3498db;
    --wpcf7-color-active: #fff;
    --wpcf7-color-inactive: rgba(250, 250, 250, 0.12);
    --wpcf7-color-error: #dc3232;
}

.wpcf7 .form-row {
    display: flex;
    margin: 32px 0;
    padding: 0 1em;
}

.wpcf7 .input-data {
    --wpcf7-label-font-size: 16px;
    --wpcf7-label-color: var(--wpcf7-color-active);
    --wpcf7-label-translate: 0;
    --wpcf7-underline-color: var(--wpcf7-color-primary);
    --wpcf7-underline-scale: 0;

    flex: 1;
    margin: 0 20px;
    position: relative;
    min-height: 40px;
}

.wpcf7 .input-data label {
    position: absolute;
    pointer-events: none;
    bottom: 10px;
    transition: all 0.3s ease;
    font-size: var(--wpcf7-label-font-size);
    transform: translateY(var(--wpcf7-label-translate));
    color: var(--wpcf7-label-color);
}

.wpcf7 .input-data:focus-within,
.input-data.-user-interacted:not(:focus-within) {
    --wpcf7-label-translate: -20px;
    --wpcf7-label-font-size: 14px;
}

.wpcf7 .input-data:focus-within label {
    --wpcf7-label-color: #3498db;
}

.wpcf7 .input-data.-is-invalid:not(:focus-within) label {
    --wpcf7-label-color: var(--wpcf7-color-error);
}

.wpcf7 .textarea .input-data label {
    width: 100%;
    bottom: 120px;
}

.wpcf7 .form-row.submit-btn .input-data {
    height: auto;
}

.wpcf7 .textarea .input-data {
    height: 150px;
}

.wpcf7 .input-data input,
.wpcf7 .textarea textarea,
.wpcf7 .input-data select {
    display: block;
    width: 100%;
    height: 40px;
    line-height: 40px;
    border: none;
    background: none;
    font-size: 17px;
    color: #fff;
    /* Important as otherwise this will be overwriten by the default plugin style */
    border-bottom: 2px solid var(--wpcf7-color-inactive) !important;
}

.wpcf7 .input-data select {
    padding: 0;
}

.wpcf7 .textarea textarea {
    resize: none;
    padding-top: 10px;
    margin-top: 10px;
    height: 150px;
    line-height: 1.2;
}

.wpcf7 .input-data .wpcf7-form-control-wrap:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 100%;
    background: var(--wpcf7-underline-color);
    transform: scaleX(var(--wpcf7-underline-scale));
    transform-origin: center;
    transition: transform 225ms ease, background-color 225ms ease;
}

.wpcf7 .input-data:focus-within,
.input-data.-user-interacted:not(:focus-within){
    --wpcf7-underline-scale: 1;
}

.wpcf7 .input-data.-user-interacted:not(:focus-within){
    --wpcf7-underline-color: var(--wpcf7-color-active);
}

.wpcf7 .input-data.-user-interacted.-is-invalid:not(:focus-within) {
    --wpcf7-underline-color: var(--wpcf7-color-error);
}

.wpcf7 .wpcf7-not-valid-tip {
    position: absolute;
    top: 125%;
    right: 1em;
    z-index: 100;
    display: block;
    color: #fff;
    font-size: 0.6em;
    font-weight: normal;
    background: var(--wpcf7-color-error);
    padding: 6px;
    border-radius: 6px;
    pointer-events: none;
}

.wpcf7 .wpcf7-not-valid-tip:before {
    content: "";
    display: block;
    background: var(--wpcf7-color-error);
    width: 12px;
    height: 12px;
    position: absolute;
    top: -5px;
    left: 1em;
    transform: rotate(45deg);
    border-radius: 2px;
}

.wpcf7 .textarea .wpcf7-not-valid-tip {
    top: 110%;
    right: auto;
    left: 1em;
}

.wpcf7 .-is-valid .wpcf7-not-valid-tip {
    display: none;
}

.wpcf7 .input-data .wpcf7-submit {
    cursor: pointer;
    text-transform: uppercase;
    font-weight: 500;
    line-height: 3rem;
    padding: 0;
    border: none;
    height: auto;
    border-radius: 3px;
    color: #fff;
    transition: background-position 0.4s;
    background: linear-gradient(to left, #56d8e4, #9f01ea, #56d8e4, #9f01ea);
    background-size: 300%;
    background-position: 50% 0;
}

.wpcf7 .wpcf7-submit:hover {
    background-position: 0 0;
}

.wp-block-contact-form-7-contact-form-selector {
    width: 100%;
}

.fileuploader,
.fileuploader-popup {
    font-family: Inter, sans-serif;
}

.fileuploader {
    background: transparent;
    border-radius: 3px;
    margin: -32px 0 0;
    padding: 0;
}

.fileuploader-input .fileuploader-input-button,
.fileuploader-popup .fileuploader-popup-header .fileuploader-popup-button,
.fileuploader-popup .fileuploader-popup-header .fileuploader-popup-button.button-success {
    text-transform: uppercase;
    font-weight: 400;
    border-radius: 3px;
}

.fileuploader-input .fileuploader-input-caption {
    border-radius: 3px;
    font-weight: 400;
    color: #fff;
    background: none;
    font-size: 17px;
    color: #fff;
    border: none;
    border-bottom: 2px solid rgba(250, 250, 250, 0.12);
    padding: .75em;
}

.fileuploader-items .fileuploader-items-list {
    margin-left: 0;
    margin-right: 0;
}

.fileuploader-items .fileuploader-item {
    border-bottom: 2px solid rgba(250, 250, 250, 0.12);
}

.fileuploader-items .fileuploader-item .column-title {
    color: #ddd;
}

/* File uploader theme drag-drop */

.fileuploader-theme-dragdrop .fileuploader-input {
    max-width: 313px;
    margin: auto;
}

.fileuploader-theme-dragdrop .fileuploader-input .fileuploader-icon-main:before {
    /*color: #56d8e4;*/
}

@supports (background-clip: text) or (-webkit-background-clip: text) {
    .fileuploader-theme-dragdrop .fileuploader-input .fileuploader-icon-main:before {
        background-clip: text;
        -webkit-background-clip: text;
        color: transparent;
        background-image: radial-gradient(circle farthest-corner at 50% 100%, #56d8e4, #9f01ea);
    }
}

/* File uploader theme boxafter */

.fileuploader-theme-boxafter .fileuploader-input-button {
    border-radius: 14px;
    background-image: linear-gradient(to right bottom, #56d8e4, #9f01ea);
    background-position: 0 0;
}

.fileuploader-theme-boxafter .fileuploader-input-button:hover {
    background-image: linear-gradient(to right bottom, #56d8e4, #9f01ea);
    background-position: 100% 100%;
}

@supports (background-clip: text) or (-webkit-background-clip: text) {
    .fileuploader-theme-boxafter .fileuploader-input h3 a {
        background-clip: text;
        -webkit-background-clip: text;
        color: transparent;
        background-image: linear-gradient(to right, #56d8e4, #9f01ea);
    }
}

/* File uploader theme dropin */

.fileuploader-theme-dropin .fileuploader-input {
    background: #fafbfd;
    margin: 0;
    border-radius: 14px;
}

@supports (background-clip: text) or (-webkit-background-clip: text) {
    .fileuploader-theme-dropin .fileuploader-input-inner span {
        background-clip: text;
        -webkit-background-clip: text;
        color: transparent;
        background-image: linear-gradient(to right, #56d8e4, #9f01ea);
    }
    .fileuploader-theme-dropin .fileuploader-input-inner span:hover {
        color: transparent;
    }
}

/* File uploader theme thumbnails */

.fileuploader-theme-thumbnails .fileuploader-thumbnails-input-inner {
    opacity: 1;
    background-color: rgba(250, 250, 250, 0.12);
    color: rgba(250, 250, 250, 0.5);
    border-color: rgba(250, 250, 250, 0.5);
}

.fileuploader-theme-thumbnails .fileuploader-thumbnails-input-inner:hover {
    opacity: 1;
    background-color: rgba(250, 250, 250, 0.22);
}

/* File uploder theme gallery */

.fileuploader-theme-gallery .fileuploader-input,
.fileuploader-theme-gallery .fileuploader-items-list .fileuploader-item {
    width: calc(100% - 16px);
}

.fileuploader-theme-gallery .fileuploader-input-inner:hover .fileuploader-icon-main {
    margin-bottom: 8px;
}

@supports (background-clip: text) or (-webkit-background-clip: text) {
    .fileuploader-theme-gallery .fileuploader-input .fileuploader-icon-main:before {
        background-clip: text;
        -webkit-background-clip: text;
        color: transparent;
        background-image: radial-gradient(circle farthest-corner at 50% 100%, #56d8e4, #9f01ea);
    }
    .fileuploader-theme-gallery .fileuploader-input-inner span {
        background-clip: text;
        -webkit-background-clip: text;
        color: transparent;
        background-image: linear-gradient(to right, #56d8e4, #9f01ea);
    }
}

@media screen and (min-width: 400px) {
    .wpcf7 .wpcf7-submit {
        max-width: 50%;
        margin-left: auto;
        margin-right: auto;
    }

    .fileuploader-theme-gallery .fileuploader-input,
    .fileuploader-theme-gallery .fileuploader-items-list .fileuploader-item {
        width: calc(50% - 16px);
    }
}

@media screen and (min-width: 700px) {
    .fileuploader {
        margin-left: 20px;
        margin-right: 20px;
    }
}

@media screen and (min-width: 400px) {
    .wpcf7 .wpcf7-submit {
        max-width: 50%;
        margin-left: auto;
        margin-right: auto;
    }

    .fileuploader-theme-gallery .fileuploader-input,
    .fileuploader-theme-gallery .fileuploader-items-list .fileuploader-item {
        width: calc(50% - 16px);
    }
}

@media screen and (min-width: 1000px) {
    .wpcf7 .form-row {
        padding: 0;
    }

    .wpcf7 .wpcf7-submit {
        max-width: 33.33333%;
        margin-left: 66.66667%;
    }

    .fileuploader-theme-gallery .fileuploader-input,
    .fileuploader-theme-gallery .fileuploader-items-list .fileuploader-item {
        width: calc(24.5% - 16px);
    }
}

.wpcf7 .wpcf7-response-output {
    margin: 7em 0.5em 1em;
}

@media (max-width: 700px) {
    .wpcf7 .text {
        font-size: 30px;
    }

    .wpcf7 form {
        padding: 10px 0 0 0;
    }

    .wpcf7 .form-row {
        display: block;
    }

    .wpcf7 .form-row .input-data {
        margin: 35px 0;
    }
}

.wpcf7:after {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: #fff;
    opacity: 0;
    z-index: 100;
    transition: opacity 325ms;
    pointer-events: none;
}

.-is-loading .wpcf7:after {
    opacity: 0.1;
}

@supports (backdrop-filter: blur(1px)) {
    .wpcf7:after {
        background-color: rgba(255, 255, 255, 0.1);
        transition: backdrop-filter 325ms;
    }

    .-is-loading .wpcf7:after {
        opacity: 1;
        backdrop-filter: blur(1px);
    }
}

/* Prepare animation after the form was sent, height will be set via js */

.wpcf7-form {
    transition: opacity 325ms, height 325ms;
}

.wpcf7-form.-is-form-sent {
    opacity: 0;
    height: 0 !important;
}
