/* RESET RULES & INITIAL SET UP
–––––––––––––––––––––––––––––––––––––––––––––––––– */
:root {
    --white: #fff;
    --black: #222;
    --brown: #9f4631;
    --gray: #9a9a9a;
    --lightgray: #f2f3f5;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    border: none;
    outline: none;
}

input,
textarea {
    font-family: inherit;
    font-size: 100%;
}

[type="submit"] {
    cursor: pointer;
}

textarea {
    resize: none;
}

ul {
    list-style: none;
}

/* FORM ELEMENTS
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.form-with-animated-labels .form-wrapper {
    position: relative;
}

.form-with-animated-labels .form-wrapper+.form-wrapper {
    margin-top: 30px;
}

.form-with-animated-labels [type="text"],
.form-with-animated-labels [type="email"],
.form-with-animated-labels textarea {
    width: 100%;
    padding: 15px 10px;
    border: 1px solid #505a8b;
    border-radius: 5px;
    color: #000;
    background: #fff;
    font-size: 18px;
}

.form-with-animated-labels textarea {
    height: 150px;
}

.form-with-animated-labels [type="text"]:focus,
.form-with-animated-labels [type="email"]:focus,
.form-with-animated-labels textarea:focus {
    border-color: #dce5ee;
}

.form-with-animated-labels label {
    position: absolute;
    top: 50%;
    left: 10px;
    font-size: 14px;
    font-weight: normal;
    max-width: 100%;
    transform: translateY(-50%);
    color: var(--gray);
    transition: all 0.25s ease-in-out;
}

.form-with-animated-labels .form-textarea-wrapper label {
    top: 10px;
    transform: none;
}

.form-with-animated-labels label.focused {
    top: -22px;
    transform: none;
    font-size: 13px;
    color: var(--gray);
}

.form-with-animated-labels [type="submit"] {
    min-width: 160px;
    padding: 20px 4px;
    border-radius: 10px;
    width: 100%;
    font-size: 1.5rem;
    text-transform: uppercase;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    color: var(--white);
    background: #505a8b;
}

.form-with-animated-labels .wpcf7-form-control-wrap {
    position: static;
}

.form-with-animated-labels .wpcf7-not-valid-tip {
    position: absolute;
    bottom: 100%;
    right: 10px;
    font-size: 12px;
}

/* OUTPUT MESSAGES CF7
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.wpcf7 form .wpcf7-response-output {
    font-size: 18px;
    padding: 10px;
    margin: 0;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.sent .wpcf7-response-output {
    border-color: #505a8b;
}
