/*--------------------------------------------------------------
# Form - fields
--------------------------------------------------------------*/

.anchor {
    display: block;
    transform: translateY(-130px);
}

@media all and (max-width: 991px) {

    .anchor {
        transform: translateY(-80px);
    }

}


.form-wrap.no-form-article .form-article {
    display: none !important;
}

.form-wrap .fields,
.form-wrap .field .field-inner {
    position: relative;
}

.form-wrap .field .set {
    display: flex;
    gap: 20px;
}

/*.form-wrap .field {*/
/*    padding-top: 40px;*/
/*    width: 50%;*/
/*    display: inline-block;*/
/*}*/

/*.form-wrap .fields .field:nth-child(odd) {*/
/*    padding-right: 3rem;*/
/*}*/

/*.form-wrap .fields .field:nth-child(even) {*/
/*    padding-left: 3rem;*/
/*}*/


.form-wrap .fields .field {
    display: block;
    position: relative;
    padding-top: 40px;
    vertical-align: top;
}

.form-wrap .fields .field .filename {
    pointer-events: none;
    position: absolute;
    bottom: -1px;
    left: 0;
    z-index: 15;
    font-style: normal;
    font-weight: normal;
    font-size: 1rem;
    padding: 10px 0;
}

.form-wrap:not(.has-row) .fields:not(.has-row) .field {
    display: inline-block;
    width: 50%;
}

/*.form-wrap:not(.has-row) .fields:not(.has-row) .field:nth-child(odd) {*/
/*    padding-right: var(--form-column-padding);*/
/*}*/

.form-wrap:not(.has-row) .fields:not(.has-row) .field:nth-child(even) {
    padding-left: var(--form-column-padding);
}


.form-wrap .fields.has-row > .row {

    margin-left: calc(-1 * var(--form-column-padding));
    margin-right: calc(-1 * var(--form-column-padding));
}

.form-wrap .fields.has-row > .row > div {
    padding-left: var(--form-column-padding);
    padding-right: var(--form-column-padding);
}


.form-wrap .field input:not([type=hidden]):not([type=checkbox]):not([type=radio]),
.form-wrap .field select, .form-wrap .field textarea {
    outline: 0 !important;
    border: 0;
    width: 100%;
    padding: 10px 0;
    border-radius: 0;
    border-bottom: 1px solid var(--text-brown-dark);
    background: transparent;
}


/*new-form styling*/
.new-form .article-wrap {
    padding: 46px 10px;
    border-radius: 15px;
    background-color: var(--theme-baltic-sea);
    color: var(--white);
}

.new-form .title-card h2 {
    font-weight: 500;
    font-size: 20px;
    line-height: 117%;
    letter-spacing: 1px;
    text-align: center;
}

.new-form .title-card p {
    line-height: 130%;
    letter-spacing: 0.28px;
}

.new-form .form-wrap .field .meta.error {
    font-size: 12px;
}

.new-form .time-location.apt h2,
.new-form .time-location h2 {
    font-weight: 500;
    font-size: 15px;
    line-height: 117%;
    letter-spacing: 1px;
}

.new-form .time-location .time-space {
    margin-bottom: 58px;
}

.new-form .form-wrap {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden;
}

.new-form .form-wrap .fields {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding-top: 0;
    row-gap: 20px;
}

.new-form .form-wrap .fields .field {
    width: 100% !important;
    padding-top: 28px;
    /*position: relative;*/
    padding-left: unset !important;
}

.new-form .time-location {
    padding: 0 69px;
}

.new-form .time-location.apt button span {
    /*font-weight: 400;*/
    /*font-size: 13px;*/
    /*line-height: 100%;*/
    /*letter-spacing: 1px;*/
}

.new-form .time-location.apt .form-wrap .actions {
    margin-top: 0;
}

.new-form .time-location.apt .form-wrap .actions button {
    outline: 1px solid var(--theme-yellow-bright);
    outline-offset: 1px;
    margin: 38px 3px 18px;
}

.new-form .time-location.apt p {
    color: var(--white);
    line-height: 100%;
    letter-spacing: 0.28px;
    display: flex;
    justify-content: flex-start;
}

