/* The Mailya sign-up form, as it appears on the site. Neutral on purpose: the theme's fonts
   and colours carry through, and a theme can restyle every class below. */

.mailya-form {
    display: grid;
    gap: 12px;
    max-width: 560px;
    margin: 0 0 1.5em;
}

.mailya-form-title {
    margin: 0;
    font-weight: 600;
}

.mailya-form-fields {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px;
}

.mailya-form-field {
    display: grid;
    flex: 1 1 200px;
    gap: 4px;
    font-size: 0.9em;
}

.mailya-form-field input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid currentColor;
    border-radius: 6px;
    font: inherit;
    background: transparent;
    color: inherit;
}

.mailya-form-button {
    flex: 0 0 auto;
    padding: 11px 20px;
    border: 0;
    border-radius: 6px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.mailya-form-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.85em;
    line-height: 1.45;
}

.mailya-form-consent input {
    margin-top: 0.2em;
}

.mailya-form-message {
    margin: 0;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 0.9em;
}

.mailya-form-message.is-ok {
    background: rgba(39, 84, 79, 0.1);
}

.mailya-form-message.is-error {
    background: rgba(179, 38, 30, 0.1);
}

/* The trap field: out of sight for people, still in the form for robots. */
.mailya-form-trap {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
