/* MusicLive Original — Contact Form 7 event submission page (v0.2.25)
   Presentation-only: existing CF7 field names, validation and submission preserved. */
.ml-submit-page{--ml-submit-ink:#102a40;--ml-submit-muted:#344b60;--ml-submit-border:#c7d6e2;--ml-submit-accent:#155f92;max-width:1040px;margin:0 auto;color:var(--ml-submit-ink)}
.ml-submit-page .ml-breadcrumb{margin-bottom:16px}
.ml-submit-hero{border:1px solid #d2e2ee;background:linear-gradient(125deg,#fff 60%,#edf5fb);border-radius:17px;padding:27px 32px 23px;margin-bottom:18px}
.ml-submit-eyebrow{font-size:11px!important;letter-spacing:.14em;color:#246b9a;font-weight:800;margin:0 0 5px!important}
.ml-submit-hero h1{font-size:clamp(27px,3vw,35px);line-height:1.4;margin:0 0 8px;font-weight:800;color:#102b43}
.ml-submit-hero-lead{font-size:14px;line-height:1.8;color:#344c60;margin:0 0 15px}
.ml-submit-hero-points{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.ml-submit-hero-points span{display:inline-flex;align-items:center;padding:5px 11px;font-size:12px;font-weight:700;color:#175679;background:#e7f2fb;border:1px solid #cbddeb;border-radius:100px}
.ml-submit-hero-points span:first-child{color:#136442;background:#e8f7ee;border-color:#b9e1ca}
.ml-submit-form-area{background:#fff;border:1px solid #d2e0eb;border-radius:17px;padding:26px 33px 36px;box-shadow:0 6px 22px rgba(30,61,87,.035)}
.ml-submit-form-area>p:first-child{margin-top:0}
.ml-submit-form-area>p{font-size:14px;color:var(--ml-submit-muted);line-height:1.85}
.ml-submit-page .wpcf7{width:100%;max-width:none}
.ml-submit-page .wpcf7 form{font-size:14px;color:var(--ml-submit-ink)}
.ml-submit-page .wpcf7-form h2{font-size:21px;line-height:1.45;font-weight:800;color:#102e46;margin:33px 0 19px;padding:12px 0 11px 15px;border-bottom:2px solid #d8e7f0;border-left:4px solid #1b6a9c}
.ml-submit-page .wpcf7-form h3{font-size:16px;line-height:1.5;font-weight:800;color:#16364d;margin:25px 0 12px}
.ml-submit-page .wpcf7-form h2:first-child{margin-top:8px}
.ml-submit-page .wpcf7-form hr{height:1px;border:0;background:#dae5ee;margin:30px 0}
.ml-submit-page .wpcf7-form label{font-size:14px;color:#17374c;font-weight:700;line-height:1.65;margin:11px 0 15px;display:block;max-width:100%}
.ml-submit-page .wpcf7-form label .wpcf7-form-control-wrap{display:block;margin-top:6px}
.ml-submit-page .wpcf7-form input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=hidden]),
.ml-submit-page .wpcf7-form select,
.ml-submit-page .wpcf7-form textarea{box-sizing:border-box;display:block;width:100%;max-width:100%;min-height:45px;padding:10px 13px;border:1.5px solid #a9bfd0;background:#fff;border-radius:9px;color:#102a40;font:inherit;font-size:15px;line-height:1.5;box-shadow:none;float:none}
.ml-submit-page .wpcf7-form textarea{min-height:130px;resize:vertical}
.ml-submit-page .wpcf7-form input[type=file]{padding:12px;background:#f2f7fb;border:1.5px dashed #8eafc7;min-height:55px;cursor:pointer}
.ml-submit-page .wpcf7-form input::placeholder,.ml-submit-page .wpcf7-form textarea::placeholder{color:#536c80;opacity:1}
.ml-submit-page .wpcf7-form input:focus,.ml-submit-page .wpcf7-form select:focus,.ml-submit-page .wpcf7-form textarea:focus{outline:3px solid #bedbf0;outline-offset:1px;border-color:#126595}
.ml-submit-page .wpcf7-form input:disabled,.ml-submit-page .wpcf7-form select:disabled{background:#eef2f5;color:#46586a;opacity:.85}
.ml-submit-page .wpcf7-form .require,.ml-submit-page .wpcf7-form .required{display:inline-block;color:#a62b37;background:#ffeff0;border:1px solid #f6c9ce;border-radius:4px;font-weight:800;padding:0 6px;font-size:11px;margin-left:5px;vertical-align:middle}
.ml-submit-page .wpcf7-form .explanation,.ml-submit-page .wpcf7-form small{font-size:12px;color:#455d70;line-height:1.75}
.ml-submit-page .wpcf7-form .explanation{margin:3px 0 16px}
.ml-submit-page .wpcf7-form p{line-height:1.85}
.ml-submit-page .wpcf7-form .event_date,.ml-submit-page .wpcf7-form .event_time{float:none;display:inline-block;vertical-align:top;width:calc(50% - 9px);margin:0 12px 0 0;box-sizing:border-box}
.ml-submit-page .wpcf7-form .event_date:nth-child(2n),.ml-submit-page .wpcf7-form .event_time:nth-child(2n){margin-right:0}
.ml-submit-page .wpcf7-form .wpcf7-list-item{margin:0 15px 0 0}
.ml-submit-page .wpcf7-form .wpcf7-list-item label{display:inline-flex;gap:8px;align-items:center;margin:0;cursor:pointer}
.ml-submit-page .wpcf7-form .wpcf7-checkbox,.ml-submit-page .wpcf7-form .wpcf7-radio{display:inline-flex;flex-wrap:wrap;gap:10px;align-items:center;margin:8px 0;line-height:1.5}
.ml-submit-page .wpcf7-form input[type=checkbox],.ml-submit-page .wpcf7-form input[type=radio]{accent-color:#17669b;width:17px;height:17px;vertical-align:middle}
.ml-submit-page .wpcf7-form .wpcf7-submit{display:block;width:min(100%,480px);min-height:52px;background:#165e90;color:#fff;border:1px solid #165e90;border-radius:10px;font-size:16px;font-weight:800;cursor:pointer;margin:30px auto 10px;padding:12px 25px;box-shadow:0 3px 9px rgba(15,85,135,.10)}
.ml-submit-page .wpcf7-form .wpcf7-submit:hover{background:#0e4b77}
.ml-submit-page .wpcf7-form .wpcf7-not-valid-tip{font-size:12px;color:#ae2534;margin-top:5px}
.ml-submit-page .wpcf7-form .wpcf7-response-output{margin:20px 0 0!important;padding:14px 17px!important;border-radius:9px!important;font-weight:700}
.ml-submit-page .wpcf7-form .wpcf7-spinner{vertical-align:middle}
.ml-submit-page .wpcf7-form .readonly-select{pointer-events:none;background-color:#eef3f7!important;color:#294960!important;border:1px solid #c9d8e4!important;opacity:1}
@media(max-width:680px){.ml-submit-page .ml-breadcrumb{font-size:11px}.ml-submit-hero{padding:20px 19px}.ml-submit-form-area{padding:18px 17px 26px}.ml-submit-page .wpcf7-form h2{font-size:19px;margin-top:28px}.ml-submit-page .wpcf7-form h3{font-size:15px;margin-top:21px}.ml-submit-page .wpcf7-form .event_date,.ml-submit-page .wpcf7-form .event_time{width:100%;display:block;margin:0}.ml-submit-page .wpcf7-form input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=hidden]),.ml-submit-page .wpcf7-form select,.ml-submit-page .wpcf7-form textarea{font-size:16px}}
/* v0.2.26: progressive inputs and responsive date/time pairs */
.ml-submit-page .wpcf7-form .ml-progress-hidden,.ml-submit-page .wpcf7-form [hidden]{display:none!important}
.ml-submit-page .wpcf7-form .ml-submit-field-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:0 0 6px;align-items:start}
.ml-submit-page .wpcf7-form .ml-submit-field-pair > label,.ml-submit-page .wpcf7-form .ml-submit-field-pair > .event_date,.ml-submit-page .wpcf7-form .ml-submit-field-pair > .event_time{display:block;width:100%;margin:0;max-width:none;float:none}
.ml-submit-page .wpcf7-form .ml-location-locked{pointer-events:none;background:#edf3f7!important;color:#12334c!important;cursor:not-allowed}
@media(max-width:680px){.ml-submit-page .wpcf7-form .ml-submit-field-pair{grid-template-columns:1fr;gap:3px}}

/* v0.2.28 — tight vertical rhythm and clearly grouped CF7 sections. */
.ml-submit-page .wpcf7-form .ml-empty-row{display:none!important}
.ml-submit-page .wpcf7-form :is(h2,h3){clear:both}
.ml-submit-page .wpcf7-form h2{
  font-size:20px;line-height:1.4;margin:26px 0 14px!important;
  padding:12px 14px!important;border-radius:9px;
  color:#12344e;background:#edf5fa;border:1px solid #d4e4ee;
  border-left:4px solid #19699b;border-bottom:1px solid #d4e4ee;
}
.ml-submit-page .wpcf7-form h3{
  font-size:16px;line-height:1.5;margin:19px 0 9px!important;
  padding:0 0 7px;border-bottom:1px solid #dae5ed;color:#133850;
}
.ml-submit-page .wpcf7-form label{margin:6px 0 9px;line-height:1.45}
.ml-submit-page .wpcf7-form .explanation{margin:2px 0 8px;line-height:1.55}
.ml-submit-page .wpcf7-form p{margin-block:6px;line-height:1.6}
.ml-submit-page .wpcf7-form .ml-submit-field-pair{gap:12px;margin-bottom:4px}
.ml-submit-page .wpcf7-form .wpcf7-checkbox,.ml-submit-page .wpcf7-form .wpcf7-radio{margin:3px 0}
.ml-submit-page .wpcf7-form :is(input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=hidden]),select){min-height:43px}
@media(max-width:680px){
 .ml-submit-page .wpcf7-form h2{font-size:18px;margin-top:21px!important;padding:10px 12px!important}
 .ml-submit-page .wpcf7-form h3{margin-top:16px!important}
 .ml-submit-page .wpcf7-form .ml-submit-field-pair{gap:4px}
}

/* v0.2.30 — CF7-native validation; no custom summary or mutation observers.
   H2 marks major sections, H3 marks closely related subgroups. */
.ml-submit-page .ml-submit-form-area { padding:22px 28px 32px; }
.ml-submit-page .wpcf7-form { color:#152f44; line-height:1.55; }
.ml-submit-page .wpcf7-form h2 {
  margin:38px 0 17px!important; padding:13px 17px!important;
  border:1px solid #cddfea; border-left:4px solid #176595;
  border-radius:8px; background:#eaf3f9;
  font-size:20px; font-weight:800; line-height:1.45; color:#102b40;
}
.ml-submit-page .wpcf7-form h2:first-child { margin-top:12px!important; }
.ml-submit-page .wpcf7-form h3 {
  margin:25px 0 10px!important; padding:0 0 7px;
  font-size:16px; font-weight:800; color:#153850;
  border-bottom:1px solid #d8e5ed; line-height:1.5;
}
/* Date/time labels in a pair are part of a single logical unit. */
.ml-submit-page .wpcf7-form .ml-submit-field-pair { gap:12px; margin:0 0 9px; align-items:start; }
.ml-submit-page .wpcf7-form .ml-submit-field-pair > label { margin:0 0 6px; }
.ml-submit-page .wpcf7-form .ml-submit-field-pair + .ml-submit-field-pair { margin-top:7px; }
.ml-submit-page .wpcf7-form label { margin:7px 0 11px; font-weight:700; line-height:1.5; }
.ml-submit-page .wpcf7-form .explanation { margin:2px 0 10px; line-height:1.6; }
.ml-submit-page .wpcf7-form p { margin:6px 0 10px; line-height:1.65; }
.ml-submit-page .wpcf7-form .wpcf7-not-valid-tip {
  display:block; margin:6px 0 4px; padding:0;
  font-size:14px!important; font-weight:700; line-height:1.55; color:#a51c2a!important;
}
/* CF7 applies these states after server-side validation. */
.ml-submit-page .wpcf7-form input.wpcf7-not-valid,
.ml-submit-page .wpcf7-form select.wpcf7-not-valid,
.ml-submit-page .wpcf7-form textarea.wpcf7-not-valid,
.ml-submit-page .wpcf7-form input[aria-invalid="true"],
.ml-submit-page .wpcf7-form select[aria-invalid="true"],
.ml-submit-page .wpcf7-form textarea[aria-invalid="true"] {
  border:2px solid #c52d3b!important; background:#fff6f6!important;
  box-shadow:0 0 0 2px rgba(197,45,59,.08)!important;
}
.ml-submit-page .wpcf7-form label:has(.wpcf7-not-valid) { color:#8f1724; }
.ml-submit-page .wpcf7-form .wpcf7-response-output {
  font-size:14px!important; font-weight:700; line-height:1.65;
  padding:13px 16px!important; margin:16px 0 0!important;
}
.ml-submit-page .wpcf7-form .wpcf7-checkbox:has(.wpcf7-not-valid) {
  outline:2px solid #c52d3b; outline-offset:4px; border-radius:4px;
}
@media(max-width:680px) {
  .ml-submit-page .ml-submit-form-area { padding:17px 15px 25px; }
  .ml-submit-page .wpcf7-form h2 { margin:29px 0 14px!important; padding:11px 13px!important; font-size:18px; }
  .ml-submit-page .wpcf7-form h3 { margin:21px 0 9px!important; font-size:15px; }
  .ml-submit-page .wpcf7-form .ml-submit-field-pair { gap:3px; }
}

/* v0.2.31 — field-aware spacing. CF7 markup and submission untouched. */
/* Section headings: only the explicitly listed groups receive a stronger break. */
.ml-submit-page .wpcf7-form h3.ml-section-spaced {
  margin-top:42px!important;
  margin-bottom:12px!important;
  padding-top:9px;
  border-top:1px solid #cbdce9;
  border-bottom:1px solid #d8e5ed;
}
.ml-submit-page .wpcf7-form h3.ml-section-tight {
  margin-top:12px!important; margin-bottom:9px!important;
}
/* Fields in the same logical group should not look like separate sections. */
.ml-submit-page .wpcf7-form label.ml-field-compact {
  margin-top:4px!important; margin-bottom:7px!important;
}
.ml-submit-page .wpcf7-form .ml-submit-field-pair {
  margin-top:0!important; margin-bottom:5px!important;
}
.ml-submit-page .wpcf7-form .ml-submit-field-pair + .ml-submit-field-pair {
  margin-top:5px!important;
}
.ml-submit-page .wpcf7-form label.ml-field-compact .wpcf7-form-control-wrap {
  margin-top:4px;
}
@media(max-width:680px){
  .ml-submit-page .wpcf7-form h3.ml-section-spaced { margin-top:31px!important; }
  .ml-submit-page .wpcf7-form h3.ml-section-tight { margin-top:10px!important; }
  .ml-submit-page .wpcf7-form .ml-submit-field-pair + .ml-submit-field-pair {margin-top:3px!important;}
}


/* v0.2.32 — compact date/time group based on actual CF7 HTML structure. */
.ml-submit-page .wpcf7-form .ml-date-fields-container {
  display:flex; flex-direction:column; gap:11px;
  margin:0 0 8px!important; padding:0!important;
}
.ml-submit-page .wpcf7-form .ml-date-fields-container .ml-submit-field-pair {
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px!important; margin:0!important;
}
.ml-submit-page .wpcf7-form .ml-date-fields-container :is(.ml-submit-field-pair > label,.ml-date-extra-field) {
  display:block;width:100%;max-width:100%;float:none;
  margin:0!important;padding:0!important;
}
.ml-submit-page .wpcf7-form .ml-date-fields-container .wpcf7-form-control-wrap {
  display:block;margin-top:5px;
}
.ml-submit-page .wpcf7-form .ml-date-fields-container .ml-date-extra-field {margin:0!important}
.ml-submit-page .wpcf7-form h3.ml-section-spaced {margin-top:39px!important}
@media(max-width:680px) {
 .ml-submit-page .wpcf7-form .ml-date-fields-container {gap:10px}
 .ml-submit-page .wpcf7-form .ml-date-fields-container .ml-submit-field-pair {grid-template-columns:1fr;gap:10px!important}
}


/* v0.2.33 — major section headings: spacing without extra horizontal rules. */
.ml-submit-page .wpcf7-form h3.ml-section-spaced {
  border-top:0!important;
  border-bottom:0!important;
  padding-top:0!important;
  padding-bottom:0!important;
  margin-top:36px!important;
  margin-bottom:12px!important;
}
/* Venue selection, venue details and their explanatory text are ONE group. */
.ml-submit-page .wpcf7-form :is(
  label:has([name="location"]),
  label:has([name="location_id"]),
  label:has([name="location_name"]),
  label:has([name="location_postcode"]),
  label:has([name="location_state"]),
  label:has([name="location_town"]),
  label:has([name="location_address"])
) {
  margin-top:5px!important;
  margin-bottom:6px!important;
}
.ml-submit-page .wpcf7-form :is(
  p:has([name="location"]),
  p:has([name="location_id"]),
  p:has([name="location_name"]),
  p:has([name="location_postcode"]),
  p:has([name="location_state"]),
  p:has([name="location_town"]),
  p:has([name="location_address"])
) {
  margin-top:5px!important;
  margin-bottom:7px!important;
}
.ml-submit-page .wpcf7-form :is(
  label:has([name="location_name"]),
  label:has([name="location_postcode"]),
  label:has([name="location_state"]),
  label:has([name="location_town"]),
  label:has([name="location_address"])
) .wpcf7-form-control-wrap {margin-top:4px!important}
@media(max-width:680px){
 .ml-submit-page .wpcf7-form h3.ml-section-spaced {margin-top:28px!important}
}

/* v0.2.34 — old-theme-inspired field rhythm: visible underline only, never a top rule. */
.ml-submit-page .wpcf7-form h3,
.ml-submit-page .wpcf7-form h3.ml-section-spaced,
.ml-submit-page .wpcf7-form h3.ml-section-tight {
  border-top:0!important;
  border-bottom:1px solid #d5e2eb!important;
  padding:0 0 8px!important;
  background:transparent!important;
  border-radius:0!important;
}
/* Give new sections air above, but keep their fields visually together. */
.ml-submit-page .wpcf7-form h3.ml-section-spaced {
  margin-top:34px!important;
  margin-bottom:10px!important;
}
.ml-submit-page .wpcf7-form h3:not(.ml-section-spaced) {
  margin-top:17px!important;
  margin-bottom:8px!important;
}
.ml-submit-page .wpcf7-form h3.ml-section-tight {margin-top:13px!important}
/* Regular fields: keep label, control and explanation close as a unit. */
.ml-submit-page .wpcf7-form label {
  margin-top:6px!important;
  margin-bottom:7px!important;
  line-height:1.45;
}
.ml-submit-page .wpcf7-form label .wpcf7-form-control-wrap {margin-top:4px!important}
.ml-submit-page .wpcf7-form .explanation {margin-top:3px!important;margin-bottom:7px!important}
.ml-submit-page .wpcf7-form p {margin-top:5px;margin-bottom:8px;line-height:1.55}
.ml-submit-page .wpcf7-form .ml-submit-field-pair {gap:12px!important;margin-bottom:7px!important}
.ml-submit-page .wpcf7-form .ml-date-fields-container {gap:10px!important;margin-bottom:8px!important}
.ml-submit-page .wpcf7-form .ml-date-fields-container .ml-submit-field-pair {margin:0!important}
/* Venue fields use the same rhythm as other single-column groups. */
.ml-submit-page .wpcf7-form :is(
  label:has([name="location"]),label:has([name="location_id"]),
  label:has([name="location_name"]),label:has([name="location_postcode"]),
  label:has([name="location_state"]),label:has([name="location_town"]),
  label:has([name="location_address"])
) {margin:5px 0 8px!important}
@media(max-width:680px){
  .ml-submit-page .wpcf7-form h3.ml-section-spaced {margin-top:27px!important}
  .ml-submit-page .wpcf7-form h3:not(.ml-section-spaced) {margin-top:15px!important}
  .ml-submit-page .wpcf7-form .ml-date-fields-container {gap:9px!important}
}

/* v0.2.35 — restore the compact rhythm of the original submission form.
   CF7's auto-generated <br> tags are presentation-only; never change fields or submission. */
.ml-submit-page .wpcf7-form p > br,
.ml-submit-page .wpcf7-form label > br,
.ml-submit-page .wpcf7-form .ml-date-fields-container > br {
  display:none!important;
}
.ml-submit-page .wpcf7-form p:empty,
.ml-submit-page .wpcf7-form p.ml-empty-row {display:none!important}
/* A paragraph may wrap a complete set of labels: suppress the paragraph's
   extra top/bottom margin and let the field labels establish spacing. */
.ml-submit-page .wpcf7-form p {
  margin:0 0 7px!important;
  line-height:1.5;
}
.ml-submit-page .wpcf7-form label {
  display:block;
  margin:0 0 11px!important;
  line-height:1.5;
}
.ml-submit-page .wpcf7-form label .wpcf7-form-control-wrap {margin-top:4px!important}
.ml-submit-page .wpcf7-form .explanation {margin:2px 0 8px!important;line-height:1.55}
/* Venue address fields have the same density as the legacy CF7 form. */
.ml-submit-page .wpcf7-form label:has(:is(
  [name="location_name"],[name="location_postcode"],[name="location_state"],
  [name="location_town"],[name="location_address"]
)) {margin:0 0 10px!important}
.ml-submit-page .wpcf7-form label:has([name="location_name"]),
.ml-submit-page .wpcf7-form .ml-location-name-label {
  font-weight:800!important;
  color:#15334a!important;
}
/* Subsection separation is intentional; no top rules. */
.ml-submit-page .wpcf7-form h3.ml-section-spaced {
  margin-top:32px!important;margin-bottom:11px!important;
}
.ml-submit-page .wpcf7-form h3.ml-section-tight,
.ml-submit-page .wpcf7-form h3:not(.ml-section-spaced) {
  margin-top:17px!important;margin-bottom:9px!important;
}
.ml-submit-page .wpcf7-form .ml-date-fields-container {gap:9px!important}
.ml-submit-page .wpcf7-form .ml-submit-field-pair {margin:0 0 8px!important}
@media(max-width:680px){
  .ml-submit-page .wpcf7-form label{margin-bottom:10px!important}
  .ml-submit-page .wpcf7-form h3.ml-section-spaced{margin-top:27px!important}
}