.new-form .article .row {
    position: relative;
    display: flex;
    row-gap: 50px;
}

.new-form .article .row::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #ffffff, rgba(255, 255, 255, 0));
    transform: translateX(-50%);
}

.new-form .time-space p {
    display: flex;
    justify-content: space-between;
    max-width: 200px;
    font-weight: 400;
    line-height: 117%;
    letter-spacing: 1px;
    margin-bottom: 7px !important;
}


.new-form .address-name p {
    text-align: left;
}

.new-form .div-svg-text {
    margin-top: 10px;
    display: flex;
    column-gap: 10px;
    row-gap: 10px;
}

.new-form .div-svg-text .svg-box {
    margin-top: 6px;
    display: flex;
    align-items: center;
    border-radius: 2px;
    width: 19px;
    height: 19px;
    background-color: var(--theme-yellow-bright);
}

.new-form .div-svg-text p {
    margin: 0px;
}

.new-form .form-wrap .field input:not([type=hidden]):not([type=checkbox]):not([type=radio]),
.new-form .form-wrap .field select,
.new-form .form-wrap .field textarea {
    border-bottom: 1px solid rgba(255, 255, 255, 0.39);
    color: var(--theme-white);
}


.new-form .field-inner {
    position: relative;
}

.new-form .field-inner:focus-within .meta.placeholder,
.new-form .field-inner input:not(:placeholder-shown) ~ .meta.placeholder,
.new-form .field-inner textarea:not(:placeholder-shown) ~ .meta.placeholder {
    /*top: 10px;*/
    /*transform: translateY(-25px);*/
    /*transition: unset;*/
    /*font-size: 12px;*/
    /*color: var(--theme-white);*/
    /*opacity: 1;*/
}

.new-form .form-wrap .field .meta.error {
    color: #550000;
}

.new-form .form-wrap .field.has-error input:not([type=hidden]):not([type=checkbox]):not([type=radio]),
.new-form .form-wrap .field.has-error select,
.new-form .form-wrap .field.has-error textarea {
    border-color: #550000;
}

.new-form .form-wrap .field .meta.error svg {
    fill: #550000;
}

/* Field - file */
.form-wrap .field.file .field-inner {
    border-bottom: 1px solid var(--text-brown-dark);
}

.form-wrap .field.file input {
    opacity: 0;
    inset: 0;
    cursor: pointer;
    line-height: 1;
}


/* Field - textarea */
.form-wrap .field.textarea:not(.has-error) {
    height: 10rem;
}

.form-wrap .field.textarea.has-error {
    height: calc(10rem - 45px);
}

.form-wrap .field.textarea .field-wrap,
.form-wrap .field.textarea .field-inner,
.form-wrap .field.textarea textarea {
    height: 100%;
}


/*--------------------------------------------------------------
# Form - field meta
--------------------------------------------------------------*/

.form-wrap .field .meta {
    position: absolute;
    left: 0;
    top: 10px;
    pointer-events: none;
    font-weight: 400;
}

.form-wrap .field .meta.filename {
    position: relative;
    top: 35px;
    font-size: var(--font-size-sm);
    color: var(--text-brown-dark);
    display: block;
}

.form-wrap .field .meta.placeholder {
    transition: 0.25s;
}

.form-wrap .field .meta.error {
    bottom: -35px;
    z-index: 15;
    opacity: 0;
    top: unset;
    color: var(--text-red-error);
    font-style: italic;
    font-weight: normal;
    font-size: var(--font-size-sm);
}

.form-wrap .field .meta.error svg {
    width: 0.95rem;
    height: 0.95rem;
    top: 3px;
    margin-right: 0.35rem;
    position: relative;
}


/* Animate the placeholder when focussing on an input */
.form-wrap .field:not(.file).filled .meta.placeholder,
.form-wrap .field:not(.file).focus .meta.placeholder {
    top: -25px;
    left: 0;
    opacity: 0;
    font-size: var(--font-size-theme);
}


/* When field has error */
.form-wrap .field.has-error {
    margin-bottom: 30px;
}

.form-wrap .field.has-error input:not([type=hidden]):not([type=checkbox]):not([type=radio]),
.form-wrap .field.has-error select, .form-wrap .field.has-error textarea {
    border-color: var(--text-red-error);
}

