/* ==========================================================================
   Auditions page (page-auditions.php). Uses tokens + components from looc-ui.css.
   ========================================================================== */

/* Editor-only preview bar (?auditions=open|closed) */
.looc-auditions-preview {
  padding: 10px var(--looc-gutter);
  background: var(--looc-gold);
  color: #1a1300;
  font-size: 14px;
  text-align: center;
}
.looc-auditions-preview a { color: #1a1300 !important; font-weight: 700; text-decoration: underline; }

/* ---------- Header + status ---------- */
.looc-auditions-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0 0;
  padding: 9px 18px;
  border: 1px solid var(--looc-line-2);
  border-radius: 999px;
  background: var(--looc-surface);
  color: var(--looc-muted);
  font-size: 15px !important;
  font-weight: 600;
}
.looc-auditions-status.is-open { border-color: rgba(252, 159, 19, 0.6); color: var(--looc-ink); background: rgba(252, 159, 19, 0.1); }
.looc-auditions-status__dot { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--looc-dim); flex: 0 0 auto; }
.looc-auditions-status.is-open .looc-auditions-status__dot { background: var(--looc-gold); }
.looc-auditions-status.is-open .looc-auditions-status__dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid var(--looc-gold);
  opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .looc-auditions-status.is-open .looc-auditions-status__dot::after { animation: looc-ping 1.8s ease-out infinite; }
}
@keyframes looc-ping { from { transform: scale(0.6); opacity: 0.9; } to { transform: scale(1.8); opacity: 0; } }

/* ---------- Details + aside ---------- */
.looc-auditions-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.looc-auditions-details { min-width: 0; }
.looc-auditions-details > :first-child { margin-top: 0; }
.looc-auditions-details h2 { font-size: clamp(24px, 3vw, 30px); }
.looc-auditions-details h3 {
  margin-top: 32px;
  color: var(--looc-gold-soft) !important;
  font-family: var(--looc-font-body) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.looc-auditions-details .has-text-align-center { text-align: left; }
.looc-auditions-details ul { list-style: none; padding: 0; }
.looc-auditions-details li { position: relative; padding-left: 22px; margin-bottom: 8px; }
.looc-auditions-details li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 7px; height: 7px; border-radius: 50%; background: var(--looc-gold); }

.looc-auditions-aside { position: sticky; top: calc(var(--looc-nav-h) + 20px); padding: 28px; overflow: visible; }
.looc-auditions-aside__icon {
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 16px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffd58a, var(--looc-gold) 60%, #c97300);
  color: var(--looc-navy-950); font-size: 20px;
  box-shadow: 0 0 0 6px rgba(252, 159, 19, 0.12);
}
.is-closed .looc-auditions-aside__icon { background: var(--looc-navy-600); color: var(--looc-gold-soft); box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.05); }
.looc-auditions-aside__title { font-size: 24px !important; margin: 0 0 8px !important; }
.looc-auditions-aside p { margin: 0 0 18px; color: var(--looc-muted); font-size: 15px; }
.looc-auditions-aside__label { color: var(--looc-gold-soft); font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 10px; }
.looc-auditions-aside__list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 8px; color: var(--looc-body); font-size: 15px; }
.looc-auditions-aside__list li { display: flex; align-items: baseline; gap: 10px; }
.looc-auditions-aside__list i { color: var(--looc-gold); }
.looc-auditions-aside__ctas { display: grid; gap: 10px; }

/* ---------- Form panel (Contact Form 7) ---------- */
/* Selectors include ".wpcf7" to outrank the theme's Bootstrap form styles (.wpcf7 .wpcf7-form-control, .wpcf7 input[type=submit]). */
.looc-auditions-form-section { scroll-margin-top: var(--looc-nav-h); }
.looc-auditions-form { max-width: 820px; margin: 0 auto; padding: clamp(24px, 4vw, 44px); overflow: visible; }
.looc-auditions-form__head { text-align: center; margin-bottom: 28px; }
.looc-auditions-form__title { font-size: clamp(26px, 3.4vw, 34px) !important; margin: 8px 0 8px !important; }
.looc-auditions-form__head p { margin: 0; color: var(--looc-muted); font-size: 15px; }
.looc-auditions-form__fine { margin: 18px 0 0; color: var(--looc-dim); font-size: 12px; text-align: center; }

