/* Campaign Monitor's unstyled embed. Add lc-cm-form to the Elementor HTML
   widget's Advanced > CSS Classes; keep generated embed code inside unchanged. */
.lc-cm-form {
    --lc-cm-text: #363636;
    --lc-cm-field: #f7ead0;
    --lc-cm-border: #69727d;
    --lc-cm-accent: #d19000;
    --lc-cm-gap: 10px;
    color: var(--lc-cm-text);
    font-family: var(--e-global-typography-text-font-family, "Verdana Pro"), Verdana, sans-serif;
    font-size: 18px;
    line-height: 1.4;
}

.lc-cm-form form.js-cm-form,
.lc-cm-form form.js-cm-form * { box-sizing: border-box; }
.lc-cm-form form.js-cm-form { margin: 0; padding: 0; width: 100%; }
.lc-cm-form [hidden] { display: none !important; }

/* Hide the generator's decorative badge, not its consent/error text. */
.lc-cm-form > div:has(form.js-cm-form) > span:first-child,
.lc-cm-form .elementor-widget-container > div:has(form.js-cm-form) > span:first-child { display: none; }
.lc-cm-form h1:empty,
.lc-cm-form p:empty { display: none; }
.lc-cm-form h1 { margin: 0 0 20px; color: var(--lc-cm-text); font: inherit; font-size: 28px; }

/* The first four contact fields use two columns. Later fields (Message,
   consent and any additions) stay wide without relying on generated IDs. */
