:root {
    --bm-accent: #013E75;
    --bm-muted: #333a42;

    --soumission-maxw: 1200px;
    --soumission-pad-mobile: 24px;
    --soumission-pad-desktop: 120px;
    --soumission-title-fs: clamp(22px, 3vw, 32px);
    --soumission-text-fs: clamp(14px, 1.5vw, 17px);
}

/* Section wrapper + inner container */
.soumission {
    padding-block: clamp(24px, 6vw, 35px);
    background: #ffffff;
}

/* Top blue banner */
.soumission-top {
    position: relative;
}

.soumission-banner-text {
    background: var(--bm-accent);
    color: #ffffff;
    padding-block: 12px;
    font-weight: 600;
    font-size: clamp(14px, 1.6vw, 18px);
    letter-spacing: 0.03em;
    position: relative;
    display: inline-block;
    padding-left: 0;
    /* JS sets on the element itself */
    padding-right: 10px;
}

/* Main content */
.soumission-inner {
    max-width: var(--soumission-maxw);
    margin-inline: auto;
    padding-inline: clamp(var(--soumission-pad-mobile),
            5vw,
            var(--soumission-pad-desktop));
    padding-top: clamp(32px, 5vw, 40px);
}

/* Intro + note */
.soumission-intro,
.soumission-note {
    margin: 0 0 clamp(40px, 6vw, 56px);
    color: var(--bm-muted);
    font-size: var(--soumission-text-fs);
    line-height: 1.7;
}

.soumission-note {
    margin-bottom: 0;
}

/* CTA note wrap (alignment source for JS) */
.soumission-cta-note-wrap {
    max-width: var(--soumission-maxw);
    margin-inline: auto;
    padding-inline: clamp(var(--soumission-pad-mobile),
            5vw,
            var(--soumission-pad-desktop));
    margin-top: clamp(12px, 2.4vw, 18px);
}

/* Grey angled CTA band */
.soumission-cta-band {
    position: relative;
    display: inline-block;
    background: #555555;
    color: #ffffff;
    padding: 0;
    /* IMPORTANT: span owns padding */
    left: 50%;
    transform: translateX(-50vw);
    margin-bottom: 100px;
    max-width: calc(100vw - 24px);
    box-sizing: border-box;
}

/* Band text (JS sets padding-left) */
.soumission-cta-band-text {
    display: inline-block;
    max-width: var(--soumission-maxw);
    padding-left: 0;
    /* JS will set */
    padding-right: 10px;
    padding-block: 12px;
    font-weight: 700;
    font-size: clamp(14px, 1.5vw, 18px);
    line-height: 1.4;
    margin-left: 0;
    /* mobile-safe base */
}

/* Add breathing room only on desktop/tablet */
@media (min-width: 641px) {
    .soumission-cta-band-text {
        margin-left: 10px;
    }
    
    .soumission-cta-band::after {
    content: "";
    position: absolute;
    top: 0;
    right: -69px;
    bottom: -0.5px;
    width: 70px;
    background: #555555;
    clip-path: polygon(0 0, 100% 100%, 0 100%);
}
}

/* =========================
   Reveal helper – Soumission
   Default: Y reveal for normal content
   Custom: top banner + CTA band slide X (left → right)
   Safety: do NOT override CTA band layout transform baseline
========================= */

/* Default Y reveal for most elements (exclude both bands) */
.soumission .reveal:not(.soumission-banner-text):not(.soumission-cta-band),
.soumission-top .reveal:not(.soumission-banner-text):not(.soumission-cta-band),
.soumission-cta .reveal:not(.soumission-banner-text):not(.soumission-cta-band) {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.45s ease, transform 0.45s ease;
    will-change: opacity, transform;
}

.soumission .reveal:not(.soumission-banner-text):not(.soumission-cta-band):not(.is-in),
.soumission-top .reveal:not(.soumission-banner-text):not(.soumission-cta-band):not(.is-in),
.soumission-cta .reveal:not(.soumission-banner-text):not(.soumission-cta-band):not(.is-in) {
    opacity: 0;
    transform: translateY(8px);
}

/* Top blue banner: slide in from left */
.soumission-top .soumission-banner-text.reveal {
    opacity: 0;
    transform: translateX(-28px);
    transition: transform 520ms cubic-bezier(.2, .9, .2, 1), opacity 520ms ease;
    will-change: opacity, transform;
}

.soumission-top .soumission-banner-text.reveal.is-in {
    opacity: 1;
    transform: translateX(0);
}

/* Bottom CTA band: slide in from left
   Desktop/tablet baseline: translateX(-50vw)
*/
.soumission-cta .soumission-cta-band.reveal {
    opacity: 0;
    transform: translateX(calc(-50vw - 28px));
    transition: transform 520ms cubic-bezier(.2, .9, .2, 1), opacity 520ms ease;
    will-change: opacity, transform;
}

