/* ── Form wrapper ──────────────────────────────────────────────────────────── */

.powermail_form {
    background-color: #f8f8f8;
    padding: 30px;
}

[data-space-after]:has(.powermail_form),
.main > * > *:last-child:has(.powermail_form) {
    padding-block-end: 0 !important;
}

.powermail_fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

.powermail_legend {
    display: none;
}

/* ── Labels ────────────────────────────────────────────────────────────────── */

.powermail_form .uk-form-label {
    display: none;
}

.powermail_form .powermail_fieldwrap_type_captcha .uk-form-label {
    display: block;
}

/* ── Fields missing uk-input class (password, location, date, captcha) ─────── */

.powermail_password,
.powermail_location,
.powermail_date,
.powermail_captcha {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    display: block;
    width: 100%;
    height: 40px;
    box-sizing: border-box;
    padding: 0 0.75rem;
    vertical-align: middle;
    font-family: inherit;
    font-size: 1rem;
    color: inherit;
    border: 1px solid #e5e5e5;
    background-color: #fff;
    transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out, border 0.2s ease-in-out;
}

/* ── Country select ────────────────────────────────────────────────────────── */

.powermail_country {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    display: block;
    width: 100%;
    height: 40px;
    box-sizing: border-box;
    padding: 0.5rem 2.5rem 0.5rem 0.75rem;
    vertical-align: middle;
    font-family: inherit;
    font-size: 1rem;
    color: inherit;
    border: 1px solid #e5e5e5;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23004f8c' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
}

/* ── Select: unified chevron + color (overrides UIkit defaults) ─────────────── */

.powermail_form .uk-input,
.powermail_form .uk-select,
.powermail_form .uk-textarea {
    color: inherit;
}

.powermail_form .uk-select:not([multiple]):not([size]) {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23004f8c' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-size: 1.5em 1.5em;
}

/* ── File upload ───────────────────────────────────────────────────────────── */

.powermail_file {
    display: block;
    width: 100%;
    height: 40px;
    box-sizing: border-box;
    padding: 0 0.75rem;
    background-color: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 0;
    font-size: 1rem;
    font-family: inherit;
    line-height: 38px;
    cursor: pointer;
    vertical-align: middle;
}

.powermail_file::file-selector-button {
    align-self: stretch;
    height: 100%;
    margin: 0 0.75rem 0 -0.75rem;
    padding: 0 1rem;
    background-color: #222;
    color: #fff;
    border: none;
    border-right: 1px solid #e5e5e5;
    font-family: inherit;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background-color 0.1s ease-in-out;
}

.powermail_file:hover::file-selector-button {
    background-color: #151515;
}

/* ── Placeholders ──────────────────────────────────────────────────────────── */

.powermail_form .uk-input::placeholder,
.powermail_form .uk-textarea::placeholder,
.powermail_form .powermail_password::placeholder,
.powermail_form .powermail_location::placeholder,
.powermail_form .powermail_date::placeholder,
.powermail_form .powermail_captcha::placeholder {
    color: #333;
    font-size: 0.875rem;
    opacity: 1;
}

.powermail_form .uk-select:has(option:first-child[value=""]:checked),
.powermail_form .powermail_country:has(option:first-child[value=""]:checked) {
    color: #333;
    font-size: 0.875rem;
}

/* ── Focus states ──────────────────────────────────────────────────────────── */

.powermail_form .powermail_password:focus,
.powermail_form .powermail_location:focus,
.powermail_form .powermail_date:focus,
.powermail_form .powermail_country:focus,
.powermail_form .powermail_file:focus,
.powermail_form .powermail_captcha:focus {
    outline: 0;
    box-shadow: none;
    border-color: #1e87f0;
}

/* ── Buttons ───────────────────────────────────────────────────────────────── */

.uk-border-radius-50 {
    border-radius: 500px;
}

