HEX
Server: nginx/1.18.0
System: Linux test-ipsremont 5.4.0-214-generic #234-Ubuntu SMP Fri Mar 14 23:50:27 UTC 2025 x86_64
User: ips (1000)
PHP: 8.0.30
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/quadcode-jobs/resources/sass/base/_forms.scss
// Form

:root {
    --input-border-radius: 30px;
}

@import "~intl-tel-input/build/css/intlTelInput.css";

.iti__flag {background-image: url("/images/vendor/intl-tel-input/build/flags_sprite.png");}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .iti__flag {
        background-image: url("/images/vendor/intl-tel-input/build/flags_sprite.png");
    }
}
.iti__flag-box {
    margin-left: 6px;
    > .iti__flag {
        margin-left: 0 !important;
    }
}

.iti__flag {
    border-radius: 100%;
    margin-left: 8px;
}

.modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background-color: rgba(0,0,0,0.5);
    transform: scale(1.2);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s cubic-bezier(0.55, 0, 0.1, 1),
    transform 0.6s cubic-bezier(0.55, 0, 0.1, 1),
    visibility 0.6s cubic-bezier(0.55, 0, 0.1, 1);
    -ms-overflow-style: none;
    scrollbar-width: none;

    &::-webkit-scrollbar {
        display: none;
    }

    &--form {
        .form {
            .custom-input {

                input {
                    height: 60px;
                    padding-top: 0;
                    padding-bottom: 0;
                }

                .form-placeholder {
                    top: 50%;
                    transform: translateY(-50%);
                }
            }

            .custom-textarea {

                textarea {
                    height: 315px;
                }
            }

            .custom-upload__label, .custom-button {
                height: 60px;
                padding-top: 0;
                padding-bottom: 0;
            }

            .custom-checkbox {

                &__label {
                    font-size: 12px;

                    a {
                        color: #25A6D2;
                    }

                    &-box {
                        margin-right: 6px;
                        width: 16px;
                        height: 16px;

                        &:before {
                            width: 10px;
                            height: 10px;
                        }
                    }
                }
            }

            .iti__selected-dial-code {
                font-size: 18px;
                margin-left: 11px;
            }
        }

        @include breakpoint-down('sm') {
            .modal {

                &__inner {
                    padding: 17px;
                    margin: 10px;
                }

                &__close {
                    svg {
                        width: 12px;
                        height: 12px;
                        display: flex;
                        top: 17px;
                        right: 19px;
                    }
                }
            }

            .form {
                gap: 6px;

                &__title {
                    font-size: 24px;
                    text-align: left;
                    margin-left: 15px;
                }

                .custom-input {
                    width: 100%;
                    margin-bottom: 6px;

                    input {
                        padding: 1rem 1.5rem !important;
                        height: 50px;
                    }

                    .form-placeholder {
                        top: 50%;
                        transform: translateY(-50%);
                        left: 19px;

                        span {
                            opacity: 0;
                        }
                    }

                    .iti__flag-container {
                        opacity: 0;
                        pointer-events: none;
                    }

                    &:last-of-type {
                        margin-bottom: 6px;
                    }
                }

                .custom-textarea {
                    width: 100%;

                    textarea {
                        min-height: 100px;
                        height: 100px;
                        padding: 1rem 1.5rem;
                    }
                }

                .custom-upload__label {
                    padding: 14px;
                    height: 50px;
                }

                .custom-checkbox {
                    order: 1;
                    align-items: center;
                    margin-top: 4px;

                    &__label {
                        font-size: 10px;
                    }
                }

                .custom-button {
                    height: 50px;
                    padding: 14px;
                }
            }
        }
    }

    &--gallery {
        .action-marker {
            position: absolute;
            right: calc(((100vw - var(--container-max-width)) / 2) + var(--container-padding));
            top: 0;
        }
        .modal__inner {
            width: 100%;
            padding: 0 106px;
            border-radius: 0;
            background-color: transparent;

            @include breakpoint-down('lg') {
                padding: var(--container-padding);
            }

            .slider-arrow {
                &.as-next-btn {
                    right: var(--container-padding);
                }

                &.as-prev-btn {
                    left: var(--container-padding);
                }

                @include breakpoint-down('lg') {
                    display: none !important;
                }
            }
        }

        .action-marker {
            transition: filter 0.3s ease;

            @include breakpoint-up('lg') {
                &:hover {
                    filter: contrast(1.51);

                    svg {
                        margin-bottom: 0;
                    }

                    &::before {
                        height: auto;
                        transform: none;
                    }
                }
            }
        }
    }


    &__wrapper {
        position: relative;
        display: flex;
        flex-shrink: 0;
        justify-content: center;
        align-items: center;
        width: 100%;
        min-height: 100%;
    }

    &__overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        cursor: pointer;
    }

    &__inner {
        position: relative;
        width: 400px;
        padding: 5rem 3rem 4rem 4rem;
        background-color: var(--color-app-background);
        border-radius: 2rem;
        margin: 120px 0;

        @include breakpoint-down('sm') {
            width: 100%;
            margin: 70px 0;
        }
    }

    // Close modal icon
    &__close {
        position: absolute;
        top: 2rem;
        right: 1.5rem;

        &:hover {
            color: var(--color-highlight);
            cursor: pointer;
        }
    }

    &__content {
        @include styled-scrollbar();
    }

    // Current active modal
    &.is-active {
        transform: scale(1);
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
    }
}

