/* The Modal for contactform */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 600; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background: #ffffff;
}

/* Modal Content/Box */
.modal-content {
    background-color: #ffffff;
    margin: 0 auto; /* 15% from the top and centered */
    padding: 116px 20px 20px;
    border-radius: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

/* The Close Button */
.close {
    color: #aaa;
    float: right;
    font-size: 42px;
    font-weight: bold;
    text-align: right;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Main form wrapper */
.fs-form-wrap {
    position: relative;
    width: 100%;
    max-width: 1024px;
    height: 100%;
    margin: 0 auto;
    color: #fff;
    display: flex;
    align-items: center;
}

/*.overview .fs-form-wrap {
    height: auto;
}*/

/* Title */
.fs-title {
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
    padding: 40px;
    width: 100%;
}

.fs-title h1 {
    margin: 0;
}

/* Form */
.fs-form {
    position: relative;
    text-align: left;
    font-size: 2.5em;
}

.no-js .fs-form {
    padding: 0 0 6em 0;
}

/* Views (fullscreen and overview)*/
.fs-form-full {
    margin-top: -250px;
    width: 70%;
}

.fs-form-full,
.fs-message-error {
    max-width: 960px;
}

.fs-form-overview {
    padding: 2.5em 5% 6em;
    width: 100%;
    height: 100%;
    background: #ffffff;
    color: #3b3f45;
    font-size: 1.2em;
}

.fs-form-overview .fs-fields::before {
    display: block;
    margin-bottom: 2.5em;
    color: #69928d;
    content: 'Ihre Nachricht an uns';
    font-size: 1.85em;
}

/* Switch view animation (we hide the current view, switch the view class and show it again) */
.fs-form.fs-show {
    -webkit-animation: animFadeIn 0.5s;
    animation: animFadeIn 0.5s;
}

@-webkit-keyframes animFadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes animFadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.fs-form.fs-show .fs-fields {
    -webkit-animation: animMove 0.5s;
    animation: animMove 0.5s;
}

@-webkit-keyframes animMove {
    from {
        top: 100px;
    }
}

@keyframes animMove {
    from {
        top: 100px;
    }
}

/* we need to use top here because otherwise all our fixed elements will become absolute */

/* Visibility control of elements */
.fs-form-full .fs-fields > li,
.fs-nav-dots,
.fs-progress,
.fs-numbers,
button.fs-continue,
.fs-message-error,
.fs-message-final {
    visibility: hidden;
}

.no-js .fs-form-full .fs-fields > li {
    visibility: visible;
}

.js .fs-form-full .fs-fields > li:nth-child(3),
.js .fs-form-full .fs-fields > li:nth-child(5) {
    margin-top: -1.5em;
}

.fs-show {
    visibility: visible !important;
}

/* Some general styles */
.fs-form-wrap button {
    border: none;
    background: none;
}

.fs-form-wrap button[disabled] {
    opacity: 0.3;
    pointer-events: none;
}

.fs-form-wrap input:focus,
.fs-form-wrap button:focus {
    outline: none;
}

/* Hide the submit button */
.fs-form .fs-submit {
    display: none;
}

/* Fields */
.fs-fields {
    position: relative;
    margin: 0 auto;
    padding: 0;
    top: 0;
    list-style: none;
}

.fs-form-overview ol {
    max-width: 100%;
}

.fs-fields > li {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 0;
    border: none;
}

.fs-fields > li:hover {
    z-index: 999;
}

.js .fs-form-full .fs-fields > li {
    position: absolute;
    width: 100%;
}

.fs-form-overview .fs-fields > li,
.no-js .fs-form .fs-fields > li {
    margin: 1em 0 2em;
    padding: 0 0 2em 0;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

/* Labels & info */
.fs-fields > li label {
    position: relative;
}

.fs-fields > li label.fs-field-label {
    color: #c28466;
    display: inline-block;
    padding: 0 5px 1em 0;
    font-weight: 400;
    pointer-events: none;
    font-size: 30px;
}

.fs-form-full .fs-fields > li label[data-info]::after {
    position: relative;
    display: inline-block;
    margin-left: 10px;
    width: 24px;
    height: 24px;
    border: 2px solid rgba(0, 0, 0, 0.4);
    color: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    content: 'i';
    vertical-align: top;
    text-align: center;
    font-weight: 700;
    font-style: italic;
    font-size: 14px;
    line-height: 20px;
    cursor: pointer;
    pointer-events: auto;
}

.fs-form-full .fs-fields > li label[data-info]::before {
    position: absolute;
    bottom: 100%;
    left: 0;
    padding: 0 0 10px;
    min-width: 200px;
    content: attr(data-info);
    font-size: 0.4em;
    color: #6a7b7e;
    opacity: 0;
    -webkit-transition: opacity 0.3s, -webkit-transform 0.3s;
    transition: opacity 0.3s, transform 0.3s;
    -webkit-transform: translate3d(0, -5px, 0);
    transform: translate3d(0, -5px, 0);
    pointer-events: none;
}

.fs-form-full .fs-fields > li label[data-info]:hover::before {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

.fs-form-full .fs-fields > li label:hover ~ .fs-info,
.fs-form-full .fs-fields > li .fs-info:hover {
    opacity: 1;
    -webkit-transform: translateY(0);
    transform: translateY(0);
    pointer-events: auto;
}

/* Inputs */
.fs-fields input {
    display: block;
    margin: 0;
    padding: 0 0 0.15em;
    width: 100%;
    border: none;
    border-bottom: 2px solid rgba(0, 0, 0, 0.2);
    background-color: transparent;
    color: rgba(0, 0, 0, 0.5);
    text-overflow: ellipsis;
    border-radius: 0;
}

.fs-fields input:invalid {
    box-shadow: none; /* removes red shadow in FF*/
}

.fs-form-overview .fs-fields input {
    border-bottom-color: transparent;
    color: rgba(0, 0, 0, 0.5);
}

/*
.fs-fields input:focus {
    background-color: #3b3f45; !* Fixes chrome bug with placeholder *!
}

.fs-form-overview .fs-fields input:focus {
    background-color: #c28466; !* Fixes chrome bug with placeholder *!
}
*/

.fs-form-overview .fs-fields input {
    font-size: 1.2em;
}

.fs-fields .fs-radio-custom input[type="radio"] {
    position: absolute;
    display: block;
    margin: 30px auto 20px;
    margin: 0 auto 20px;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.fs-fields > li .fs-radio-custom span {
    float: left;
    position: relative;
    margin-right: 3%;
    padding: 10px;
    max-width: 200px;
    width: 30%;
    text-align: center;
}

.fs-fields > li .fs-radio-custom span label {
    color: rgba(0, 0, 0, 0.4);
    -webkit-transition: color 0.3s;
    transition: color 0.3s;
    font-size: 0.5em;
}

.fs-form-overview .fs-fields > li .fs-radio-custom span label {
    font-size: 1em;
}

.fs-fields > li .fs-radio-custom label {
    padding-top: 10%;
}

.fs-fields .fs-radio-custom label.radio-date svg,
.fs-fields .fs-radio-custom label.radio-recipe svg,
.fs-fields .fs-radio-custom label.radio-other svg {
    display: block;
    background: #69928d;
    width: 150px;
    height: 150px;
    max-width: 25vw;
    max-height: 25vw;
    margin: 0 auto;
    margin-bottom: 1em;
    padding: 1em;
    border-radius: 50%;
    fill: #ffffff;
}

.fs-fields .fs-radio-custom input[type="radio"]:checked + label {
    color: #c28466;
}

.fs-fields .fs-radio-custom input[type="radio"]:checked + label svg {
    background: #c28466;
}

.fs-fields .fs-radio-custom input[type="radio"]:hover + label svg {
    opacity: 0.8;
}

.fs-fields textarea {
    padding: 0.25em;
    width: 100%;
    height: 200px;
    border: none;
    background-color: #f1f1f1;
    color: rgba(0, 0, 0, 0.5);
    font-size: 0.5em;
    resize: none;
}

.fs-fields input[type="checkbox"] {
    width: auto;
}

.data-privacy-hint {
    font-size: 18px;
    margin-left: 20px;
    margin-top: -10px;
    color: #636363;
}

.fs-form-overview .fs-fields textarea {
    height: 100px;
    color: rgba(0, 0, 0, 0.5);
}

.fs-fields textarea:focus {
    outline: none;
}

.fs-form-overview .fs-fields textarea {
    padding: 0 0.5em;
    border-color: transparent;
}

.fs-form-overview .fs-fields textarea {
    font-size: 1.2em
}

.fs-form div.cs-select.cs-skin-boxes {
    display: block;
}

.fs-form-overview .cs-skin-boxes > span {
    border-radius: 5px;
    width: 90px;
    height: 70px;
    font-size: 0.8em;
}

.fs-form-overview .cs-skin-boxes > span::before {
    padding-top: 50px;
    box-shadow: 0 20px 0 #292c30, inset 0 -5px #292c30;
}

.fs-fields input.fs-mark {
    padding-left: 1em;
    background-image: url(../img/dollar.svg);
    background-position: 0% 0.15em;
    background-size: auto 75%;
    background-repeat: no-repeat;
}

.fs-fields input.fs-mark[required] {
    background-image: url(../img/dollar.svg), url(../img/abacusstar.svg);
    background-position: 0% 0.15em, top right;
    background-size: auto 75%, 18px;
    background-repeat: no-repeat;
}

/* placeholder */
.fs-fields input::-webkit-input-placeholder,
.fs-fields textarea::-webkit-input-placeholder {
    color: rgba(0, 0, 0, 0.1);
}

.fs-fields input:-moz-placeholder,
.fs-fields textarea:-moz-placeholder {
    color: rgba(0, 0, 0, 0.1);
}

.fs-fields input::-moz-placeholder,
.fs-fields textarea::-moz-placeholder {
    color: rgba(0, 0, 0, 0.1);
}

.fs-fields input:-ms-input-placeholder,
.fs-fields textarea:-ms-input-placeholder {
    color: rgba(0, 0, 0, 0.1);
}

/* Hide placeholder when focused in Webkit browsers */
.fs-fields input:focus::-webkit-input-placeholder {
    color: transparent;
}

/* Dot navigation */
.fs-nav-dots {
    position: absolute;
    top: 50%;
    right: 60px;
    left: auto;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
}

.fs-nav-dots button {
    position: relative;
    display: block;
    padding: 0;
    margin: 16px 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: transparent;
    -webkit-transition: -webkit-transform 0.3s ease, opacity 0.3s ease;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.fs-nav-dots button::before,
.fs-nav-dots button::after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    content: '';
    text-indent: 0;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.fs-nav-dots button::after {
    background-color: rgba(0, 0, 0, 0.4);
    -webkit-transform: perspective(1000px) rotate3d(0, 1, 0, 180deg);
    transform: perspective(1000px) rotate3d(0, 1, 0, 180deg);
}

.fs-nav-dots button.fs-dot-current {
    -webkit-transform: perspective(1000px) rotate3d(0, 1, 0, 180deg);
    transform: perspective(1000px) rotate3d(0, 1, 0, 180deg);
}

.fs-nav-dots button:hover::before,
.fs-nav-dots button.fs-dot-current::before {
    background: #c28466;
}

/* Progress bar */
.fs-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 0.5em;
    background: #c28466;
    -webkit-transition: width 0.3s ease-in-out;
    transition: width 0.3s ease-in-out;
}

/* Number indicator */
.fs-numbers {
    position: absolute;
    top: 0;
    right: 0;
    overflow: hidden;
    color: rgba(0, 0, 0, 0.4);
    margin: 40px;
    width: 2em;
    font-weight: 700;
    font-size: 2em;
    cursor: default;
}

.fs-numbers:after {
    position: absolute;
    width: 100%;
    text-align: center;
    content: '/';
    font-weight: 300;
    opacity: 0.4;
    left: 0;
}

.fs-numbers span {
    float: right;
    width: 40%;
    text-align: center;
}

.fs-numbers .fs-number-current {
    float: left;
}

.fs-numbers .fs-number-new {
    position: absolute;
    left: 0;
    -webkit-transform: translateY(100%);
    transform: translateY(100%);
}

/* Animations for numbers */
/* Show next number */
.fs-numbers.fs-show-next .fs-number-new {
    -webkit-animation: animMoveUpFromDown 0.4s both;
    animation: animMoveUpFromDown 0.4s both;
}

@-webkit-keyframes animMoveUpFromDown {
    from {
        -webkit-transform: translateY(100%);
    }
    to {
        -webkit-transform: translateY(0);
    }
}

@keyframes animMoveUpFromDown {
    from {
        -webkit-transform: translateY(100%);
        transform: translateY(100%);
    }
    to {
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}

.fs-numbers.fs-show-next .fs-number-current {
    -webkit-animation: animMoveUp 0.4s both;
    animation: animMoveUp 0.4s both;
}

@-webkit-keyframes animMoveUp {
    to {
        -webkit-transform: translateY(-100%);
    }
}

@keyframes animMoveUp {
    to {
        -webkit-transform: translateY(-100%);
        transform: translateY(-100%);
    }
}

/* Show previous number */
.fs-numbers.fs-show-prev .fs-number-new {
    -webkit-animation: animMoveDownFromUp 0.4s both;
    animation: animMoveDownFromUp 0.4s both;
}

@-webkit-keyframes animMoveDownFromUp {
    from {
        -webkit-transform: translateY(-100%);
    }
    to {
        -webkit-transform: translateY(0);
    }
}

@keyframes animMoveDownFromUp {
    from {
        -webkit-transform: translateY(-100%);
        transform: translateY(-100%);
    }
    to {
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}

.fs-numbers.fs-show-prev .fs-number-current {
    -webkit-animation: animMoveDown 0.4s both;
    animation: animMoveDown 0.4s both;
}

@-webkit-keyframes animMoveDown {
    to {
        -webkit-transform: translateY(100%);
    }
}

@keyframes animMoveDown {
    to {
        -webkit-transform: translateY(100%);
        transform: translateY(100%);
    }
}

/* Continue button and submit button */
button.fs-submit,
button.fs-continue {
    border: 3px solid #c28466;
    border-radius: 40px;
    font-weight: 400;
    transition: all .3s;
    color: #fff;
    background-color: #c28466;
    margin-bottom: 1em;
}

.fs-form-overview .fs-submit,
.no-js .fs-form .fs-submit {
    display: block;
    float: right;
}

button.fs-continue {
    position: absolute;
    right: 0;
    bottom: 0;
    margin: 0 40px 60px 0;
    font-size: 1.25em;
}

button.fs-submit:hover,
button.fs-submit:focus,
button.fs-continue:hover {
    background: #ffffff;
    color: #c28466;
}

.fs-continue::after {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    line-height: 3;
    text-align: center;
    background: transparent;
    color: rgba(0, 0, 0, 0.3);
    content: 'oder ENTER';
    font-size: 0.65em;
    pointer-events: none;
}

/* Error message */
.fs-message-error {
    position: absolute;
    bottom: 75%;
    left: 50%;
    z-index: 800;
    max-width: 960px;
    width: 70%;
    color: #eb7e7f;
    font-weight: 700;
    font-size: 1em;
    opacity: 0;
    -webkit-transform: translate3d(-50%, -5px, 0);
    transform: translate3d(-50%, -5px, 0);
}

.fs-message-error.fs-show {
    opacity: 1;
    -webkit-transition: -webkit-transform 0.3s, opacity 0.3s;
    transition: transform 0.3s, opacity 0.3s;
    -webkit-transform: translate3d(-50%, 0, 0);
    transform: translate3d(-50%, 0, 0);
}

.form_message {
    position: absolute;
    color: rgba(0, 0, 0, 0.5);
    margin-left: 3em;
    top: 7em;
    max-width: 90%;
}

/* Animation classes & animations */
.fs-form li.fs-current {
    visibility: visible;
}

.fs-form li.fs-hide,
.fs-form li.fs-show {
    pointer-events: none;
}

/* Hide current li when navigating to next question */
.fs-form .fs-display-next .fs-hide {
    visibility: visible;
}

.fs-form .fs-display-next .fs-hide .fs-anim-lower,
.fs-form .fs-display-next .fs-hide .fs-anim-upper {
    -webkit-animation: animHideNext 0.5s cubic-bezier(0.7, 0, 0.3, 1) forwards;
    animation: animHideNext 0.5s cubic-bezier(0.7, 0, 0.3, 1) forwards;
}

.fs-form .fs-display-next .fs-hide .fs-anim-lower {
    -webkit-animation-delay: 0.1s;
    animation-delay: 0.1s;
}

@-webkit-keyframes animHideNext {
    to {
        opacity: 0;
        -webkit-transform: translate3d(0, -500px, 0);
    }
}

@keyframes animHideNext {
    to {
        opacity: 0;
        -webkit-transform: translate3d(0, -500px, 0);
        transform: translate3d(0, -500px, 0);
    }
}

/* Show new li when navigating to next question */
.fs-form .fs-display-next .fs-show .fs-anim-lower,
.fs-form .fs-display-next .fs-show .fs-anim-upper {
    -webkit-animation: animShowNext 0.5s cubic-bezier(0.7, 0, 0.3, 1) both 0.15s;
    animation: animShowNext 0.5s cubic-bezier(0.7, 0, 0.3, 1) both 0.15s;
}

.fs-form .fs-display-next .fs-show .fs-anim-lower {
    -webkit-animation-delay: 0.25s;
    animation-delay: 0.25s;
}

@-webkit-keyframes animShowNext {
    from {
        opacity: 0;
        -webkit-transform: translate3d(0, 500px, 0);
    }
}

@keyframes animShowNext {
    from {
        opacity: 0;
        -webkit-transform: translate3d(0, 500px, 0);
        transform: translate3d(0, 500px, 0);
    }
}

/* Hide current li when navigating to previous question */
.fs-form .fs-display-prev .fs-hide {
    visibility: visible;
}

.fs-form .fs-display-prev .fs-hide .fs-anim-lower,
.fs-form .fs-display-prev .fs-hide .fs-anim-upper {
    -webkit-animation: animHidePrev 0.5s cubic-bezier(0.7, 0, 0.3, 1) forwards;
    animation: animHidePrev 0.5s cubic-bezier(0.7, 0, 0.3, 1) forwards;
}

.fs-form .fs-display-prev .fs-hide .fs-anim-upper {
    -webkit-animation-delay: 0.1s;
    animation-delay: 0.1s;
}

@-webkit-keyframes animHidePrev {
    to {
        opacity: 0;
        -webkit-transform: translate3d(0, 500px, 0);
    }
}

@keyframes animHidePrev {
    to {
        opacity: 0;
        -webkit-transform: translate3d(0, 500px, 0);
        transform: translate3d(0, 500px, 0);
    }
}

/* Show new li when navigating to previous question */
.fs-form .fs-display-prev .fs-show .fs-anim-lower,
.fs-form .fs-display-prev .fs-show .fs-anim-upper {
    -webkit-animation: animShowPrev 0.5s cubic-bezier(0.7, 0, 0.3, 1) both 0.15s;
    animation: animShowPrev 0.5s cubic-bezier(0.7, 0, 0.3, 1) both 0.15s;
}

.fs-form .fs-display-prev .fs-show .fs-anim-upper {
    -webkit-animation-delay: 0.25s;
    animation-delay: 0.25s;
}

@-webkit-keyframes animShowPrev {
    from {
        opacity: 0;
        -webkit-transform: translate3d(0, -500px, 0);
    }
}

@keyframes animShowPrev {
    from {
        opacity: 0;
        -webkit-transform: translate3d(0, -500px, 0);
        transform: translate3d(0, -500px, 0);
    }
}

/* Remove IE clear cross */
input[type=text]::-ms-clear {
    display: none;
}

/* Adjust form for smaller screens */
@media screen and (max-width: 52.5em) {
    body {
        min-height: 500px;
    }

    .fs-form-wrap {
        font-size: 70%;
    }

    .fs-form-full {
        width: 100%;
    }

    .fs-fields > li label.fs-field-label {
        font-size: 24px;
    }

    .fs-form-full .fs-fields > li label[data-info]::after {
        width: 18px;
        height: 18px;
        font-size: 11px;
        line-height: 15px;
    }

    .fs-form.fs-form-overview {
        top: 0;
        right: 0;
        padding: 1.5em 1em 8em 1em;
        font-size: 1.5em;
    }

    .fs-title {
        padding: 20px;
    }

    .fs-numbers {
        margin: 10px 0;
    }

    .fs-nav-dots {
        right: 0.5em;
        top: 42%;
    }

    .fs-fields textarea {
        height: 160px;
    }

    button.fs-continue {
        right: 20px;
        bottom: 20px;
        margin: 0;
        padding: 50px 0 0 50px;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        font-size: 2em;
        color: #ffffff;
        background-color: #ffffff;
        -webkit-appearance: none;
    }

    button.fs-continue::before {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        content: '\27A1';
        text-align: center;
        font-size: 1em;
        line-height: 50px;
        color: #c28466;
    }

    button.fs-continue:hover {
        background: #ffffff;
        color: #ffffff;
    }

    .fs-continue::after {
        content: '';
    }

    button.fs-submit {
        font-size: 1.25em;
    }

    .fs-message-error {
        bottom: 1.75em;
        left: 0;
        padding: 0 1em 0 2em;
        width: 75%;
        font-size: 1em;
        -webkit-transform: translate3d(0, -5px, 0);
        transform: translate3d(0, -5px, 0);
    }

    .fs-message-error.fs-show {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }

    .fs-nav-dots, .fs-progress {
        display: none;
    }

    .form_message {
        margin-left: 1.5em;
    }
}