.form-wrap .fields .field.file.filled .meta.placeholder {
    opacity: 0;
}

.form-wrap .fields .field.file:not(.filled) .filename {
    opacity: 0;
}


/*--------------------------------------------------------------
# Form - field label
--------------------------------------------------------------*/

body.ready .form-wrap .field label.label {
    transition: 0.25s;
}

.form-wrap .field label.label {
    position: absolute;
    opacity: 0;
    left: 0;
    top: -27px;
    bottom: 33px;
    font-weight: 400;
}

.form-wrap .fields .field label.label {
    /*top: -27px;*/
}

.form-wrap .field.filled label.label,
.form-wrap .field.focus label.label,
.form-wrap .field.has-error .meta.error {
    opacity: 1;
}


.form-wrap .field.radio label.label,
.form-wrap .field.checkbox label.label {
    opacity: 1 !important;
}

.form-wrap .field.radio .meta.placeholder,
.form-wrap .field.checkbox .meta.placeholder {
    opacity: 0 !important;
}

.form-wrap .field.radio label.radio,
.form-wrap .field.checkbox label.checkbox {
    display: flex;
    align-content: center;
    padding-left: 28px;
    font-style: normal;
    font-weight: 300;
    font-size: 1rem;
}

.form-wrap .field.radio label.radio::before,
.form-wrap .field.radio label.radio::after,
.form-wrap .field.checkbox label.checkbox::before,
.form-wrap .field.checkbox label.checkbox::after {
    content: ' ';
    position: absolute;
    margin-left: -26px;
    /*top: 0;*/
    /*left: 0;*/
    width: 15px;
    height: 15px;
    z-index: 10;
    border: 1px solid var(--theme-white);
    border-radius: 4px;
}

.form-wrap .field.radio label.radio::after,
.form-wrap .field.checkbox label.checkbox::after {
    display: flex;
    z-index: 20;
    background-image: url('/images/svg/check.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px;
}

.form-wrap .field.radio .set-item:not(.active) label.radio::after,
.form-wrap .field.checkbox .set-item:not(.active) label.checkbox::after {
    opacity: 0;
}

.form-wrap .field.radio label.radio > span,
.form-wrap .field.checkbox label.checkbox > span {
    display: inline-block;
    line-height: 1.25em;
    user-select: none;
}

.form-wrap .field.radio label.radio > input,
.form-wrap .field.checkbox label.checkbox > input {
    position: absolute;
    opacity: 0;
    top: 0;
    left: 0;
    z-index: 15;
}


/*--------------------------------------------------------------
# Form - references form
--------------------------------------------------------------*/

.references-form .fields .field {
    width: 100%;
}


/*--------------------------------------------------------------
# Form - actions
--------------------------------------------------------------*/

.form-wrap .actions {
    margin-top: 60px;
}


/*--------------------------------------------------------------
# Form - utility classes
--------------------------------------------------------------*/

.form-wrap.no-error-alert .alert-danger {
    /*display: none;*/
}

.alert.spacing {
    margin: 2rem 0;
}

.form-wrap .field.full-width {
    width: 100%;
    padding-right: 0 !important;
}


/*--------------------------------------------------------------
# Form - alerts
--------------------------------------------------------------*/

.alert {
    padding: 1rem;
}

.alert p {
    margin: 0;
}

.alert.alert-success {
    /*background: var(--green);*/
    /*color: var(--text-green);*/

    background: #caf3c9;
    color: #467631;
}


/*--------------------------------------------------------------
# Form - contact form
--------------------------------------------------------------*/

.contact-form .form-wrap .fields .field:first-child,
.contact-form .form-wrap .fields .field:nth-child(2) {
    display: inline-block;
}


/*--------------------------------------------------------------
# Form - form segment
--------------------------------------------------------------*/

.form-segment {
    background: var(--grey-bg-2);
    border-radius: var(--rounded-md);
    padding: 1.75rem 3rem;
    margin-bottom: 1rem;
}

.form-segment .article-wrap {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

.form-segment h3 {
    margin-bottom: 0;
}


/*--------------------------------------------------------------
# Form segment - radio wrap
--------------------------------------------------------------*/

.form-segment .form-radio-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0;
}

.form-segment .form-radio-wrap input[type="radio"] {
    display: none;
}


/*--------------------------------------------------------------
# Form - custom range slider
--------------------------------------------------------------*/

.form-wrap .fields .slider {
    width: 100%;
}

.form-wrap .fields .slider input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 1px;
    background: var(--beige);
    outline: none;
    transition: opacity .15s ease-in-out;
}

