input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    border-radius: 4px;
    margin-right: 2px;
    opacity: 0.6;
    filter: invert(0.8);
    color: white;
}

.mm-form-title {
    font-size: 2em;
    text-align: center;
    letter-spacing: 0.05em
}

.mm-field * {
    color: white;
    background-color: unset;
}

.mm-field {
    flex-grow: 1;
}

.mm-input {
    background-color: var(--color-dark) !important;
    color: white !important;
    border-color: var(--color-red) !important;
    box-shadow: none !important;
}

.mm-input::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
    opacity: 1;
}

.mm-field .control .django-quill-widget{
    border-color: var(--color-red);
    border-radius: 0.5em !important;
}

.mm-form-contact {
    display: flex;
    flex-direction: row;
    gap: 1.5em;
}

.mm-form-row {
    display: flex;
    flex-direction: row;
    gap: 1em;
}

.file.has-name .file-cta {
    border-color: var(--color-red);
    border-top-left-radius: 0.5em;
    border-bottom-left-radius: 0.5em;
    background-color: transparent;
    color: white;
}
.file.has-name .file-name {
    border-color: var(--color-red);
    border-bottom-right-radius: 0.5em;
    border-top-right-radius: 0.5em;
    background-color: transparent;
    color: rgba(255, 255, 255, 0.6);
    max-width: 100%;
}

.file-label:hover .file-cta {
    background-color: var(--color-red);
}

@media screen and (max-width: 550px) {
    .mm-form-contact {
        flex-direction: column;
    }
}

.image_preview {
    object-fit: cover;
    aspect-ratio: 1 / 1;
}

/* ════════════════════════════════════════════════════════
   ORGANIZER PAGE — HERO
════════════════════════════════════════════════════════ */
.mm-organizer-hero {
    position: relative;
    padding: 5em 0 4.5em;
    overflow: hidden;
    margin-bottom: 0;
}

/* Soft red glow blobs */
.mm-organizer-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 80% at 15% 60%, hsla(358, 85%, 63%, 0.12) 0%, transparent 70%),
        radial-gradient(ellipse 40% 60% at 85% 40%, hsla(358, 85%, 63%, 0.07) 0%, transparent 65%);
    pointer-events: none;
}

/* Red divider line at the bottom */
.mm-organizer-hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-red), transparent);
}

.mm-organizer-hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.mm-organizer-eyebrow {
    display: block;
    color: var(--color-red);
    font-size: 1.8em;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    margin-bottom: 0.75em;
    opacity: 0.9;
}

.mm-organizer-title {
    font-size: 5.5em !important;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: white !important;
    line-height: 0.95;
    margin-bottom: 0.45em !important;
    text-shadow: 0 0 80px hsla(358, 85%, 63%, 0.25);
}

.mm-organizer-subtitle {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1em;
    line-height: 1.6;
    margin: 0 auto;
}

@media screen and (max-width: 900px) {
    .mm-organizer-title { font-size: 4em !important; }
    .mm-organizer-hero  { padding: 4em 0 3.5em; }
}
@media screen and (max-width: 600px) {
    .mm-organizer-title { font-size: 2.8em !important; }
    .mm-organizer-hero  { padding: 3em 0 2.5em; }
}

/* ════════════════════════════════════════════════════════
   SUCCESS BANNER
════════════════════════════════════════════════════════ */
.mm-organizer-messages {
    padding-top: 2em;
}

.mm-success-banner {
    display: flex;
    align-items: center;
    gap: 0.75em;
    background-color: hsla(130, 44%, 51%, 0.12);
    border: 1px solid hsl(130, 44%, 45%);
    border-left: 4px solid hsl(130, 44%, 51%);
    border-radius: 0.5em;
    padding: 1em 1.5em;
    color: hsl(130, 44%, 72%);
    font-size: 1em;
}

.mm-success-icon {
    font-size: 1.3em;
    flex-shrink: 0;
    color: hsl(130, 44%, 55%) !important;
}

/* ════════════════════════════════════════════════════════
   FORM CONTAINER
════════════════════════════════════════════════════════ */
.mm-organizer-form-container {
    max-width: 1020px;
    padding-top: 3em;
    padding-bottom: 5em;
}