.powermail_reset {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    display: inline-block;
    box-sizing: border-box;
    width: 100%;
    padding: 0 40px;
    vertical-align: middle;
    font-family: inherit;
    font-size: 0.875rem;
    line-height: 53px;
    text-align: center;
    text-transform: capitalize;
    text-decoration: none;
    white-space: nowrap;
    color: #222;
    background-color: transparent;
    border: 1px solid #222;
    border-radius: 500px;
    cursor: pointer;
    transition: color 0.1s ease-in-out, background-color 0.1s ease-in-out, border-color 0.1s ease-in-out;
}

.powermail_reset:hover {
    background-color: #222;
    color: #fff;
}

/* ── Error messages ────────────────────────────────────────────────────────── */

.powermail-errors-list,
.powermail-errors-list li {
    list-style: none;
}

.powermail-errors-list {
    margin: 0.25rem 0 0;
    padding: 0;
    color: #dc3545;
    font-size: 0.8125rem;
}

/* ── Links inside checkbox/radio labels ────────────────────────────────────── */

.powermail_form .form-check-label a { color: #39f; text-decoration: none; }
.powermail_form .form-check-label a:hover { color: #000; }

/* ── Captcha layout ────────────────────────────────────────────────────────── */

.powermail_fieldwrap_type_captcha .powermail_field {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.25rem 1rem;
    align-items: start;
    max-width: 550px;
}

.powermail_fieldwrap_type_captcha .uk-form-label { grid-column: 1; grid-row: 1; }
.powermail_fieldwrap_type_captcha .powermail_captcha { grid-column: 1; grid-row: 2; align-self: end; }
.powermail_fieldwrap_type_captcha .powermail_captchaimage { grid-column: 2; grid-row: 2; align-self: end; }
.powermail_fieldwrap_type_captcha .powermail_field_error_container { grid-column: 1; grid-row: 3; }

/* ── Contact form field layout (universal — shared across copied forms) ────── */

@media (min-width: 640px) {
    .powermail_fieldwrap_formofaddress,
    .powermail_fieldwrap_title,
    .powermail_fieldwrap_name,
    .powermail_fieldwrap_marker {
        width: 25% !important;
        max-width: 25% !important;
        flex: 0 0 25% !important;
    }

    .powermail_fieldwrap_company,
    .powermail_fieldwrap_country {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }

    .powermail_fieldwrap_number {
        width: 25% !important;
        max-width: 25% !important;
        flex: 0 0 25% !important;
    }

    .powermail_fieldwrap_street {
        width: 75% !important;
        max-width: 75% !important;
        flex: 0 0 75% !important;
    }

    .powermail_fieldwrap_zipcode,
    .powermail_fieldwrap_city,
    .powermail_fieldwrap_e_mail,
    .powermail_fieldwrap_phone {
        width: 50% !important;
        max-width: 50% !important;
        flex: 0 0 50% !important;
    }

    .powermail_fieldwrap_type_check,
    .powermail_fieldwrap_type_radio {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }

    .powermail_fieldwrap_type_submit,
    .powermail_fieldwrap_type_reset {
        width: 50% !important;
        max-width: 50% !important;
        flex: 0 0 50% !important;
    }
}

/* ── Per-form layout overrides ─────────────────────────────────────────────── */


#form_general_inquiries .powermail_fieldwrap_subject,
#form_general_inquiries .powermail_fieldwrap_marker_01 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
}

#form_web_to_case .powermail_fieldwrap_type_captcha,
#form_web_to_lead .powermail_fieldwrap_type_captcha,
#form_web_to_case .powermail_fieldwrap_subject,
#form_web_to_lead .powermail_fieldwrap_email,
#form_web_to_lead .powermail_fieldwrap_marker,
.powermail_form_6 .powermail_fieldwrap_marker_01,
.powermail_form_6 .powermail_fieldwrap_type_submit {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
}

#form_web_to_case .powermail_fieldwrap_marker {
    width: 50% !important;
    max-width: 50% !important;
    flex: 0 0 50% !important;
}

.powermail_form_6 .powermail_fieldwrap_type_submit input[type="submit"] {
    width: 50% !important;
}

@media (min-width: 640px) {
    #form_general_inquiries {
        width: 75% !important;
        max-width: 75% !important;
        align-self: flex-start;
    }


}

@media (max-width: 640px) {
    #form_web_to_case .powermail_fieldwrap_marker {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }
}