form > div {
    color:#002528;
    font-weight: 300;
    margin-bottom: 1.375em;
}

input,
textarea {
    margin-right: 0.25em;
    margin-bottom: 0.5em;
    box-sizing: border-box;
    padding: 0.3em 0.7em 0.4em;
    border: 1px solid #002528;
    border-radius: 2px;
    background-color: #fff;
    color:#002528;
    font-weight: 300;
}

input:focus,
textarea:focus {
    outline: 2px solid #faaf40;
    outline-offset: 1px;
}

input[type='checkbox'] {
    display: block;
}

label.checkbox {
    display: block;
    margin: -28px 0 0.4em 23px;
    width: 90%;
    cursor: pointer;
}

.instruction-container {
    position: relative;
}

.instruction {
    position: absolute;
    width: 50%;
    top: 0;
    left: 0;
    visibility: hidden;
    opacity: 0;
    -webkit-transition: opacity 350ms ease-out;
    -moz-transition: opacity 350ms ease-out;
    -o-transition: opacity 350ms ease-out;
    transition: opacity 350ms ease-out;
    background-color: #eee;
    border: 1px solid #ddd;
    padding: 8px 10px 10px 10px;
    font-size: 0.8em;
    font-weight: 400;
    z-index: 1000;
}

.focused .instruction,
.instruction-container:hover .instruction {
    visibility: visible;
    left: 103%;
    opacity: 1;
}

.input-label-wrapper {
    display: inline-block;
    position: relative;
}

.input-label-wrapper input,
.input-label-wrapper textarea {
    width: 100%;
}

.input-label-wrapper label {
    position: absolute;
    top: 0.35em;
    left: 0.25em;
    pointer-events: none;
    width: auto;
    padding: 0 0.5em;
    background-color: transparent;
    line-height: 1.5em;
    transition: all 0.18s ease-out;
}

.input-label-wrapper input[required] + label::after,
.input-label-wrapper textarea[required] + label::after {
    content: " *";
    color: #faaf40;
    font-weight: 700;
}

.input-label-wrapper textarea:focus + label:not(:empty),
.input-label-wrapper textarea:not(:placeholder-shown) + label:not(:empty),
.input-label-wrapper input:focus + label:not(:empty),
.input-label-wrapper input:not(:placeholder-shown) + label:not(:empty) {
    top: -0.25em;
    left: 0.95em;
    font-size: 0.8em;
    background-color: white;
    padding: 0 0.25em 0.16em;
    line-height: 0.3em;
    transition: all 0.18s ease-out;
}

.feedback-wrapper {
    display: inline-block;
    position: absolute;
    bottom: 0.07em;
    right: 0.4em;
    max-width: calc(100% - 0.8em);
    background-color: white;
    padding: 0 0.2em;
    opacity: 0;
}

.feedback-wrapper.for-checkboxes {
    bottom: unset;
    top: -1.9em;
}

.error .feedback-wrapper {
    opacity: 1;
}

.feedback-caption {
    z-index: 999;
    position: relative;
    pointer-events: none;
    white-space: nowrap;
    overflow: hidden;
    max-width: 100%;
    line-height: 0.67em;
    height: 0.96em;
}

.feedback-caption span {
    display: inline-block;
    background-color: white;
    font-size: 0.8em;
}

.feedback-wrapper.for-checkboxes span {
    font-size: 1em;
}

.feedback-caption span.run {
padding-left: 100%;
animation: marquee 10s linear infinite;
}

@keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}
  