/* MP DFC Forms — vanilla, no framework. DFC palette: navy #1A325E, yellow #FDD769, blue #28A8E0 */

/* Theme renders an entry-header on the Careers page that conflicts with our in-content "Current Openings" h2. Hide it whenever the apply-button shortcode is present. */
body.dfc-has-apply-button .entry-header,
body.dfc-has-apply-button h1.entry-title,
body.dfc-has-apply-button .page-header { display: none !important; }


.dfc-apply-wrap {
    display: inline-block;
}

.dfc-apply-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #1A325E;
    color: #fff;
    font-family: 'Oswald', Arial, sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    padding: 0.85rem 1.6rem;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(26, 50, 94, 0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.dfc-apply-trigger:hover,
.dfc-apply-trigger:focus {
    background: #28A8E0;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(40, 168, 224, 0.35);
    outline: none;
}
.dfc-apply-arrow {
    display: inline-block;
    transition: transform 0.15s ease;
}
.dfc-apply-trigger:hover .dfc-apply-arrow {
    transform: translateX(3px);
}

.dfc-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 4vh 1rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.dfc-modal[hidden] {
    display: none !important;
}
.dfc-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26, 50, 94, 0.55);
    backdrop-filter: blur(2px);
    z-index: 1;
}
.dfc-modal-panel {
    position: relative;
    z-index: 2;
    background: #fff;
    border-radius: 14px;
    max-width: 720px;
    width: 100%;
    padding: 1.75rem 1.75rem 1.5rem;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25);
    font-family: 'PT Serif', Georgia, serif;
}