/* CF7 puts every field in one <p>, separated by <br>; lay the fields out as a grid instead. */
.looc-auditions-form .wpcf7-form > p { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; margin: 0 0 18px; }
.looc-auditions-form .wpcf7-form br { display: none; }
.looc-auditions-form .wpcf7-form label { display: grid; gap: 6px; margin: 0; color: var(--looc-body); font-size: 14px; font-weight: 600; }
.looc-auditions-form .wpcf7-form label:has(textarea),
.looc-auditions-form .wpcf7-form > p > .wpcf7-form-control-wrap,
.looc-auditions-form .wpcf7-form > p > .wpcf7-submit,
.looc-auditions-form .wpcf7-form > p > input[type="submit"] { grid-column: 1 / -1; }
.looc-auditions-form .wpcf7-form-control-wrap { display: block; }
.looc-auditions-form .wpcf7 input[type="text"],
.looc-auditions-form .wpcf7 input[type="email"],
.looc-auditions-form .wpcf7 input[type="url"],
.looc-auditions-form .wpcf7 input[type="tel"],
.looc-auditions-form .wpcf7 select,
.looc-auditions-form .wpcf7 textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--looc-line-2);
  border-radius: var(--looc-radius-sm);
  background: rgba(255, 255, 255, 0.06);
  color: var(--looc-ink);
  height: auto;
  min-height: 46px;
  font: inherit;
  font-weight: 400;
  line-height: 1.4;
}
.looc-auditions-form .wpcf7 select option { color: #111; }
.looc-auditions-form .wpcf7 textarea { min-height: 120px; resize: vertical; }
.looc-auditions-form .wpcf7 input::placeholder, .looc-auditions-form .wpcf7 textarea::placeholder { color: var(--looc-dim); }
.looc-auditions-form .wpcf7 input:focus, .looc-auditions-form .wpcf7 select:focus, .looc-auditions-form .wpcf7 textarea:focus {
  outline: none; border-color: var(--looc-gold); box-shadow: 0 0 0 3px rgba(252, 159, 19, 0.25);
}
/* File uploads */
.looc-auditions-form .wpcf7 input[type="file"] {
  width: 100%;
  padding: 10px;
  border: 1px dashed var(--looc-line-2);
  border-radius: var(--looc-radius-sm);
  background: rgba(255, 255, 255, 0.03);
  color: var(--looc-muted);
  font: inherit;
  height: auto;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  overflow: visible;
  cursor: pointer;
}
.looc-auditions-form .wpcf7 input[type="file"]:hover { border-color: var(--looc-gold); }
.looc-auditions-form .wpcf7 input[type="file"]::file-selector-button {
  margin-right: 12px; padding: 7px 14px; border: 0; border-radius: 999px;
  background: var(--looc-gold); color: #1a1300; font: inherit; font-weight: 700; cursor: pointer;
}
/* Checkboxes */
.looc-auditions-form .wpcf7-checkbox { display: grid; gap: 10px; }
.looc-auditions-form .wpcf7-list-item { display: flex; align-items: flex-start; gap: 10px; margin: 0; color: var(--looc-body); font-size: 15px; }
.looc-auditions-form .wpcf7-list-item-label { color: var(--looc-body); font-weight: 400; }
.looc-auditions-form .wpcf7 .wpcf7-list-item input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 3px; accent-color: var(--looc-gold); }
.looc-auditions-form .wpcf7-list-item label { display: flex; gap: 10px; font-weight: 400; }
/* Submit */
.looc-auditions-form .wpcf7 input.wpcf7-submit {
  justify-self: center;
  width: auto;
  min-width: 240px;
  height: 52px;
  margin-top: 8px;
  padding: 0 32px;
  border: 0;
  border-radius: 999px;
  background: var(--looc-gold);
  color: #1a1300 !important;
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s, transform 0.15s;
}
.looc-auditions-form .wpcf7 input.wpcf7-submit:hover { background: var(--looc-gold-hover); transform: translateY(-1px); }
.looc-auditions-form .wpcf7-spinner { margin: 0 auto; }
/* Messages */
.looc-auditions-form .wpcf7-not-valid-tip { margin-top: 4px; color: #ff9b8a; font-size: 13px; font-weight: 600; }
.looc-auditions-form .wpcf7-response-output {
  margin: 18px 0 0 !important; padding: 12px 16px !important; border-radius: var(--looc-radius-sm);
  border: 1px solid var(--looc-line-2) !important; color: var(--looc-ink); font-size: 15px; text-align: center;
}
.looc-auditions-form .sent .wpcf7-response-output { border-color: var(--looc-gold) !important; background: rgba(252, 159, 19, 0.1); }
.looc-auditions-form .invalid .wpcf7-response-output,
.looc-auditions-form .failed .wpcf7-response-output { border-color: #ff9b8a !important; }

@media (max-width: 960px) {
  .looc-auditions-grid { grid-template-columns: minmax(0, 1fr); }
  .looc-auditions-aside { position: static; }
}
@media (max-width: 640px) {
  .looc-auditions-form .wpcf7-form > p { grid-template-columns: minmax(0, 1fr); }
  .looc-auditions-form .wpcf7 input.wpcf7-submit { width: 100%; min-width: 0; }
}
