/* Layer 2: the honeypot must be hidden with CSS, never type="hidden" —
   bots skip hidden inputs but happily fill a visible-to-them text field. */
.mp-hp {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

/* Turnstile widget spacing. The widget itself is styled by Cloudflare. */
.mp-forms-turnstile {
    margin: 0 0 20px;
}

/* Team-photo call to action. An <a> styled as a button: it navigates, so it
   stays a link for middle-click, new-tab and screen readers. */
.ogtc-join-photo-caption { text-align: center; margin: 14px 0 0 !important; }

.ogtc-join-photo-btn {
    display: inline-block;
    padding: 11px 26px !important;
    background: #ed7900;
    color: #fff !important;
    border: 2px solid #ed7900;
    border-radius: 6px;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    transition: background 0.15s ease, color 0.15s ease;
}

.ogtc-join-photo-btn:hover,
.ogtc-join-photo-btn:focus {
    background: #fff;
    color: #ed7900 !important;
    text-decoration: none !important;
}

.ogtc-join-photo-btn:focus-visible {
    outline: 3px solid rgba(237, 121, 0, 0.45);
    outline-offset: 2px;
}

/* Reassurance note inside the employment block. New class, so it carries its
   own styling rather than depending on the theme. */
.ogtc-join-note {
    margin: 0 0 18px;
    padding: 12px 16px;
    background: #fdf1e5;
    border-left: 3px solid #ed7900;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
}

/* --- Error summary dialog ------------------------------------------- */
.mp-form-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 16, 12, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 99999;
}

/* The theme sets large global type, so every text rule here is explicit and
   forced. Without !important Divi's body/li sizing bleeds in and the list
   renders at ~18px. */
.mp-form-modal {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.32);
    max-width: 420px;
    width: 100%;
    max-height: 82vh;
    display: flex;
    flex-direction: column;
    padding: 24px 24px 20px;
    font-family: inherit;
}

.mp-form-modal-title {
    margin: 0 0 4px !important;
    padding: 0 !important;
    font-size: 16px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
    color: #2d2d2d !important;
}

.mp-form-modal-intro {
    margin: 0 0 14px !important;
    padding: 0 !important;
    font-size: 12.5px !important;
    line-height: 1.4 !important;
    color: #777 !important;
}

.mp-form-modal-list {
    margin: 0 0 16px !important;
    padding: 0 !important;
    list-style: none !important;
    overflow-y: auto;
    flex: 1 1 auto;
    border-top: 1px solid #eee;
}

.mp-form-modal-item {
    display: flex !important;
    align-items: baseline;
    gap: 9px;
    margin: 0 !important;
    padding: 7px 2px !important;
    border-bottom: 1px solid #f2f2f2;
    list-style: none !important;
}

.mp-form-modal-item::before { content: none !important; }

.mp-form-modal-tag {
    flex: 0 0 auto;
    min-width: 54px;
    font-size: 10px !important;
    line-height: 1.5 !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: center;
    color: #b32d2e !important;
    background: #fdecec;
    border: 1px solid #f3c9c9;
    border-radius: 3px;
    padding: 1px 5px !important;
}

.mp-form-modal-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.mp-form-modal-name {
    font-size: 13px !important;
    line-height: 1.35 !important;
    font-weight: 600 !important;
    color: #2d2d2d !important;
}

.mp-form-modal-hint {
    font-size: 11.5px !important;
    line-height: 1.35 !important;
    color: #8a8a8a !important;
}

.mp-form-modal-btn {
    flex: 0 0 auto;
    display: block;
    width: 100%;
    padding: 11px 18px !important;
    background: #ed7900;
    color: #fff !important;
    border: none;
    border-radius: 6px;
    font-size: 14px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    cursor: pointer;
}