.dfc-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    background: transparent;
    border: 0;
    font-size: 1.75rem;
    line-height: 1;
    color: #1A325E;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
}
.dfc-modal-close:hover { color: #28A8E0; }

.dfc-modal-header h2 {
    font-family: 'Oswald', Arial, sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
    color: #1A325E;
    margin: 0 0 0.35rem 0;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.dfc-modal-subhead {
    color: #555;
    font-size: 0.95rem;
    margin: 0 0 1.25rem 0;
}

.dfc-form { display: block; }
.dfc-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 0.85rem;
}
@media (max-width: 560px) {
    .dfc-row { grid-template-columns: 1fr; }
}

.dfc-field {
    display: block;
    margin-bottom: 0.85rem;
}
.dfc-field label {
    display: block;
    font-family: 'Oswald', Arial, sans-serif;
    font-weight: 500;
    color: #1A325E;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.dfc-req { color: #d12c5b; }
.dfc-optional {
    text-transform: none;
    font-weight: 400;
    font-size: 0.8rem;
    color: #777;
}
.dfc-field-hint {
    display: block;
    text-transform: none;
    font-weight: 400;
    color: #777;
    font-size: 0.78rem;
    margin-top: 2px;
}

.dfc-field input[type="text"],
.dfc-field input[type="email"],
.dfc-field input[type="tel"],
.dfc-field textarea,
.dfc-field input[type="file"],
.dfc-field select {
    width: 100%;
    box-sizing: border-box;
    padding: 0.65rem 0.8rem;
    border: 1px solid #d6dbe4;
    border-radius: 8px;
    font: inherit;
    color: #1a1a1a;
    background: #fafbfd;
    transition: border-color 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.dfc-field textarea { min-height: 120px; resize: vertical; }
.dfc-field input:focus,
.dfc-field textarea:focus {
    outline: none;
    border-color: #28A8E0;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(40, 168, 224, 0.15);
}

.dfc-field.dfc-error input,
.dfc-field.dfc-error textarea,
.dfc-field.dfc-error select {
    border-color: #d12c5b;
    background: #fff5f7;
}
.dfc-field .dfc-error-message {
    color: #d12c5b;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.dfc-fieldset {
    border: 1px dashed #d6dbe4;
    border-radius: 10px;
    padding: 0.85rem 1rem 0.25rem;
    margin: 0 0 1rem 0;
}
.dfc-fieldset legend {
    font-family: 'Oswald', Arial, sans-serif;
    color: #1A325E;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.dfc-turnstile-wrap { min-height: 70px; }

.dfc-file-policy {
    font-size: 0.8rem;
    color: #666;
    background: #f4f6fa;
    border-left: 3px solid #FDD769;
    padding: 0.6rem 0.85rem;
    border-radius: 0 6px 6px 0;
    margin: 0.5rem 0 1rem;
}

.dfc-form-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}
.dfc-submit {
    background: #1A325E;
    color: #fff;
    font-family: 'Oswald', Arial, sans-serif;
    font-weight: 500;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.85rem 1.6rem;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.12s ease, transform 0.12s ease;
}
.dfc-submit:hover { background: #28A8E0; transform: translateY(-1px); }
.dfc-submit[disabled] { opacity: 0.65; cursor: progress; }

.dfc-cancel {
    background: transparent;
    color: #1A325E;
    border: 1px solid #d6dbe4;
    border-radius: 999px;
    padding: 0.75rem 1.2rem;
    cursor: pointer;
    font-family: 'Oswald', Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.9rem;
}
.dfc-cancel:hover { background: #f4f6fa; }

.dfc-form-status {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
}
.dfc-form-status.dfc-status-success {
    background: #e8f7ee;
    color: #1f7a3a;
    border-left: 4px solid #1f7a3a;
}
.dfc-form-status.dfc-status-error {
    background: #fdecf1;
    color: #a01d44;
    border-left: 4px solid #a01d44;
}

/* DFC Careers card layout. Standalone — used on the Careers page content. */
.dfc-careers-section { max-width: 1100px; margin: 0 auto; padding: 0 1rem; font-family: 'PT Serif', Georgia, serif; }
.dfc-careers-header { text-align: center; padding: 3rem 1rem 1rem; }
.dfc-careers-header h2 {
    font-family: 'Oswald', Arial, sans-serif;
    font-weight: 700;
    font-size: 2.75rem;
    color: #1A325E;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin: 0 0 0.5rem;
}
.dfc-careers-header p { color: #555; font-size: 1.05rem; margin: 0 auto 1rem; max-width: 540px; }
.dfc-location-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #FFF7DC;
    color: #1A325E;
    border-radius: 999px;
    padding: 0.6rem 1.25rem;
    font-size: 0.95rem;
    margin: 0.5rem auto 2rem;
    max-width: 720px;
}
.dfc-location-pill strong { color: #1A325E; }
.dfc-location-pill svg { width: 18px; height: 18px; fill: #1A325E; flex-shrink: 0; }

.dfc-job-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(26, 50, 94, 0.08);
    padding: 2.25rem 2.25rem 2rem;
    margin: 0 auto 2rem;
    max-width: 880px;
}
.dfc-job-card h3 {
    font-family: 'Oswald', Arial, sans-serif;
    font-weight: 700;
    font-size: 2rem;
    color: #1A325E;
    margin: 0 0 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.dfc-careers-section .dfc-job-meta {
    display: flex !important;
    flex-wrap: wrap;
    gap: 1.25rem 2rem;
    color: #1A325E;
    font-family: 'Oswald', Arial, sans-serif;
    font-size: 1rem;
    padding-bottom: 1.1rem;
    border-bottom: 1px solid #e8eaf0;
    margin-bottom: 1.1rem;
    align-items: center;
    line-height: 1.2;
}
.dfc-careers-section .dfc-job-meta span {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.45rem !important;
    line-height: 1.2;
    white-space: nowrap;
}
.dfc-careers-section .dfc-job-meta svg {
    width: 18px;
    height: 18px;
    fill: #28A8E0;
    flex-shrink: 0;
    vertical-align: middle;
    display: inline-block;
}

.dfc-job-summary {
    color: #333;
    font-size: 1.02rem;
    line-height: 1.55;
    margin: 0 0 1rem;
}

/* Always-visible Position Summary content (sits directly inside .dfc-job-card) */
.dfc-job-card > h4,
.dfc-job-section-heading {
    font-family: 'Oswald', Arial, sans-serif;
    color: #1A325E;
    font-weight: 600;
    font-size: 1.1rem;
    margin: 1.25rem 0 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.dfc-job-card > p {
    color: #333;
    font-size: 1.02rem;
    line-height: 1.6;
    margin: 0 0 0.95rem;
}
.dfc-job-bullets {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
}
.dfc-job-bullets li {
    display: flex;
    gap: 0.65rem;
    color: #1a1a1a;
    font-size: 1rem;
    line-height: 1.45;
    margin-bottom: 0.6rem;
}
.dfc-job-bullets li::before {
    content: "\2713";
    color: #28A8E0;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 0.05rem;
}

.dfc-job-toggle {
    background: transparent;
    border: 0;
    color: #28A8E0;
    font-family: 'Oswald', Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.25rem 0;
    margin-bottom: 1.25rem;
}
.dfc-job-toggle:hover { color: #1A325E; }
.dfc-job-toggle::after { content: " \25BC"; font-size: 0.8em; }
.dfc-job-toggle.is-open::after { content: " \25B2"; }

.dfc-job-full { display: none; }
.dfc-job-full.is-open { display: block; }
.dfc-job-full h4 {
    font-family: 'Oswald', Arial, sans-serif;
    color: #1A325E;
    font-weight: 600;
    font-size: 1.1rem;
    margin: 1rem 0 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.dfc-job-full p, .dfc-job-full ul { color: #333; font-size: 0.98rem; line-height: 1.55; }
.dfc-job-full ul { padding-left: 1.2rem; margin: 0 0 1rem; }
.dfc-job-full ul li { margin-bottom: 0.35rem; }

.dfc-job-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    align-items: center;
    padding-top: 1.25rem;
    border-top: 1px solid #e8eaf0;
}
.dfc-job-footer .dfc-questions { color: #555; font-size: 0.95rem; }
.dfc-job-footer .dfc-questions a { color: #28A8E0; text-decoration: underline; }

body.dfc-modal-open { overflow: hidden; }
