.mmc-event-create {
    background: var(--mmc-color-background, #f5f6f8);
    color: var(--mmc-territory-navy, #071d3a);
    min-height: 100vh;
}

.mmc-event-create *,
.mmc-event-create *::before,
.mmc-event-create *::after { box-sizing: border-box; }

.mmc-event-create__hero {
    background:
        linear-gradient(100deg, rgba(7,29,58,.96), rgba(7,29,58,.72)),
        url('../images/territory/festival-hero.webp') center 42% / cover;
    color: #fff;
    min-height: 390px;
    padding: clamp(54px,7vw,100px) clamp(20px,7vw,110px);
}
.mmc-event-create__hero h1 {
    color: #fff !important;
    font-family: var(--mmc-territory-serif, Georgia, serif);
    font-size: clamp(52px,7vw,90px);
    font-weight: 600;
    letter-spacing: -.055em;
    line-height: .95;
    margin: 20px 0 24px;
}
.mmc-event-create__hero p {
    color: rgba(255,255,255,.88) !important;
    font-size: clamp(17px,2vw,22px);
    line-height: 1.55;
    margin: 0;
    max-width: 720px;
}
.mmc-event-create__back {
    align-items: center;
    color: #fff !important;
    display: inline-flex;
    font-size: 13px;
    font-weight: 750;
    gap: 8px;
    margin-bottom: 34px;
    text-decoration: none !important;
}
.mmc-event-create__back svg { fill: currentColor; height: 17px; transform: rotate(180deg); width: 17px; }

.mmc-event-create__layout {
    align-items: start;
    display: block;
    margin: 0 auto;
    max-width: 1020px;
    padding: clamp(34px,6vw,88px) clamp(18px,4vw,54px) 110px;
}
.mmc-event-form { min-width: 0; }
.mmc-event-form__website { height: 1px; left: -9999px; overflow: hidden; position: absolute; width: 1px; }
.mmc-event-form__notice {
    border-radius: 12px;
    font-weight: 700;
    margin-bottom: 24px;
    padding: 18px 20px;
}
.mmc-event-form__notice--success { background: #dff2e8; border: 1px solid #8fc6a7; color: #174f31; }
.mmc-event-form__notice--error { background: #fff0eb; border: 1px solid #e8ad9b; color: #7b2c1d; }

.mmc-event-form__section {
    background: #fff;
    border: 1px solid rgba(7,29,58,.1);
    border-radius: 18px;
    box-shadow: 0 10px 34px rgba(7,29,58,.055);
    margin-bottom: 22px;
    padding: clamp(22px,4vw,38px);
}
.mmc-event-form__section-heading {
    align-items: flex-start;
    border-bottom: 1px solid rgba(7,29,58,.1);
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 22px;
}
.mmc-event-form__section-heading > span {
    align-items: center;
    background: #eee5d8;
    border-radius: 50%;
    color: #8c5e36;
    display: flex;
    flex: 0 0 42px;
    font-size: 12px;
    font-weight: 850;
    height: 42px;
    justify-content: center;
}
.mmc-event-form__section-heading h2 {
    color: var(--mmc-territory-navy, #071d3a) !important;
    font-family: var(--mmc-territory-serif, Georgia, serif);
    font-size: clamp(27px,3vw,36px);
    font-weight: 600;
    letter-spacing: -.035em;
    line-height: 1.05;
    margin: 2px 0 8px;
}
.mmc-event-form__section-heading p { color: #66707b; font-size: 14px; line-height: 1.5; margin: 0; }

.mmc-event-form__grid { display: grid; gap: 20px; grid-template-columns: repeat(2,minmax(0,1fr)); }
.mmc-event-form__grid--four { grid-template-columns: repeat(4,minmax(0,1fr)); }
.mmc-event-form__field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.mmc-event-form__field--wide { grid-column: 1 / -1; }
.mmc-event-form__field > span,
.mmc-event-upload__title { color: #122943; font-size: 13px; font-weight: 800; }
.mmc-event-form__field input,
.mmc-event-form__field select,
.mmc-event-form__field textarea {
    appearance: none;
    background: #fcfaf6;
    border: 1px solid #cfc8bd;
    border-radius: 10px;
    color: #14263b;
    font: inherit;
    min-height: 50px;
    padding: 12px 14px;
    width: 100%;
}
.mmc-event-form__field textarea { line-height: 1.55; min-height: 160px; resize: vertical; }
.mmc-event-form__field select {
    background-image: linear-gradient(45deg, transparent 50%, #4f5e6c 50%), linear-gradient(135deg, #4f5e6c 50%, transparent 50%);
    background-position: calc(100% - 18px) 21px, calc(100% - 13px) 21px;
    background-repeat: no-repeat;
    background-size: 5px 5px, 5px 5px;
    padding-right: 38px;
}
.mmc-event-form__field input:focus,
.mmc-event-form__field select:focus,
.mmc-event-form__field textarea:focus {
    border-color: #0c747d;
    box-shadow: 0 0 0 3px rgba(12,116,125,.12);
    outline: 0;
}
.mmc-event-form__field small,
.mmc-event-upload > small,
.mmc-event-location > small { color: #6b7178; font-size: 11px; line-height: 1.45; }
.mmc-event-form__error { color: #a83e29; display: block; font-size: 12px; font-weight: 750; }

.mmc-event-location {
    background: #f7f2e9;
    border: 1px solid #ddd2c2;
    border-radius: 14px;
    margin-top: 24px;
    padding: 18px;
}
.mmc-event-location .mmc-territory-button { margin-bottom: 12px; }
.mmc-event-location__status { color: #5e6670; font-size: 13px; margin: 0 0 14px; }
.mmc-event-location__status[data-state="success"] { color: #17603c; font-weight: 700; }
.mmc-event-location__status[data-state="error"] { color: #9a3321; font-weight: 700; }
.mmc-event-location__status[data-state="pending"] { color: #806126; }
.mmc-event-location__map {
    background: #ded8cd;
    border: 1px solid rgba(7,29,58,.13);
    border-radius: 12px;
    height: 390px;
    margin-bottom: 9px;
    overflow: hidden;
    width: 100%;
}
.mmc-event-location__map .leaflet-marker-icon { cursor: grab; }

.mmc-event-images { display: grid; gap: 24px; grid-template-columns: minmax(220px,.72fr) minmax(0,1.28fr); }
.mmc-event-upload {
    border: 1px solid #d4ccbf;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
}
.mmc-event-upload input[type="file"] { color: #53606d; font-size: 12px; max-width: 100%; }
.mmc-event-upload input[type="file"]::file-selector-button {
    background: #fff;
    border: 1px solid #9da7ae;
    border-radius: 8px;
    color: #19324b;
    cursor: pointer;
    font-weight: 750;
    margin-right: 10px;
    padding: 9px 12px;
}
.mmc-event-upload__preview {
    align-items: center;
    aspect-ratio: 4 / 5;
    background: linear-gradient(145deg,#e6dbca,#f7f2e9);
    border-radius: 10px;
    color: #645745;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    text-align: center;
    width: min(100%,270px);
}
.mmc-event-upload__preview img { height: 100%; object-fit: cover; width: 100%; }
.mmc-event-upload__preview strong { font-size: 14px; }
.mmc-event-upload__preview small { font-size: 11px; margin-top: 5px; }
.mmc-event-upload__gallery-preview {
    align-content: center;
    background: #f7f2e9;
    border-radius: 10px;
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2,minmax(0,1fr));
    min-height: 220px;
    overflow: hidden;
    padding: 8px;
}
.mmc-event-upload__gallery-preview > span { border-radius: 7px; height: 100px; overflow: hidden; }
.mmc-event-upload__gallery-preview > span.is-placeholder { align-self: center; color: #70695f; grid-column: 1 / -1; height: auto; text-align: center; }
.mmc-event-upload__gallery-preview img { height: 100%; object-fit: cover; width: 100%; }

.mmc-event-form__consent { align-items: flex-start; color: #44515e; display: flex; font-size: 13px; gap: 11px; line-height: 1.55; margin-top: 24px; }
.mmc-event-form__consent input { accent-color: #0c747d; flex: 0 0 auto; height: 20px; margin-top: 1px; width: 20px; }
.mmc-event-form__consent a { color: #0c747d !important; font-weight: 750; text-decoration: underline; }
.mmc-event-form__submit {
    align-items: center;
    background: #071d3a;
    border-radius: 16px;
    color: #fff;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    padding: 24px;
}
.mmc-event-form__submit p { color: rgba(255,255,255,.76); font-size: 13px; line-height: 1.5; margin: 0; max-width: 460px; }
.mmc-event-form__submit .mmc-territory-button { flex: 0 0 auto; }
.mmc-event-form__submit button:disabled { cursor: wait; opacity: .65; }

.mmc-event-example {
    background: #efe4d3;
    border: 1px solid #ddccb3;
    border-radius: 18px;
    padding: 28px;
    margin-top: 30px;
    position: static;
}
.mmc-event-example h2 {
    color: #071d3a !important;
    font-family: var(--mmc-territory-serif, Georgia, serif);
    font-size: 34px;
    font-weight: 600;
    letter-spacing: -.04em;
    line-height: 1.05;
    margin: 14px 0 24px;
}
.mmc-event-example dl { margin: 0; }
.mmc-event-example dl div { border-top: 1px solid rgba(7,29,58,.13); padding: 16px 0; }
.mmc-event-example dt { color: #93613a; font-size: 10px; font-weight: 850; letter-spacing: .12em; margin-bottom: 6px; text-transform: uppercase; }
.mmc-event-example dd { color: #273b4f; font-size: 13px; line-height: 1.55; margin: 0; }
.mmc-event-example > p { background: rgba(255,255,255,.58); border-radius: 10px; color: #43505d; font-size: 12px; line-height: 1.55; margin: 18px 0 0; padding: 14px; }

@media (max-width: 980px) {
    .mmc-event-form__grid--four { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 640px) {
    .mmc-event-create__hero { min-height: 360px; padding: 42px 18px 48px; }
    .mmc-event-create__hero h1 { font-size: 55px; }
    .mmc-event-create__layout { padding: 26px 14px 90px; }
    .mmc-event-example { padding: 22px; }
    .mmc-event-form__section { border-radius: 14px; padding: 20px 16px; }
    .mmc-event-form__grid,
    .mmc-event-form__grid--four,
    .mmc-event-images { grid-template-columns: 1fr; }
    .mmc-event-location { margin-left: -7px; margin-right: -7px; padding: 12px; }
    .mmc-event-location__map { height: 340px; }
    .mmc-event-upload__preview { margin: 0 auto; width: min(100%,280px); }
    .mmc-event-form__submit { align-items: stretch; flex-direction: column; }
    .mmc-event-form__submit .mmc-territory-button { justify-content: center; width: 100%; }
}
