/* The Lowdown's event submission pages. One sans face for everything you fill in; the site's
   Yanone Kaffeesatz for headings and PT Serif for the reading text, as elsewhere. */
#event-submit {
  --ink: #222;
  --muted: #666;
  --line: #dcdcdc;
  --card: #fafaf8;
  --accent: #1f6f6b;
  --error: #b3261e;
  --ok: #2e6b30;
  max-width: 640px;
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 15px;
}

#event-submit .submit-title {
  font-family: "Yanone Kaffeesatz", sans-serif;
  font-size: 44px;
  margin: 10px 0 6px;
}
#event-submit p,
#event-submit .help-block,
#event-submit .checkbox label { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; }
#event-submit .submit-intro {
  font-family: "PT Serif", serif;
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 20px;
}

/* Each step is a card. */
#event-submit .submit-step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 20px 8px;
  margin-bottom: 18px;
  min-width: 0; /* fieldsets otherwise refuse to shrink on phones */
}
#event-submit .submit-step legend {
  font-family: "Yanone Kaffeesatz", sans-serif;
  font-size: 28px;
  border: 0;
  margin: 0;
  padding: 12px 0 6px;
  width: auto;
  float: left; /* puts the legend inside the card's border */
}
#event-submit .submit-step legend ~ * { clear: both; }
#event-submit .submit-step legend small {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 13px;
  color: var(--muted);
  margin-left: 4px;
}
#event-submit .step {
  display: inline-block;
  width: 30px;
  height: 30px;
  line-height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  text-align: center;
  font-size: 20px;
  margin-right: 6px;
  vertical-align: 3px;
}

/* Fields */
#event-submit .form-group { margin-bottom: 16px; }
#event-submit .control-label { font-weight: 600; font-size: 15px; margin-bottom: 2px; }
#event-submit .required { color: var(--error); }
#event-submit .help-block { color: var(--muted); font-size: 13.5px; line-height: 1.4; margin: 0 0 6px; }
#event-submit .help-block.error { color: var(--error); font-weight: 600; margin: 6px 0 0; }
#event-submit .form-control { font-size: 16px; height: 40px; border-radius: 4px; box-shadow: none; }
#event-submit textarea.form-control { height: auto; min-height: 160px; resize: vertical; line-height: 1.45; }
#event-submit .form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(31, 111, 107, .15); }
#event-submit .has-error .form-control { border-color: var(--error); }
#event-submit .input-group-addon { background: #f0f0ee; font-size: 15px; }
#event-submit .narrow { max-width: 200px; }
#event-submit .checkbox { margin: 6px 0; }
#event-submit .checkbox label { font-size: 15px; }
#event-submit .honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Venue search */
#event-submit #venue-results { margin: 4px 0 0; max-height: 300px; overflow-y: auto; }
#event-submit #venue-results .list-group-item { cursor: pointer; padding: 8px 12px; }
#event-submit #venue-results .list-group-item:hover { background: #eef5f4; }
#event-submit #venue-results .list-group-item small { color: var(--muted); display: block; }
#event-submit #venue-chosen { color: var(--ok); font-weight: 600; margin: 6px 0 0; }
#event-submit #venue-chosen:empty { display: none; }

/* Dates and extra prices: rows of fields on a grid */
#event-submit .date-row,
#event-submit .price-row {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 12px 12px 8px;
  margin-bottom: 10px;
}
#event-submit .date-fields { display: grid; grid-template-columns: 1fr; gap: 4px; }
#event-submit .date-fields .form-group { max-width: 360px; }
/* A time: its label, then hour / minutes / a.m.-p.m. drop-downs on one line. */
#event-submit .field-start,
#event-submit .field-end { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; align-content: flex-start; }
#event-submit .field-start > *:not(select),
#event-submit .field-end > *:not(select) { flex-basis: 100%; }
#event-submit .field-start select,
#event-submit .field-end select { flex: 1 1 0; min-width: 0; width: auto; }
#event-submit .field-start select:last-of-type,
#event-submit .field-end select:last-of-type { flex-grow: 1.4; }  /* room for "am/pm" */
#event-submit .date-fields .form-control { padding: 6px 8px; }
#event-submit .price-fields { display: grid; grid-template-columns: 1.5fr 1fr; gap: 10px; align-items: end; }
#event-submit .date-fields .form-group,
#event-submit .price-fields .form-group { margin-bottom: 4px; min-width: 0; }
#event-submit .when-text { color: var(--ok); font-weight: 600; margin: 4px 0; }
#event-submit .when-text:empty { display: none; }
#event-submit .when-text.error { color: var(--error); }
#event-submit .remove-row { font-size: 13px; color: var(--muted); }
#event-submit .remove-row:hover { color: var(--error); }
#event-submit .add-row { padding-left: 0; font-weight: 600; color: var(--accent); white-space: normal; text-align: left; }
#event-submit .confirm-box { background: #fff4f2; border: 1px solid #f0c5bf; border-radius: 4px; padding: 8px 12px; margin: 8px 0; }

/* Image */
#event-submit .image-box {
  border: 2px dashed var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 14px;
}
#event-submit #image-preview { display: block; max-width: 100%; max-height: 220px; margin-top: 12px; border-radius: 4px; }
#event-submit #image-preview[hidden] { display: none; }
#event-submit .kept-image { display: block; max-width: 275px; margin-bottom: 8px; border-radius: 4px; }

/* Categories */
#event-submit .category-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
#event-submit .category-grid .checkbox { margin: 4px 0; }

#event-submit .contact-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

#event-submit .submit-actions { margin: 8px 0 30px; }
#event-submit .submit-actions .btn { padding: 12px 28px; font-size: 18px; }
#event-submit .submit-actions .help-block { margin-top: 8px; }

/* Review page */
#event-submit .event-preview { border-radius: 6px; }
#event-submit .event-preview img { margin-bottom: 14px; border-radius: 4px; }
#event-submit .event-preview h2 { font-family: "Yanone Kaffeesatz", sans-serif; font-size: 36px; margin: 0 0 6px; }
#event-submit .event-preview .where { font-weight: 600; margin-bottom: 8px; }
#event-submit .event-preview ul.when { padding-left: 1.2em; margin-bottom: 8px; }
#event-submit .event-preview .meta { color: var(--muted); }
#event-submit .event-preview .description,
#event-submit .event-preview .description p { font-family: "PT Serif", serif; font-size: 16px; line-height: 1.5; }
#event-submit .review-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 30px; }
#event-submit .review-actions .btn { padding: 12px 24px; font-size: 17px; }

@media (max-width: 600px) {
  #event-submit .submit-title { font-size: 36px; }
  #event-submit .submit-step { padding: 2px 12px 6px; }
  #event-submit .date-row, #event-submit .price-row { padding: 10px 8px 6px; }
  #event-submit .date-fields .form-group { max-width: none; }
  #event-submit .contact-fields,
  #event-submit .category-grid { grid-template-columns: 1fr; }
  #event-submit .submit-actions .btn,
  #event-submit .review-actions .btn { width: 100%; }
  #event-submit .review-actions { flex-direction: column-reverse; }
}
