/* =========================================================
   submission.css  — styles for the event submission form
   ========================================================= */

/* ---- Layout ---- */
.submission-wrap {
  max-width: 700px;
  margin: 2rem auto;
  padding: 0 1rem 3rem;
}

/* ---- Form card ---- */
#event-form {
  background: #1e1e1e;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

body.light-mode #event-form {
  background: #ffffff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* ---- Heading ---- */
#event-form h2 {
  text-align: center;
  margin-bottom: 0.5rem;
  font-size: 2rem;
  color: #ffdb6e;
}

.form-intro {
  text-align: center;
  font-size: 0.9rem;
  color: #aaa;
  margin-bottom: 1.5rem;
}

body.light-mode .form-intro {
  color: #666;
}

.required-star {
  color: #f06060;
}

.sub-label {
  font-weight: normal;
  font-size: 0.85rem;
  color: #999;
  margin-left: 0.25rem;
}

/* ---- Fields ---- */
#event-form label {
  display: block;
  font-weight: bold;
  margin-top: 1.1rem;
  margin-bottom: 0.35rem;
  font-size: 1rem;
}

#event-form input[type="text"],
#event-form input[type="date"],
#event-form input[type="url"],
#event-form input[type="file"],
#event-form textarea {
  display: block;
  width: 100%;
  padding: 0.7rem 0.85rem;
  font-size: 1rem;
  border: 1px solid #444;
  border-radius: 8px;
  background-color: #2a2a2a;
  color: #e0e0e0;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

#event-form input:focus,
#event-form textarea:focus {
  outline: none;
  border-color: #ffdb6e;
}

body.light-mode #event-form input[type="text"],
body.light-mode #event-form input[type="date"],
body.light-mode #event-form input[type="url"],
body.light-mode #event-form input[type="file"],
body.light-mode #event-form textarea {
  background-color: #fff;
  color: #111;
  border-color: #bbb;
}

/* ---- Divider label ---- */
.divider-label {
  text-align: center;
  color: #666;
  margin: 0.75rem 0;
  font-size: 0.9rem;
}

/* ---- Flyer preview ---- */
.flyer-preview-figure {
  margin: 1rem 0 0;
  text-align: center;
}

.flyer-preview-figure img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 2px solid #555;
}

.flyer-preview-figure figcaption {
  font-size: 0.8rem;
  color: #888;
  margin-top: 0.3rem;
}

.preview-error {
  color: #f06060;
  font-size: 0.9rem;
}

/* ---- Submit button ---- */
#submit-btn {
  display: block;
  width: 100%;
  margin-top: 1.5rem;
  padding: 0.85rem 1.5rem;
  font-size: 1.1rem;
  font-weight: bold;
  border: none;
  border-radius: 10px;
  background: #ffdb6e;
  color: #111;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

#submit-btn:hover:not(:disabled) {
  background: #ffe999;
  transform: translateY(-1px);
}

#submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ---- Status message ---- */
#form-status {
  text-align: center;
  font-weight: bold;
  min-height: 1.5rem;
  margin-top: 0.75rem;
}

#form-status.success { color: #4caf50; }
#form-status.error   { color: #f44336; }

/* ---- Back button ---- */
.back-button {
  display: inline-block;
  margin-bottom: 1.25rem;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 8px;
  background: #444;
  color: #fff;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s;
}

.back-button:hover {
  background: #666;
}

body.light-mode .back-button {
  background: #ddd;
  color: #111;
}

body.light-mode .back-button:hover {
  background: #bbb;
}