.mp-form-modal-btn:hover { background: #d66d00; }
.mp-form-modal-btn:focus-visible { outline: 3px solid rgba(237, 121, 0, 0.45); outline-offset: 2px; }

@media (max-width: 480px) {
    .mp-form-modal { padding: 20px 16px 16px; max-height: 86vh; }
    .mp-form-modal-tag { min-width: 48px; }
}

/* An incomplete social row: both halves are required together. */
.ogtc-join-social-row.ogtc-join-error select,
.ogtc-join-social-row.ogtc-join-error input,
select.ogtc-join-error,
input.ogtc-join-error {
    border-color: #b32d2e;
    outline: 1px solid rgba(179, 45, 46, 0.35);
}

/* --- [mp_form] rendered forms -------------------------------------------
   Self-contained so a form drops into any Divi page without inheriting a
   layout that was never designed for it. Sizes are explicit because the
   theme's global type is large. */
.mp-form { max-width: 680px; margin: 0 auto; }

.mp-field { margin: 0 0 18px; }

.mp-field label,
.mp-field .mp-label {
    display: block;
    margin: 0 0 6px !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    font-weight: 600 !important;
    color: #2d2d2d !important;
}

.mp-field input[type="text"],
.mp-field input[type="email"],
.mp-field input[type="tel"],
.mp-field select,
.mp-field textarea {
    width: 100%;
    padding: 11px 13px !important;
    border: 1px solid #d4d4d4;
    border-radius: 5px;
    font-size: 15px !important;
    line-height: 1.4 !important;
    font-family: inherit;
    background: #fff;
    color: #2d2d2d;
    box-sizing: border-box;
}

.mp-field textarea { resize: vertical; min-height: 96px; }

.mp-field input:focus,
.mp-field select:focus,
.mp-field textarea:focus {
    outline: none;
    border-color: #ed7900;
    box-shadow: 0 0 0 3px rgba(237, 121, 0, 0.15);
}

.mp-radios { display: flex; flex-wrap: wrap; gap: 18px; }

.mp-radios label {
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
    margin: 0 !important;
    font-weight: 400 !important;
    cursor: pointer;
}

.mp-required { color: #ed7900; }

/* Field flagged by validation. */
.mp-field.mp-error input,
.mp-field.mp-error select,
.mp-field.mp-error textarea {
    border-color: #b32d2e;
    background: #fffafa;
}

.mp-form-submit {
    display: inline-block;
    padding: 13px 34px !important;
    background: #ed7900;
    color: #fff !important;
    border: 2px solid #ed7900;
    border-radius: 6px;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    cursor: pointer;
}

.mp-form-submit:hover { background: #d66d00; border-color: #d66d00; }
.mp-form-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.mp-form-submit:focus-visible { outline: 3px solid rgba(237, 121, 0, 0.45); outline-offset: 2px; }

.mp-form-msg { margin: 0 0 16px; font-size: 15px; line-height: 1.5; }
.mp-form-msg:empty { display: none; }
.mp-form-msg.mp-ok   { color: #2d7a2d; }
.mp-form-msg.mp-fail { color: #b32d2e; }

@media (max-width: 600px) {
    .mp-radios { gap: 12px; }
    .mp-form-submit { width: 100%; text-align: center; }
}

/* The shortcode forms sit inside Divi containers that supply a background but
   no inner padding, so the inputs ran edge to edge and the submit button
   touched the container's left and bottom edges. */
.mp-form { padding: 0 22px 24px; }

.mp-form .mp-forms-turnstile { margin: 4px 0 20px; }

@media (max-width: 600px) {
    .mp-form { padding: 0 16px 20px; }
}

/* --- repeating groups ("Add person") ---------------------------------- */
.mp-repeat-rows:empty { display: none; }

.mp-repeat-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px;
    margin: 0 0 10px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid #e2e2e2;
    border-radius: 6px;
}

.mp-repeat-cell { flex: 1 1 160px; min-width: 0; }

.mp-repeat-cell label {
    display: block;
    margin: 0 0 4px !important;
    font-size: 12px !important;
    line-height: 1.3 !important;
    font-weight: 600 !important;
    color: #555 !important;
}

.mp-repeat-cell input {
    width: 100%;
    padding: 9px 11px !important;
    border: 1px solid #d4d4d4;
    border-radius: 5px;
    font-size: 15px !important;
    font-family: inherit;
    box-sizing: border-box;
    background: #fff;
}

.mp-repeat-cell input:focus {
    outline: none;
    border-color: #ed7900;
    box-shadow: 0 0 0 3px rgba(237, 121, 0, 0.15);
}

.mp-repeat-row.mp-error input { border-color: #b32d2e; background: #fffafa; }

.mp-repeat-remove {
    flex: 0 0 auto;
    padding: 9px 14px !important;
    background: transparent;
    border: 1px solid #d4d4d4;
    border-radius: 5px;
    font-size: 13px !important;
    line-height: 1.2 !important;
    color: #777;
    cursor: pointer;
}

.mp-repeat-remove:hover { border-color: #b32d2e; color: #b32d2e; }

.mp-repeat-add {
    display: inline-block;
    padding: 9px 18px !important;
    background: transparent;
    border: 1px dashed #ed7900;
    border-radius: 5px;
    font-size: 14px !important;
    line-height: 1.2 !important;
    font-weight: 600 !important;
    color: #ed7900;
    cursor: pointer;
}

.mp-repeat-add:hover { background: #fdf1e5; }

@media (max-width: 600px) {
    .mp-repeat-cell { flex: 1 1 100%; }
    .mp-repeat-remove { width: 100%; }
}

/* The Collective Cafe form sits on a dark photographic panel, so its labels
   need to invert. Scoped to that form: Contact Us is on a light background
   and must keep dark labels. */
form[data-mp-form="collective_cafe_interest"] .mp-field label,
form[data-mp-form="collective_cafe_interest"] .mp-field .mp-label,
form[data-mp-form="collective_cafe_interest"] .mp-repeat-cell label {
    color: #fff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

form[data-mp-form="collective_cafe_interest"] .mp-radios label { color: #fff !important; }

/* Keep the success/failure message legible on the dark panel too. */
form[data-mp-form="collective_cafe_interest"] .mp-form-msg.mp-ok   { color: #d9f5d9 !important; }
form[data-mp-form="collective_cafe_interest"] .mp-form-msg.mp-fail { color: #ffd9d9 !important; }

/* WPForms rendered a field description under the question; keep that. */
.mp-help {
    display: block;
    margin: 0 0 6px;
    font-size: 12.5px !important;
    line-height: 1.4 !important;
    color: #777 !important;
    font-weight: 400 !important;
}

form[data-mp-form="collective_cafe_interest"] .mp-help { color: #e8e8e8 !important; }

/* Conditional fields start hidden and are revealed by the JS. */
.mp-field.mp-hidden { display: none !important; }