.form-wrap .fields .slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background-color: var(--text-brown-dark);
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
    position: relative;
}

/* Slider labels */
.slider .slider-labels {
    margin: 0 -24px;
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    position: relative;
    width: calc(100% + 48px);
}

.slider .slider-labels span {
    font-size: 1.05rem;
    color: #555;
    text-align: center;
    position: relative;
    margin-top: 5px;
}

.slider .slider-labels span:before {
    content: '';
    display: block;
    height: 8px;
    width: 2px;
    background: var(--beige);
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    position: absolute;
}


/*--------------------------------------------------------------
# Form - review form
--------------------------------------------------------------*/

.form.review-form select {
    margin: 1.5rem 3rem 4rem 3rem;
}

.form.review-form .field.select {
    padding-right: 0;
    width: 75%;
}


/*--------------------------------------------------------------
# Media querys
--------------------------------------------------------------*/


@media all and (max-width: 1200px) {

    /* Form - file input */
    .form-wrap .field.file .meta.error {
        bottom: -60px;
    }

    .form-wrap .field.file .meta.placeholder {
        position: relative;
        top: 0;
    }
}

@media all and (max-width: 992px) {

    /* Form - references form */
    .references-form .row .col-lg-6:nth-child(odd) .field {
        margin-right: 0;
    }

    .references-form .row .col-lg-6:nth-child(even) .field {
        margin-left: 0;
    }

    .references-form .article-wrap.spacing-top {
        padding-top: 75px;
    }


    /* Form - meta error */
    .form-wrap .field:not(.file) .meta.error {
        position: relative;
        bottom: -15px;
    }


    /* Form - file input */
    .form-wrap .field.file .meta.error {
        bottom: -60px;
    }

    .form-wrap .field.file .meta.placeholder {
        position: relative;
        top: 0;
    }

    .new-form {
        /*display: flex;*/
        /*justify-content: center;*/
        /*align-items: center;*/
    }

    .new-form .time-location .time-space {
        margin-bottom: 25px;
    }

    .new-form .article .row {
        flex-direction: column-reverse;
    }

    .new-form .time-location,
    .new-form .address-name,
    .new-form .address-name p {
        text-align: center;
    }

    .new-form .time-space p {
        margin: auto;
    }

    .new-form .article:not(.regular) p:not(:last-of-type) {
        margin-bottom: unset;
        display: flex;
        flex-wrap: wrap;
    }

    .new-form .time-space p {
        max-width: unset;
    }

    .new-form .div-svg-text {
        justify-content: center;
    }

    .new-form .article .row::before {
        display: none;
    }

}


@media all and (max-width: 768px) {
    .time-location:last-child {
        margin-top: 38px !important;
    }
}

@media all and (max-width: 575px) {


    /* Form - contact form */
    .contact-form .field {
        width: 100%;
    }

    .contact-form .field:nth-child(2) {
        padding-left: 0;
    }

    .contact-form .field.textarea {
        position: relative;
    }

    .contact-form .field:first-child,
    .contact-form .field:nth-child(2) {
        display: block;
    }


    .form-wrap:not(.has-row) .fields:not(.has-row) .field {
        width: 100%;
        display: block;
    }

    .form-wrap:not(.has-row) .fields:not(.has-row) .field:nth-child(odd) {
        padding-right: 0;
    }

    .form-wrap:not(.has-row) .fields:not(.has-row) .field:nth-child(even) {
        padding-left: 0;
    }

    .new-form > .container {
        padding-inline: 0px;
    }

    .new-form .time-location {
        padding-inline: 25px;
    }
}


@media all and (min-width: 1200px) {
    .new-form .form-wrap {
        margin-right: -384px;
    }
}