.mm-organizer-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ════════════════════════════════════════════════════════
   SECTION PANELS
════════════════════════════════════════════════════════ */
.mm-form-section {
    margin-bottom: 2.5em;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 1em;
    position: relative;
    background-color: rgba(255, 255, 255, 0.015);
}

/* Top accent bar */
.mm-form-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-red) 0%, rgba(255,255,255,0.05) 60%, transparent 100%);
    z-index: 1;
}

/* Section header row */
.mm-form-section-header {
    display: flex;
    align-items: center;
    gap: 1.5em;
    padding: 1.5em 2em 1.4em;
    background-color: rgba(255, 255, 255, 0.025);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 1em 1em 0 0; /* match parent corners so bg doesn't bleed */
}

.mm-section-number {
    font-size: 3.8em;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
    color: var(--color-red);
    opacity: 0.75;
    flex-shrink: 0;
    min-width: 1.6ch;
    text-align: right;
}

.mm-form-section-title {
    font-size: 1.25em !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em;
    color: white !important;
    margin: 0 0 0.15em !important;
}

.mm-form-section-desc {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.88em;
    margin: 0;
}

/* Section body */
.mm-form-section-body {
    padding: 2em 2em 1.75em;
}

@media screen and (max-width: 550px) {
    .mm-form-section-header {
        padding: 1.1em 1.25em;
        gap: 1em;
    }
    .mm-section-number { font-size: 2.8em; }
    .mm-form-section-body { padding: 1.25em 1.25em 1em; }
}

/* ════════════════════════════════════════════════════════
   FIELD GRIDS
════════════════════════════════════════════════════════ */
.mm-fields-grid {
    display: grid;
    gap: 1.25em;
    margin-bottom: 1.25em;
}

.mm-fields-grid-1 { grid-template-columns: 1fr; }
.mm-fields-grid-2 { grid-template-columns: 1fr 1fr; }
.mm-fields-grid-3 { grid-template-columns: 1fr 1fr 1fr; }

/* Title (3/4) + Type (1/4) */
.mm-title-type-grid {
    grid-template-columns: 3fr 1fr;
    margin-bottom: 1.25em;
}

@media screen and (max-width: 768px) {
    .mm-fields-grid-2,
    .mm-fields-grid-3,
    .mm-title-type-grid {
        grid-template-columns: 1fr;
    }
}

/* ════════════════════════════════════════════════════════
   ROW 1 — FIELDS TWO-COLUMN GRID
════════════════════════════════════════════════════════ */
.mm-fields-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2em;
    align-items: start;
    margin-bottom: 2em;
}

@media screen and (max-width: 900px) {
    .mm-fields-two-col {
        grid-template-columns: 1fr;
    }
}

/* ════════════════════════════════════════════════════════
   ROW 2 — LOGO PREVIEWS SIDE BY SIDE
════════════════════════════════════════════════════════ */
.mm-logo-previews {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 1.25em;
    align-items: start;
    margin-bottom: 0.75em;
}

@media screen and (max-width: 600px) {
    .mm-logo-previews {
        grid-template-columns: 1fr;
    }
}

/* ════════════════════════════════════════════════════════
   LOGO UPLOAD AREA
════════════════════════════════════════════════════════ */
.mm-logo-upload-area {
    display: flex;
    flex-direction: column;
    gap: 0.9em;
}

.mm-logo-label {
    font-size: 0.82em;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
}

.mm-logo-preview-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.35em;
}

.mm-preview-caption {
    font-size: 0.78em;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.35);
    margin: 0;
}

