/* ═══════════════════════════════════════════════════════════════
   maarch* — Ninja Forms in the slice's contact form style (ct-contact.css).
   Fields: white boxes, labels above in white; first/last name share a row (container class "ct-half");
   submit = coral pill (element class "ct-form__btn"). Ninja Forms → Settings → Opinionated Styles: None.
   ═══════════════════════════════════════════════════════════════ */

/* Any form (e.g. an Elementor Shortcode widget): plain on-brand fields. :where() keeps these weaker than the contact section below. */
:where(.nf-form-cont) .nf-field-container { margin-bottom: 18px; }
:where(.nf-form-cont .nf-field-element) :is(input:not([type="submit"]):not([type="button"]), textarea, select) { width: 100%; min-height: 44px; padding: 8px 14px; font: inherit; font-size: 16px; border: 1px solid #bbb; background: var(--skin-white); }
:where(.nf-form-cont .nf-field-element) :is(input[type="submit"], input[type="button"]) { min-height: 44px; padding: 0 28px; font: inherit; font-size: 18px; font-weight: 700; color: var(--skin-white); background: var(--skin-coral); border: 0; border-radius: 11px; cursor: pointer; }

.ct-form .maarch-nf-wrap { margin-top: calc(44 * var(--u)); }
.ct-form :is(.maarch-nf-wrap, .nf-form-cont, .nf-form-wrap, .nf-form-layout, form) { min-width: 0; max-width: 100%; }
.ct-form .nf-form-fields-required, .ct-form .ninja-forms-req-symbol { display: none; }
.ct-form nf-fields-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: calc(27 * var(--u)); }
.ct-form nf-field { grid-column: 1 / -1; min-width: 0; }
.ct-form nf-field:has(.ct-half) { grid-column: auto; }

.ct-form .nf-field-container { position: relative; margin: 0; }
.ct-form .nf-field-label label {
    display: block;
    margin: calc(36 * var(--u)) 0 calc(9 * var(--u));
    font-size: clamp(13px, .78125vw, 15px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.05em;
    color: var(--skin-white);
}
.ct-form .nf-field-element input:not([type="submit"]):not([type="button"]),
.ct-form .nf-field-element textarea {
    display: block;
    width: 100%;
    height: calc(69 * var(--u));
    min-height: 44px;
    padding: 0 20px;
    font: inherit;
    font-size: clamp(16px, .9375vw, 18px);
    color: #2e2e2e;
    background: var(--skin-white);
    border: 2px solid transparent;
    border-radius: 0;
    outline: none;
    box-shadow: none;
    transition: border-color .2s ease;
    animation: ct-wipe .9s cubic-bezier(.526, -.009, .586, 1) both;
}
.ct-form .nf-field-element textarea { height: calc(157 * var(--u)); min-height: 120px; padding-top: 16px; resize: vertical; }
.ct-form .nf-field-element input:focus, .ct-form .nf-field-element textarea:focus { border-color: var(--skin-coral); }
.ct-form .nf-error .ninja-forms-field { border-color: var(--skin-coral) !important; }
.ct-form .nf-error-msg {
    display: block;
    width: fit-content;
    margin-top: 6px;
    padding: 4px 8px;
    font-size: 14px;
    color: var(--skin-white);
    background: rgba(255, 115, 118, .9);
}

.ct-form .ct-submit { margin-top: calc(45 * var(--u)); text-align: center; }
.ct-form .ct-submit .nf-field-label { display: none; }
.ct-form .ct-form__btn {
    width: max(200px, calc(260 * var(--u)));
    height: max(44px, calc(46 * var(--u)));
    font: inherit;
    font-size: clamp(18px, 1.354vw, 26px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.05em;
    color: var(--skin-white);
    background: var(--skin-coral);
    border: 0;
    border-radius: 11px;
    cursor: pointer;
    transition: background .2s ease;
    animation: ct-rise .9s cubic-bezier(.534, -.017, .457, .991) .1s both;
}
.ct-form .ct-form__btn:hover, .ct-form .ct-form__btn:focus-visible { background: #f25d61; }
.ct-form .ct-form__btn[disabled] { opacity: .6; cursor: progress; }

.ct-form .nf-response-msg { font-size: clamp(18px, 1.354vw, 26px); font-weight: 500; color: var(--skin-white); }
.ct-form .nf-response-msg p { margin: 0; }
.ct-form .nf-form-errors .nf-error-msg { margin-top: 16px; }

@media (max-width: 767.98px) {
    .ct-form nf-fields-wrap { grid-template-columns: minmax(0, 1fr); }
    .ct-form nf-field:has(.ct-half) { grid-column: 1 / -1; }
}