.form-message {
    display: none;
}

.form {
    display: grid;
    grid-template-columns: 100%;
    gap: 20px;
    width: 100%;

    &__items {
        display: flex;
        justify-content: space-between;

        @include breakpoint-down('sm') {
            display: block;
        }
    }

    &__item {
        width: calc((100% - 30px) / 2);

        @include breakpoint-down('sm') {
            width: 100%;
        }

        .custom-input {
            margin-bottom: 25px;

            @include breakpoint-down('sm') {
                margin-bottom: 20px;
            }

            &:last-of-type {
                margin-bottom: 0;

                @include breakpoint-down('sm') {
                    margin-bottom: 20px;
                }
            }
        }

        .custom-textarea {

            textarea {
                height: 371px;
            }
        }
    }

    @include breakpoint-up('lg') {
        // width: max(30rem, 40rem);
        width: 100%;
    }

    .has-error {
        --input-border-color: var(--color-highlight);
    }

    &__title {
        margin-bottom: 1.5rem;
        font-size: var(--typo-headline3);
        font-weight: 600;
        text-align: center;
    }

    .form-label {
        grid-area: label;
        font-size: var(--typo-caption);

        .is-required & {
            &:after {
                content: '*';
                color: var(--color-highlight);
                line-height: 1;
            }
        }
    }

    .is-required  .form-label {
        &:after {
            content: '*';
            position: absolute;
            color: var(--color-highlight);
            font-size: 2rem;
            line-height: 1;
        }
    }

    .iti,
    .custom-input input {
        grid-area: input;
    }

    .form-error {
        display: none;
        position: absolute;
        top: 0;
        right: 4.5rem;
        background: linear-gradient(var(--color-app-background), var(--color-app-background) 50%, var(--input-background, #F8FAFB) 50.01%);
        padding: 0 1.5rem;
        color: var(--color-highlight);
        font-size: var(--typo-caption);
        transform: translateY(-50%);
    }
}

// Result of form submit
.form-message {
    flex-flow: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 15px 0;
    text-align: center;

    &__icon {
        display: flex;
        justify-content: center;
        margin-bottom: 4rem;
    }

    &__title {
        margin-bottom: 1.5rem;
        font-size: var(--typo-headline3);
    }

    &__text {
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 3.5rem;
        color: var(--color-text-secondary);
    }

    &__actions {
        display: flex;
        justify-content: center;
    }

    .link {
        margin-top: 1rem;
        font-weight: 600;
        color: var(--color-link);

        &:hover {
            text-decoration: underline;
        }
    }

    &--contact-us {
        padding: 15px 0;

        .form-message {

            &__text {
                max-width: 624px;
            }
        }

        .custom-button {
            background: #82A5C3;
            box-shadow: none;
        }
    }
}

.custom-input {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas: 'label message''input input';
    position: relative;



    input {
        width: 100%;
        padding: 2rem 2.5rem;
        border: 1px solid var(--input-border-color, transparent);
        border-radius: var(--input-border-radius);
        background: var(--input-background, #F8FAFB);
        color: var(--input-text-color, var(--color-text-primary));
        font-size: var(--typo-base);
        font-family: "Proxima Nova", sans-serif;
        box-shadow: none;
        -webkit-appearance: none;
        -moz-appearance: none;

        &::placeholder {
            color: var(--input-text-color, var(--color-text-primary));
            opacity: .9;
        }


    }



    &.is-required {
        // &:after {
        //     // content: '*';
        //     position: absolute;
        //     top: -1rem;
        //     right: -0.75rem;
        //     color: var(--color-highlight);
        //     font-size: 2rem;
        //     font-weight: 600;
        //     line-height: 1;
        // }

       input {
        &::placeholder {
            color: var(--input-text-color, var(--color-text-primary));
            opacity: 0;
        }
       }

        .form-placeholder {
            pointer-events: none;
            position: absolute;
            top: 2rem;
            left: 2.5rem;
            color: var(--input-text-color, var(--color-text-primary));
            opacity: .9;

            span {
                color: var(--color-highlight);
            }
        }

    }

    &.not-empty {
        .form-placeholder {
            opacity: 0;
        }
    }



    &:focus-within {
        --input-border-color: #768490;

        .form-placeholder {
            opacity: 0;
        }
    }
}

.custom-phone.is-required {
    .form-placeholder {
        left: 8.5rem;
    }


}

.custom-button {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 6rem;
    padding: 2rem 4rem;
    background: var(--button-bg, var(--color-highlight));
    border: 1px solid var(--button-border-color, transparent);
    border-radius: 30px;
    color: var(--button-text-color, var(--color-text-light));
    font-size: var(--typo-subtitle2);
    font-weight: 600;
    font-family: "Proxima Nova", sans-serif;
    filter: none;
    transition: filter .2s;
    box-shadow: 0px 1rem 1.5rem rgba(241,22,47,0.18);
    width: 315px;
    margin: 0 auto;

    @include breakpoint-down('sm') {
        width: 100%;
    }

    &.is-full-width {
        width: 100%;
    }

    &.is-secondary {
        --button-background: #BCC6CF;
        --button-border-color: #BCC6CF;
    }

    &:hover {
        filter: contrast(1.51);
        cursor: pointer;
    }
}

.custom-textarea {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas: 'label message''input input';
    position: relative;

    textarea {
        grid-area: input;
        width: 100%;
        min-height: 14rem;
        padding: 2rem;
        border: 1px solid var(--input-border-color, transparent);
        border-radius: var(--input-border-radius);
        background: var(--input-background, #F8FAFB);
        font-family: "Proxima Nova", sans-serif;
        resize: vertical;
        color: var(--input-text-color, var(--color-text-primary));
        font-size: var(--typo-base);
        box-shadow: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        //border-radius: 30px;

        &::placeholder {
            color: var(--input-text-color, var(--color-text-primary));
            opacity: .9;
        }

        &:focus {
            --input-border-color: #768490;


        }
    }
}

.custom-checkbox {
    display: flex;
    align-items: flex-start;
    //padding: 2rem;
    position: relative;
    margin: 0 auto;

    input {
        visibility: hidden;
        height: 0;
        width: 0;
        margin: 0;
        padding: 0;
    }

    &__label-box {
        position: relative;
        flex-shrink: 0;
        width: 1.6rem;
        height: 1.6rem;
        margin-right: 1.5rem;
        border: 1px solid var(--color-text-secondary);
        border-radius: .3rem;
        &::before {
            content: "";
            position: absolute;
            width: calc(100% - 4px);
            height: calc(100% - 4px);
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: var(--color-highlight);
            border-radius: 1px;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        input:checked + & {
            //box-shadow: inset 0 0 0 2px var(--color-app-background);
            &::before {
                opacity: 1;
            }
        }
    }

    &__label {
        font-size: var(--typo-caption);
    }

    &__label-box,
    &__label {
        &:hover {
            cursor: pointer;
        }
    }


}

.form {
    .form-error {
        &.checkbox-error {
            position: relative;
            top: 0;
            right: 0;
            text-align: center;
        }
    }
}

// Custom file upload
.custom-upload {
    position: relative;

    &__input {
        display: none;
    }

    &__inner {
        width: 315px;
        height: 100%;
        margin: 0 auto;

        @include breakpoint-down('sm') {
            width: 100%;
        }
    }

    &__label {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        padding: 2rem;
        border-radius: 30px;
        background-color: #82A5C3;
        font-size: var(--typo-subtitle2);
        font-weight: 600;
        font-family: "Proxima Nova", sans-serif;
        color: var(--color-text-light, #fff);

        svg {
            margin-right: 8px;
            display: flex;
        }

        &:hover {
            filter: brightness(.95);
            cursor: pointer;
        }
    }

    &__file {
        display: none;
        align-items: center;
        justify-content: center;
        border-radius: 3rem;
        padding: 2rem;
        background-color: transparent;
        border: 1px solid transparent;

        .file-name {
            display: flex;
            align-items: center;
            width: 100%;

            span {
                max-width: 87%;
                white-space: nowrap;
                text-overflow: ellipsis;
                overflow: hidden;
            }

            &:before {
                content: '';
                width: 14px;
                height: 12px;
                margin-right: 1rem;
                background-image: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3Csvg width='16px' height='14px' viewbox='0 0 16 14' version='1.1' xmlns:xlink='http://www.w3.org/1999/xlink' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 6.61214L5.1522 12L14 0' transform='translate(1 1)' id='Stroke-1' fill='none' fill-rule='evenodd' stroke='%2374D572' stroke-width='2' /%3E%3C/svg%3E");
                background-size: contain;
                background-repeat: no-repeat;
            }
        }
    }

    &__remove {
        position: absolute;
        right: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 3rem;
        height: 3rem;
        background: var(--color-line);
        border-radius: 50%;
        color: var(--color-text-secondary);

        &:hover {
            filter: brightness(.95);
            cursor: pointer;
        }
    }

    .is-not-empty {
        display: flex;

        & ~ * {
        display: none;
        }
    }
}

.js-file-block {
 .form-error {
     position: static;
     margin: 0 auto;
     width: max-content;
     background: transparent;
 }
}

// Custom phone (override plugin styles)
.custom-phone {
    z-index: 6;

    .iti__country-list {
        z-index: 0;
        border: none;
        transform: translateY(-30px);
        transition: .4s ease;
        padding-top: 40px;
    }

    .iti__hide {
        display: block;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-50px);
        transition: .4s ease;
    }
}
.custom-input {
    .iti {
        position: relative;
        display: grid;
        grid-template-columns: auto 1fr;

        &__flag-container {
            position: static;
            grid-row: 1/-1;
            grid-column: 1/2;
        }

        &__selected-flag {
            background: transparent;
            border-radius: var(--input-border-radius) 0 0 var(--input-border-radius);
        }

        &__country-list {
            width: calc(100% - 4px);
            left: 2px;

            @include styled-scrollbar();
        }

        &__country {
            display: flex;
            align-items: center;
            white-space: initial;
            padding-left: 10px;

            & > * {
                flex-shrink: 0;
            }
        }

        &__country-name {
            order: 3;
            flex: 1;
        }

        &__dial-code {
            width: 5ch;
            padding-left: 9px;
        }

        input {
            grid-row: 1/-1;
            grid-column: 1/-1;
            padding-left: 6rem;
            border-radius: 30px;
        }
    }
}