/* ---------------------------------------------------------------------------
   Contact us.

   The template gave this form five unlabelled pills floating on a photograph.
   Placeholders are not labels: they vanish the moment somebody starts typing,
   which is exactly when a person checking their own answers wants to know what
   the box was for.

   So: real labels, the optional fields marked as optional, and the whole form
   on a surface of its own so the text has something to sit on.
   --------------------------------------------------------------------------- */

.page-contact-us {
    --cf-line: rgba(255, 255, 255, .22);
}

/* ---- the form's own surface ---- */

.page-contact-us .contact-us-form {
    position: relative;
}

/* ---- labels ---- */

.page-contact-us .cf-label {
    display: block;
    /* The template centres everything inside this box, which is right for the
       heading and wrong for a label - a label belongs over the left edge of the
       field it names. */
    text-align: left;
    margin-bottom: 8px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .02em;
    color: #fff;
}

    /* Saying which fields can be skipped is the difference between a form that
       looks like five demands and one that looks like three. */
    .page-contact-us .cf-label span {
        margin-left: 6px;
        font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace;
        font-size: 9.5px;
        font-weight: 500;
        letter-spacing: 1px;
        text-transform: uppercase;
        color: rgba(255, 255, 255, .55);
    }

/* ---- fields ---- */

.page-contact-us .contact-form .form-control {
    height: 54px;
    border-radius: 12px;
    border: 1px solid var(--cf-line);
    background: rgba(255, 255, 255, .96);
    color: #1b1a19;
    font-size: 15px;
    padding: 0 18px;
    box-shadow: none;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.page-contact-us .contact-form textarea.form-control {
    height: auto;
    padding: 14px 18px;
    line-height: 1.6;
}

.page-contact-us .contact-form .form-control::placeholder {
    color: #9a948c;
}

.page-contact-us .contact-form .form-control:hover {
    background: #fff;
}

.page-contact-us .contact-form .form-control:focus {
    outline: none;
    background: #fff;
    border-color: #fff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .35);
}

/* The validator marks a bad field; say so in a colour, not just in words that
   sit below the fold of a long form. */
.page-contact-us .contact-form .has-error .form-control {
    border-color: #ffb4b0;
    box-shadow: 0 0 0 3px rgba(255, 180, 176, .3);
}

.page-contact-us .contact-form .help-block.with-errors {
    margin: 7px 0 0;
    font-size: 12.5px;
    color: #ffd9d7;
}

    .page-contact-us .contact-form .help-block.with-errors ul {
        margin: 0;
        padding: 0;
        list-style: none;
    }

/* ---- the answer after sending ---- */

.page-contact-us .cf-result {
    display: inline-block;
    margin: 14px 0 0;
    padding: 11px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}

    .page-contact-us .cf-result.hidden {
        display: none;
    }

    /* function.js sets these two classes on the result line. */
    .page-contact-us .cf-result.text-success {
        background: #e8f4ec;
        color: #1f6b38;
    }

    .page-contact-us .cf-result.text-danger {
        background: #fdeceb;
        color: #9d2b25;
    }

/* ---- the spam trap ----
   Off-screen rather than display:none - some bots skip anything hidden, and
   this one is meant to be filled in. Never reachable by keyboard or reader. */

.cf-trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---- motion ---- */

@media (prefers-reduced-motion: reduce) {
    .page-contact-us .contact-form .form-control {
        transition: none;
    }
}

/* ---- narrow screens ---- */

@media (max-width: 575px) {
    .page-contact-us .contact-form .form-control {
        height: 50px;
        font-size: 16px;   /* keeps iOS from zooming the page on focus */
    }
}