.lc-cm-form form.js-cm-form > div:first-child {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--lc-cm-gap);
    margin: 0 0 10px;
    padding: 0;
}
.lc-cm-form form.js-cm-form > div:first-child > div { min-width: 0; margin: 0; }
.lc-cm-form form.js-cm-form > div:first-child > div:last-child,
.lc-cm-form form.js-cm-form > div:first-child > div:nth-child(n + 5),
.lc-cm-form form.js-cm-form > div:first-child > div:has(textarea),
.lc-cm-form form.js-cm-form > div:first-child > div:has(input[type="checkbox"]),
.lc-cm-form form.js-cm-form > div:first-child > div:has(input[type="radio"]) { grid-column: 1 / -1; }
.lc-cm-form form.js-cm-form label {
    display: block;
    margin: 0 0 6px;
    padding: 0;
    color: var(--lc-cm-text);
    font: inherit;
    font-size: 16px;
    cursor: pointer;
}
.lc-cm-form form.js-cm-form label:has(+ :is(input, select, textarea)[required])::after { content: " *"; }
.lc-cm-form form.js-cm-form input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="reset"]),
.lc-cm-form form.js-cm-form select,
.lc-cm-form form.js-cm-form textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 59px;
    height: auto;
    margin: 0;
    padding: 7px 20px;
    border: 1px solid var(--lc-cm-border);
    border-radius: 5px;
    background: var(--lc-cm-field);
    box-shadow: none;
    color: var(--lc-cm-text);
    font: inherit;
    line-height: 1.4;
}
.lc-cm-form form.js-cm-form input::placeholder,
.lc-cm-form form.js-cm-form textarea::placeholder { color: var(--lc-cm-text); opacity: .6; }
.lc-cm-form form.js-cm-form textarea { min-height: 98px; resize: vertical; }
.lc-cm-form form.js-cm-form :is(input, select, textarea):focus-visible {
    outline: 2px solid var(--lc-cm-accent);
    outline-offset: 2px;
}
.lc-cm-form form.js-cm-form :is(input, select, textarea)[aria-invalid="true"] { border-color: #b32d2e; }

/* Future consent fields keep native checkbox/radio controls and readable text. */
.lc-cm-form form.js-cm-form input:is([type="checkbox"], [type="radio"]) {
    width: 18px;
    height: 18px;
    margin: 3px 8px 3px 0;
    accent-color: var(--lc-cm-accent);
    vertical-align: middle;
}
.lc-cm-form form.js-cm-form label:has(input[type="checkbox"]),
.lc-cm-form form.js-cm-form label:has(input[type="radio"]),
.lc-cm-form form.js-cm-form input[type="checkbox"] + label,
.lc-cm-form form.js-cm-form input[type="radio"] + label { display: inline; }
.lc-cm-form form.js-cm-form a { color: var(--lc-cm-accent); text-decoration: underline; }

.lc-cm-form form.js-cm-form button[type="submit"],
.lc-cm-form form.js-cm-form input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: auto;
    max-width: 100%;
    min-height: 47px;
    margin: 0;
    padding: 15px 30px;
    border: 0;
    border-radius: 4px;
    background: var(--lc-cm-accent);
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s;
}
.lc-cm-form form.js-cm-form button[type="submit"]::after {
    content: "";
    flex: 0 0 14px;
    width: 14px;
    height: 14px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='7' fill='none' stroke='white' stroke-width='1.4'/%3E%3Cpath d='M4 8h7M8 5l3 3-3 3' fill='none' stroke='white' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.lc-cm-form form.js-cm-form :is(button, input)[type="submit"]:hover { background-color: #b77e00; color: #fff; }
.lc-cm-form form.js-cm-form :is(button, input)[type="submit"]:focus-visible { outline: 2px solid var(--lc-cm-text); outline-offset: 3px; }
.lc-cm-form form.js-cm-form :is(button, input)[type="submit"]:disabled { cursor: wait; opacity: .6; }
.lc-cm-form form.js-cm-form [role="alert"] { color: #b32d2e; font-size: 15px; }

@media (max-width: 767px) {
    .lc-cm-form form.js-cm-form > div:first-child { grid-template-columns: minmax(0, 1fr); }
    .lc-cm-form form.js-cm-form :is(button, input)[type="submit"] { width: 100%; }
}

/* Email-only newsletter embed: add both lc-cm-form and lc-cm-form--footer.
   Keep the required consent checkbox visible and functional. */
.lc-cm-form.lc-cm-form--footer {
    --lc-cm-text: #fff;
    --lc-cm-field: #363636;
    --container-widget-width: 100%;
    width: 100%;
    max-width: 100%;
    /* Match Elementor's fallback when Verdana Pro is unavailable. */
    font-family: "Verdana Pro", sans-serif;
}
.lc-cm-form--footer h1 {
    margin: 0 0 12px;
    font-family: Satoshi, sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 26px;
}
.lc-cm-form--footer form.js-cm-form {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
    gap: 20px 10px;
    align-items: start;
}
.lc-cm-form--footer form.js-cm-form > div:first-child { display: contents; }
.lc-cm-form--footer form.js-cm-form > div:first-child > div:first-child {
    grid-column: 1;
    grid-row: 1;
}
/* Retain the email label for assistive technology. */
.lc-cm-form--footer form.js-cm-form label:has(+ input[type="email"]) {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.lc-cm-form.lc-cm-form--footer form.js-cm-form input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="reset"]) {
    min-height: 40px;
    padding: 5px 14px;
    border-radius: 3px;
    color: #e6e6e6;
    font-size: 18px;
}
.lc-cm-form--footer form.js-cm-form > div:first-child > div:has(input[type="checkbox"]) {
    grid-column: 1 / -1;
    grid-row: 2;
    font-size: 11px;
    line-height: 1.4;
}
.lc-cm-form--footer form.js-cm-form label { font-size: inherit; }
.lc-cm-form--footer form.js-cm-form input[type="checkbox"] {
    width: 14px;
    height: 14px;
    margin: 0 6px 2px 0;
}
.lc-cm-form--footer form.js-cm-form > div:first-child > div:has(input[type="checkbox"]) div {
    display: contents;
}
.lc-cm-form--footer form.js-cm-form p { display: inline; margin: 0 0 0 .25em; }
.lc-cm-form--footer form.js-cm-form :is(button, input)[type="submit"] {
    grid-column: 2;
    grid-row: 1;
    width: auto;
    min-height: 40px;
    padding: 0 24px;
}
.lc-cm-form--footer form.js-cm-form button[type="submit"]::after { display: none; }

@media (max-width: 767px) {
    .lc-cm-form--footer h1 { font-size: 15.84px; line-height: 17.16px; }
    .lc-cm-form--footer form.js-cm-form { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .lc-cm-form--footer form.js-cm-form :is(button, input)[type="submit"] {
        grid-column: 1;
        grid-row: 2;
        width: 100%;
    }
    .lc-cm-form--footer form.js-cm-form > div:first-child > div:has(input[type="checkbox"]) { grid-row: 3; }
}
