/**
 * Complete contact form stylesheet.
 *
 * Provides the complete layout and visual design for the contact form,
 * including controls, buttons, validation messages and spam protection.
 */


/* Form container */

.fwsacf-container {
    width: 100%;
}

.fwsacf-container #contactform,
.fwsacf-container .fwsacf-message {
    margin-left: auto;
    margin-right: auto;
    max-width: 640px;
}

.fwsacf-form {
    font-size: 16px;
    line-height: 1.5;
    width: 100%;
}

.fwsacf-form,
.fwsacf-form *,
.fwsacf-form *::before,
.fwsacf-form *::after {
    box-sizing: border-box;
}

.fwsacf-form button,
.fwsacf-form input,
.fwsacf-form select,
.fwsacf-form textarea {
    font: inherit;
}


/* Honeypot */

#contactform div.fwsacf-field:first-child {
    position: absolute !important;
    overflow: hidden !important;
    display: inline !important;
    height: 1px !important;
    width: 1px !important;
    z-index: -1000 !important;
}


/* Form controls */

#contactform .fwsacf-control {
    background-color: #fff;
    background-image: none;
    border: 1px solid #ccc;
    border-radius: 2px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset;
    color: #555;
    display: block;
    font-size: 16px;
    height: 34px;
    line-height: 1.42857;
    margin-bottom: 8px;
    padding: 6px 12px;
    transition:
        border-color 0.15s ease-in-out,
        box-shadow 0.15s ease-in-out;
    vertical-align: middle;
    width: 100%;
}

#contactform textarea.fwsacf-control {
    height: auto;
}

.scf-form :is(input, textarea, select, button):focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* Field labels */

#contactform .fwsacf-field > label {
    display: inline-block;
    font-size: 16px;
    font-weight: bold;
    line-height: 1.5;
    margin-bottom: 5px;
}


/* Terms checkbox */

#contactform .fwsacf-checkbox {
    display: block;
    margin-bottom: 0.125rem;
    min-height: 1.5rem;
    padding-left: 1.5em;
}

#contactform .fwsacf-checkbox-input {
    height: 1em;
    margin-top: 0.25em;
    vertical-align: top;
    width: 1em;
}

#contactform .fwsacf-check-inline {
    display: inline-block;
    margin-right: 1rem;
}

#contactform .fwsacf-checkbox-input[type="checkbox"] {
    border-radius: 0.25em;
}

#contactform .fwsacf-checkbox .fwsacf-checkbox-input {
    float: left;
    margin-left: -1.5em;
}

#contactform .fwsacf-checkbox label {
    font-size: 16px;
    font-weight: normal;
    line-height: 1.3;
}


/* Accessible challenge */

#contactform .fwsacf-challenge {
    display: inline-flex;
    flex-direction: column;
    float: left;
}

#contactform .fwsacf-challenge label {
    font-size: 16px;
    font-weight: normal;
    line-height: 1.3;
}

#contactform .fwsacf-challenge input[type="number"] {
    padding: 6px 3px 6px 6px;
    width: 80px;
}


/* Invalid fields */

#contactform .fwsacf-control.error {
    border-color: #dc3444;
}

#contactform input[type="text"].fwsacf-control.error,
#contactform input[type="email"].fwsacf-control.error,
#contactform textarea.fwsacf-control.error {
    background-image: url("ico-error.png");
    background-position: right 9px top 9px;
    background-repeat: no-repeat;
    background-size: 16px 16px;
}


/* Submit button */

#contactform .fwsacf-submit-button {
    appearance: none;
    background-color: #0d6efd;
    border: 1px solid #0d6efd;
    border-radius: 2px;
    color: #fff;
    cursor: pointer;
    display: inline-block;
    font-size: 16px;
    font-weight: bold;
    line-height: 1.8;
    margin: 0;
    min-height: 40px;
    padding: 6px 12px;
    text-align: center;
    user-select: none;
    vertical-align: middle;
    white-space: nowrap;
}

#contactform .fwsacf-submit-button:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
    color: #fff;
}

#contactform .fwsacf-submit-button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

#contactform .fwsacf-submit-button:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}


/* Form messages */

.fwsacf-message {
    font-size: 16px;
    line-height: 1.5;
    margin: 0 0 24px;
}

.fwsacf-message:empty {
    display: none;
}

.fwsacf-alert {
    background-color: #fff5f5;
    border: 1px solid #dc3444;
    border-left-width: 5px;
    border-radius: 4px;
    color: #8f1d2c;
    padding: 16px 20px;
}

.fwsacf-alert p {
    font-size: inherit;
    font-weight: 700;
    line-height: inherit;
    margin: 0 0 8px;
}

.fwsacf-alert ul {
    margin: 0;
    padding-left: 24px;
}

.fwsacf-alert li {
    margin: 0;
}

.fwsacf-alert li + li {
    margin-top: 4px;
}

.fwsacf-alert strong {
    font-weight: 600;
}

.fwsacf-alert-success {
    background-color: #f0f9f2;
    border-color: #218739;
    color: #185f2a;
}


/* Turnstile */

#contactform .fwsacf-turnstile {
    margin-top: 10px;
    max-width: 100%;
    width: 300px;
}


/* Clearfix */

.fwsacf-clearfix::before,
.fwsacf-clearfix::after {
    content: "";
    display: table;
}

.fwsacf-clearfix::after {
    clear: both;
}


/* Form actions */

#contactform .fwsacf-submit {
    margin-bottom: 1rem;
    min-height: 40px;
    text-align: right;
}

#contactform .fwsacf-submit-button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
    box-shadow: 0 0 0 5px #1d2327;
}


/* Desktop layout */

@media screen and (min-width: 768px) {
    #contactform .fwsacf-turnstile {
        float: left;
    }
}


/* Mobile layout */

@media screen and (max-width: 480px) {
    #contactform .fwsacf-submit-button {
        width: 100%;
    }

    #contactform .fwsacf-turnstile {
        float: none;
        width: 100%;
    }
}