.mm-logo-preview-box {
    position: relative;
    width: 100%;
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 0.5em;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mm-logo-preview-card   { aspect-ratio: 1 / 1; width: 100%; }
.mm-logo-preview-banner { aspect-ratio: 16 / 5.7; }

.mm-preview-img {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

.mm-preview-placeholder {
    text-align: center;
    color: rgba(255, 255, 255, 0.2);
    pointer-events: none;
}

.mm-preview-placeholder i {
    font-size: 1.8em;
    display: block;
    margin-bottom: 0.3em;
    color: rgba(255, 255, 255, 0.15) !important;
}

.mm-preview-placeholder p {
    font-size: 0.75em;
    margin: 0;
}

/* Keep logo upload field compact */
.mm-logo-upload-field .mm-field { margin-bottom: 0; }
.mm-logo-upload-field .file { width: 100%; }
.mm-logo-upload-field .file-label { width: 100%; }
.mm-logo-upload-field .file.has-name { width: 100%; }
.mm-logo-upload-field .file-cta { white-space: nowrap; }
.mm-logo-upload-field .file-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ════════════════════════════════════════════════════════
   LINKS COLLAPSIBLE
════════════════════════════════════════════════════════ */
.mm-links-section {
    margin-bottom: 1.25em;
}

.mm-links-toggle {
    display: flex;
    align-items: center;
    gap: 0.65em;
    padding: 0.7em 1em;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.5em;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95em;
    list-style: none;
    user-select: none;
    transition: border-color 0.2s, color 0.2s, background-color 0.2s;
    background-color: rgba(255, 255, 255, 0.03);
}

.mm-links-toggle::-webkit-details-marker { display: none; }

.mm-links-toggle:hover {
    border-color: rgba(var(--color-red), 0.6);
    border-color: var(--color-red);
    color: white;
    background-color: rgba(255, 255, 255, 0.05);
}

.mm-links-section[open] > .mm-links-toggle {
    border-color: var(--color-red);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    color: white;
}

.mm-optional-tag {
    font-size: 0.72em;
    padding: 0.1em 0.55em;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.04em;
}

.mm-toggle-icon {
    margin-left: auto;
    font-size: 0.8em;
    transition: transform 0.3s ease;
    color: rgba(255, 255, 255, 0.35) !important;
}

.mm-links-section[open] .mm-toggle-icon {
    transform: rotate(180deg);
}

/* The revealed links grid */
.mm-links-fields {
    border: 1px solid var(--color-red);
    border-top: none;
    border-radius: 0 0 0.5em 0.5em;
    padding: 1.25em;
    background-color: rgba(255, 255, 255, 0.02);
    margin-bottom: 0 !important;
}

/* ════════════════════════════════════════════════════════
   FIELD LABEL & HELP TEXT OVERRIDES
════════════════════════════════════════════════════════ */
.mm-form-section-body .label,
.mm-form-section-body .mm-field > .label {
    font-size: 0.8em;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 0.45em;
    font-weight: 600;
}

.mm-form-section-body .help {
    font-size: 0.78em;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 0.3em;
}

.mm-form-section-body .help.is-danger {
    color: hsl(358, 85%, 65%);
}

.mm-form-section-body .icon.is-right i {
    color: hsl(358, 85%, 65%) !important;
}

/* ════════════════════════════════════════════════════════
   DESCRIPTION ROW (inside left column, below links)
════════════════════════════════════════════════════════ */
.mm-description-row {
    margin-top: 0;
}

.mm-description-row .mm-field {
    width: 100%;
}

/* Make the Quill editor fill the available width */
.mm-description-row .django-quill-widget,
.mm-description-row .ql-container,
.mm-description-row .ql-toolbar,
.mm-description-row .ql-editor {
    width: 100% !important;
}

.mm-description-row .ql-toolbar {
    border-color: var(--color-red) !important;
    border-radius: 0.5em 0.5em 0 0 !important;
    background-color: rgba(255, 255, 255, 0.05);
}

.mm-description-row .ql-container {
    border-color: var(--color-red) !important;
    border-radius: 0 0 0.5em 0.5em !important;
    min-height: 180px;
}

.mm-description-row .ql-editor {
    min-height: 160px;
    color: white !important;
    background-color: var(--color-dark);
}

/* Toolbar icons — white on dark background */
.mm-description-row .ql-toolbar .ql-stroke {
    stroke: rgba(255, 255, 255, 0.65) !important;
}
.mm-description-row .ql-toolbar .ql-fill {
    fill: rgba(255, 255, 255, 0.65) !important;
}
.mm-description-row .ql-toolbar button:hover .ql-stroke,
.mm-description-row .ql-toolbar button.ql-active .ql-stroke {
    stroke: var(--color-red) !important;
}
.mm-description-row .ql-toolbar button:hover .ql-fill,
.mm-description-row .ql-toolbar button.ql-active .ql-fill {
    fill: var(--color-red) !important;
}
/* Active button highlight */
.mm-description-row .ql-toolbar button.ql-active,
.mm-description-row .ql-toolbar .ql-picker-label.ql-active {
    color: var(--color-red) !important;
}
/* Separator line between toolbar groups */
.mm-description-row .ql-toolbar .ql-formats {
    margin-right: 0.6em;
}
.mm-description-row .ql-toolbar .ql-formats + .ql-formats {
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    padding-left: 0.6em;
}
/* Placeholder text */
.mm-description-row .ql-editor.ql-blank::before {
    color: rgba(255, 255, 255, 0.3) !important;
    font-style: normal;
}

/* Link tooltip — must float above everything */
.mm-description-row .ql-tooltip {
    z-index: 9999;
    background-color: hsl(0, 3%, 18%);
    border: 1px solid var(--color-red);
    border-radius: 0.4em;
    color: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.mm-description-row .ql-tooltip input[type="text"] {
    background-color: var(--color-dark) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 0.3em;
    color: white !important;
    outline: none;
}

.mm-description-row .ql-tooltip a.ql-action,
.mm-description-row .ql-tooltip a.ql-remove {
    color: var(--color-red) !important;
}

/* ════════════════════════════════════════════════════════
   SUBMIT AREA
════════════════════════════════════════════════════════ */
.mm-form-submit-area {
    text-align: center;
    padding: 1em 0 0em;
}

.mm-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.7em;
    background-color: var(--color-red);
    border: none;
    border-radius: 50px;
    color: white;
    font-family: inherit;
    font-size: 1.05em;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.9em 2.8em;
    cursor: pointer;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.mm-submit-btn:hover {
    box-shadow: 0 0 35px 6px hsla(358, 85%, 63%, 0.45);
    transform: translateY(-2px);
}

.mm-submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 0 15px 2px hsla(358, 85%, 63%, 0.3);
}

.mm-submit-note {
    margin-top: 1em;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.82em;
}

/* ── Tom-select dark theme override ─────────────────────────────────────── */
/* Matches .mm-input: dark bg, red border, white text                        */

.ts-wrapper {
    width: 100%;
    /* The original <select> may carry mm-input or other border classes —
       strip them from the wrapper so only .ts-control shows the border */
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
}

/* The visible control (the "input box") */
.ts-wrapper .ts-control {
    background-color: var(--color-dark) !important;
    border: 1px solid var(--color-red) !important;
    border-radius: 0.5em !important;
    color: white !important;
    box-shadow: none !important;
    padding: 0.55em 0.75em !important;
    min-height: unset !important;
    cursor: text;
}

.ts-wrapper.focus .ts-control {
    border-color: white !important;
    box-shadow: none !important;
}

/* Placeholder text */
.ts-wrapper .ts-control .placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

/* Text being typed */
.ts-wrapper .ts-control input {
    background: transparent !important;
    color: white !important;
    caret-color: white;
}

/* Selected item chip (single-select shows text inline, not as chip, but just in case) */
.ts-wrapper .ts-control .item {
    color: white !important;
    background: transparent !important;
}

/* Dropdown panel */
.ts-wrapper .ts-dropdown {
    background-color: hsl(0, 3%, 10%) !important;
    border: 1px solid var(--color-red) !important;
    border-top: none !important;
    border-radius: 0 0 0.5em 0.5em !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6) !important;
    color: white !important;
}

/* Each option row */
.ts-wrapper .ts-dropdown .option {
    color: rgba(255, 255, 255, 0.8) !important;
    padding: 0.5em 0.75em !important;
}

.ts-wrapper .ts-dropdown .option:hover,
.ts-wrapper .ts-dropdown .option.active {
    background-color: var(--color-red) !important;
    color: white !important;
}

/* "No results" / loading text */
.ts-wrapper .ts-dropdown .no-results,
.ts-wrapper .ts-dropdown .loading {
    color: rgba(255, 255, 255, 0.4) !important;
    padding: 0.5em 0.75em !important;
}
