/**
 * UserDefinedForm styling — scoped to .userform
 * Matches the Kontakt booking-form panel: same background, spacing, field borders,
 * label weight/colour, and submit button.
 *
 * Loaded only on UserDefinedForm pages via UserFormHcaptchaExtension::updateForm().
 * Never emitted by gulp (gulp only writes main.css / main.min.css).
 */

/* ------------------------------------------------------------------ panel */
.userform {
    background: #f8f8f8;
    padding: 45px 30px;
    box-shadow: 0.5px 0.9px 1px rgba(1, 2, 2, 0.1);
    margin-bottom: 45px;
}

@media (max-width: 767px) {
    .userform {
        padding: 20px 10px;
    }
}

/* ---------------------------------------------------------------- spacing */
.userform .field {
    margin-bottom: 20px;
}

/* ----------------------------------------------------------------- labels */
.userform .field label,
.userform label.left {
    display: block;
    margin-bottom: 5px;
    font-weight: 700;
    color: #5c5e62;
    font-size: 14px;
}

/* ---------------------------------------------- text / select / textarea */
.userform .form-control {
    background: transparent;
    border: 2px solid #dfdfdf;
    color: #5c5e62;
    height: 40px;
    box-shadow: none;
    border-radius: 0;
}

.userform .form-control:focus {
    border-color: #bdbdbd;
    box-shadow: none;
    outline: 0;
}

.userform textarea.form-control {
    min-height: 190px;
    height: auto;
    resize: none;
}

/* ---------------------------------------------------------------- captcha */
.userform .h-captcha {
    margin: 0 0 20px;
}

/* ----------------------------------------------- validation error message */

/* Inline field-level messages (used by jQuery Validate for visible fields) */
.userform .field .message {
    margin-top: 4px;
    font-size: 13px;
    color: #E30613;
}

/* Form-level banner: rendered by UserForm.ss as
   <p id="{FormName}_error" class="message bad"> after a server-side rejection.
   Shown at the top of the form so the user can't miss it. */
.userform > p.message,
.userform p.message.bad,
.userform p.message.required {
    display: block;
    padding: 10px 14px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 600;
    color: #E30613;
    background: #fdf2f2;
    border: 1px solid #f5c6cb;
    border-radius: 2px;
}

/* ---------------------------------------------------------- submit button */
.userform .Actions input[type="submit"],
.userform input.action {
    display: block;
    width: 100%;
    padding: 10px 20px;
    min-width: 150px;
    font-weight: 700;
    font-size: 16px;
    line-height: 20px;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    background: #6b6957;
    border: 1px solid #e2e2e2;
    cursor: pointer;
    transition: background 0.3s ease;
    border-radius: 0;
}

.userform .Actions input[type="submit"]:hover,
.userform input.action:hover {
    background: #E30613;
}