.soumission-cta .soumission-cta-band.reveal.is-in {
    opacity: 1;
    transform: translateX(-50vw);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

    .soumission .reveal,
    .soumission-top .reveal,
    .soumission-cta .reveal {
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}

/* Mobile adjustments */
@media (max-width: 640px) {

    .soumission-inner,
    .soumission-top-inner {
        padding-inline: var(--soumission-pad-mobile);
    }

    .soumission-banner-text {
        text-align: left;
    }

    /* CTA band stays wrap-content + triangle, aligned by span padding (JS) */
    .soumission-cta-band {
        left: 0;
        transform: none;
        max-width: calc(100vw - (2 * var(--soumission-pad-mobile)));
    }

    /* Fallback padding if JS hasn’t run yet */
    .soumission-cta-band-text {
        margin-left: 0;
        padding-left: var(--soumission-pad-mobile);
    }

    /* Mobile animation baseline */
    .soumission-cta .soumission-cta-band.reveal {
        transform: translateX(-28px);
    }

    .soumission-cta .soumission-cta-band.reveal.is-in {
        transform: translateX(0);
    }
}

/*
---------------------------
Form styles
---------------------------
*/

.dmcf-submission-section {
    background: #ffffff;
}

.dmcf-submission-inner {
    margin: 0 auto;
    padding: 24px;
    background: #f5f6f8;
}

.dmcf-submission-title {
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 700;
    margin-bottom: 24px;
    color: #0d1821;
    text-transform: uppercase;
}

/* ============================================================
   FIELD WRAPPER
   ============================================================ */
.dmcf-field {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.dmcf-field label {
    font-size: clamp(16px, 1.7vw, 18px);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 6px;
    color: #0d1821;
}

/* Required field asterisk */
.dmcf-required>label::after {
    content: " *";
    color: #b00020;
    font-weight: 700;
}

/* Error state */
.dmcf-field.is-error input,
.dmcf-field.is-error textarea {
    border-color: #b00020;
}

.dmcf-field.is-error label {
    color: #b00020;
}


.dmcf-field input,
.dmcf-field textarea {
    padding: 10px 12px;
    border: 1px solid #cdd3d9;
    border-radius: 0;
    background: #fff;
    font-size: clamp(14px, 1.5vw, 17px);
    transition: border-color 0.15s ease;
}

.dmcf-field input:focus,
.dmcf-field textarea:focus {
    outline: none;
    border-color: #013E75;
}

/* Textarea height */
.dmcf-field textarea {
    min-height: 120px;
    resize: none;
}

/* ============================================================
   FILE INPUT FIELD
   ============================================================ */
.dmcf-field-file input[type="file"] {
    display: none;
}

.dmcf-field-file label {
    position: relative;
    cursor: pointer;
}

.dmcf-field-file {
    background: #f2f3f5;
    border: 1px solid #cdd3d9;
    padding: 26px 0;
    text-align: center;
    position: relative;
}

.dmcf-file-note {
    margin-top: 8px;
    font-size: 12px;
    color: #6d7a84;
}

/* ============================================================
   CONTACT PREFERENCE (radio buttons)
   ============================================================ */
.dmcf-field-contact-pref legend {
    font-size: clamp(16px, 1.7vw, 18px);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 8px;
    color: #0d1821;
}

.dmcf-radio {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.dmcf-field .dmcf-radio {
    text-transform: capitalize;
}

.dmcf-radio input[type="radio"] {
    width: 15px;
    height: 15px;
}

/* ============================================================
   SUBMIT BUTTON
   ============================================================ */
.dmcf-button {
    background: #013E75;
    border: none;
    color: #fff;
    padding: 12px 20px;
    font-size: clamp(14px, 1.6vw, 18px);
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease;
    width: auto;
}

.dmcf-button:hover {
    background: #0a76b5;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.dmcf-actions {
    margin-top: 20px;
}

/* ============================================================
   SUCCESS & ERROR MESSAGES
   ============================================================ */
.dmcf-alert-success,
.dmcf-alert-error {
    padding: 16px;
    border-radius: 3px;
    margin-top: 20px;
    font-size: clamp(14px, 1.5vw, 17px);
    line-height: 1.5;
}

.dmcf-note {
    font-size: clamp(14px, 1.5vw, 17px);
}

.dmcf-alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.dmcf-alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ============================================================
   MOBILE RESPONSIVE
   ============================================================ */
@media (max-width: 600px) {
    .dmcf-submission-inner {
        padding: 16px;
    }
}

/*
File upload styling
*/

/* Dropzone container */
.dmcf-field-file {
    border: 1px dashed #cdd3d9;
    background: #f5f7fa;
    padding: 16px;
}

/* Inner clickable area */
.dmcf-drop-target {
    position: relative;
    border-radius: 4px;
    border: 1px dashed #c0c7cf;
    padding: 18px 12px;
    text-align: center;
    background: #f9fafb;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

/* Hide the actual input */
.dmcf-drop-target input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Inner layout */
.dmcf-drop-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    pointer-events: none;
}

/* Icon + text */
.dmcf-drop-icon {
    font-size: 26px;
    line-height: 1;
    color: #6d7a84;
}

.dmcf-drop-text {
    font-size: clamp(14px, 1.5vw, 17px);
    color: #4b545b;
}

/* Drag hover state */
.dmcf-drop-target.is-drag-over {
    background: #e8f4ff;
    border-color: #013E75;
    box-shadow: 0 0 0 1px rgba(20, 84, 129, 0.35);
}

.dmcf-file-list {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
    font-size: clamp(14px, 1.5vw, 17px);
    color: #2f363d;
}

.dmcf-file-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    border-bottom: 1px solid #e3e7eb;
}

.dmcf-file-item:last-child {
    border-bottom: none;
}

.dmcf-file-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Remove button */
.dmcf-file-remove {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 25px;
    line-height: 1;
    padding: 2px 6px;
    color: #b00020;
}

.dmcf-file-remove:hover,
.dmcf-file-remove:focus-visible {
    color: #721c24;
    outline: none;
}

/* ==============================
   Flatpickr Styling – DMCF Match
============================== */

.flatpickr-calendar {
    border-radius: 0;
    border: 1px solid #cdd3d9;
    font-family: inherit;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* ===============================
   HEADER BAR (always blue)
================================= */

.flatpickr-months {
    background: #013E75 !important;
}

/* The month header wrapper sometimes gets its own bg */
.flatpickr-months .flatpickr-month,
.flatpickr-current-month {
    background: transparent !important;
}

/* Month + Year text (HEADER ONLY) */
.flatpickr-current-month,
.flatpickr-current-month .flatpickr-monthDropdown-month,
.flatpickr-current-month input.cur-year {
    color: #ffffff !important;
}

/* Prev / Next arrows */
.flatpickr-prev-month,
.flatpickr-next-month {
    color: #ffffff !important;
}

.flatpickr-prev-month svg,
.flatpickr-next-month svg {
    fill: #ffffff !important;
}

/* Year spinner arrows (up/down) */
.flatpickr-current-month .numInputWrapper span.arrowUp:after,
.flatpickr-current-month .numInputWrapper span.arrowDown:after {
    border-bottom-color: #ffffff !important;
    border-top-color: #ffffff !important;
}

/* ===============================
   WEEKDAY ROW
================================= */

.flatpickr-weekdays {
    background: #f5f6f8;
}

/* ===============================
   DAYS
================================= */

.flatpickr-day.selected {
    background: #013E75;
    border-color: #013E75;
}

.flatpickr-day:hover {
    background: #e8f4ff;
    border-color: #013E75;
}

.flatpickr-day.today {
    border-color: #013E75;
}

.flatpickr-day.today:hover {
    background: #013E75;
    color: #ffffff;
}

/* ===============================
   MONTH DROPDOWN
================================= */

/* The dropdown container that appears under the month name */
.flatpickr-current-month .flatpickr-monthDropdown-months {
    color: #ffffff !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

.flatpickr-current-month .flatpickr-monthDropdown-months .flatpickr-monthDropdown-month {
    color: #111 !important;
    background: transparent !important;
    padding: 6px 10px;
}

/* Hover */
.flatpickr-current-month .flatpickr-monthDropdown-months .flatpickr-monthDropdown-month:hover {
    background: #e8f4ff !important;
    color: #111 !important;
}

/* Selected month in dropdown */
.flatpickr-current-month .flatpickr-monthDropdown-months .flatpickr-monthDropdown-month.selected {
    background: #013E75 !important;
    color: #ffffff !important;
}

/* ===============================
   INPUT ICON
================================= */

.dmcf-field-date {
    position: relative;
}

.dmcf-field-date input {
    padding-right: 42px;
    cursor: pointer;
    width: auto;
}

.dmcf-field-date::after {
    content: "";
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 18px;
    height: 18px;
    pointer-events: none;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23013E75' viewBox='0 0 24 24'%3E%3Cpath d='M7 2v2H5a2 2 0 0 0-2 2v2h18V6a2 2 0 0 0-2-2h-2V2h-2v2H9V2H7zm14 8H3v10a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V10z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.dmcf-field-date input:focus {
    border-color: #013E75;
}

.flatpickr-input[readonly] {
    background-color: #fff;
}