/* ==========================================================================
   M-U-S-I-C — plugin-rendered components
   Owned by m-u-s-i-c-core (shortcodes): [music_cohort_cards],
   [music_contact_form], [music_starter_kit_form]. Design tokens mirror the 3.0
   inline styles (Camp dates band + Contact/StarterKit cards).
   ========================================================================== */

/* --------------------------------------------------------------------------
   Cohort date cards (Camp "Upcoming dates" idiom — dark band context)
   -------------------------------------------------------------------------- */

.music-cohort-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 12px;
}

.music-cohort-card {
  background: #243047;
  border-radius: 16px;
  border-top: 3px solid #33b5e5;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.music-cohort-card--intro { border-top-color: #33b5e5; }
.music-cohort-card--intensive { border-top-color: #ffb000; }
.music-cohort-card--masterclass { border-top-color: #ff5a5f; }
.music-cohort-card--mastermind { border-top-color: #2447c6; }

.music-cohort-card__tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #33b5e5;
}

.music-cohort-card--intro .music-cohort-card__tag { color: #33b5e5; }
.music-cohort-card--intensive .music-cohort-card__tag { color: #ffb000; }
.music-cohort-card--masterclass .music-cohort-card__tag { color: #ff5a5f; }
.music-cohort-card--mastermind .music-cohort-card__tag { color: #8ba3f0; }

.music-cohort-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.music-cohort-card__label {
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
  margin: 0;
}

.music-cohort-card__seats {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 999px;
  padding: 5px 10px;
  white-space: nowrap;
}

.music-cohort-card__seats--open { color: #0b7d58; background: #ddf7ec; }
.music-cohort-card__seats--low { color: #9a6200; background: #fff1cc; }
.music-cohort-card__seats--wait { color: #d7374f; background: #ffe6e7; }

.music-cohort-card__long {
  font-size: 13px;
  color: #cdd4df;
  line-height: 1.5;
}

.music-cohort-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 2px;
}

.music-cohort-card__price {
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}

.music-cohort-card__cta {
  display: inline-block;
  background: #ffffff;
  color: #111827;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13.5px;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   A deck holding more than one class, split by class.
   Six cards in one auto-fit grid meant the fourth card on row one belonged to
   a different program than the three beside it — the reader had to check every
   eyebrow to know what they were looking at. Each class now gets its own
   heading and its own grid; the per-card eyebrow drops away because the
   heading is doing that job.
   -------------------------------------------------------------------------- */

.music-cohort-cards--split {
  display: flex;
  flex-direction: column;
  gap: clamp(26px, 3.4vw, 38px);
}

.music-cohort-group__title {
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: clamp(15px, 1.7vw, 17px);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin: 0 0 12px;
  padding: 0 0 10px;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

/* The rule under the heading carries the class's own colour, so the group and
   its cards' top borders read as one object. */
.music-cohort-group--intro .music-cohort-group__title { border-bottom-color: rgba(51, 181, 229, 0.5); }
.music-cohort-group--intensive .music-cohort-group__title { border-bottom-color: rgba(255, 176, 0, 0.5); }
.music-cohort-group--masterclass .music-cohort-group__title { border-bottom-color: rgba(255, 90, 95, 0.5); }
.music-cohort-group--mastermind .music-cohort-group__title { border-bottom-color: rgba(36, 71, 198, 0.6); }

.music-cohort-group__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 12px;
}

/* On a light section the heading is ink on cream, not white on navy. */
.music-cohort-cards--light .music-cohort-group__title {
  color: #111827;
  border-bottom-color: #e8ecf2;
}

.music-cohort-cards--empty {
  grid-template-columns: 1fr;
}

.music-cohort-cards__none {
  margin: 0;
  padding: 20px;
  border-radius: 16px;
  background: #243047;
  color: #cdd4df;
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   Cohort date cards — LIGHT variant ([music_cohort_cards variant="light"])
   The MasterClass "Upcoming cohorts" treatment: a cream card on a white
   section, no program eyebrow, two information lines (the long date line,
   then "{time} · {price}"), and a coral Enroll button.
   -------------------------------------------------------------------------- */

.music-cohort-card--light {
  background: #fff8ef;
  border: 1px solid #e8ecf2;
  border-top: 1px solid #e8ecf2;
  border-radius: 16px;
  padding: 20px;
  gap: 10px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.music-cohort-card--light .music-cohort-card__label {
  font-size: 19px;
  color: #111827;
}

.music-cohort-card--light .music-cohort-card__long {
  font-size: 13.5px;
  color: #516078;
  line-height: 1.5;
}

.music-cohort-card--light .music-cohort-card__meta {
  font-size: 13px;
  color: #8b97aa;
}

.music-cohort-card--light .music-cohort-card__foot {
  margin-top: 4px;
}

.music-cohort-card--light .music-cohort-card__cta {
  background: #ff5a5f;
  color: #ffffff;
  padding: 11px 20px;
  font-size: 14px;
}

.music-cohort-cards--light .music-cohort-cards__none {
  background: #fff8ef;
  border: 1px solid #e8ecf2;
  color: #516078;
}

/* --------------------------------------------------------------------------
   Forms (Contact + Starter Kit cards)
   -------------------------------------------------------------------------- */

.music-form-card {
  background: #ffffff;
  border: 1px solid #e8ecf2;
  border-radius: 16px;
  padding: clamp(22px, 3.5vw, 32px);
  display: flex;
  flex-direction: column;
}

.music-form-card--kit {
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.06);
}

.music-form-card form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0;
}

.music-form-card--kit form {
  gap: 16px;
}

.music-form-card form[hidden],
.music-form__success[hidden],
.music-form__error[hidden] {
  display: none;
}

.music-form__label,
.music-field label {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.music-form__label--kit {
  font-size: 15px;
}

.music-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.music-form__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.music-in {
  padding: 13px 15px;
  border: 1.5px solid #cdd4df;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  color: #111827;
  background: #ffffff;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}

.music-in:focus {
  border-color: #2447c6;
}

textarea.music-in {
  resize: vertical;
  line-height: 1.5;
}

.music-in--lg {
  padding: 14px 16px;
  font-size: 16px;
}

/* Topic pills — radio inputs styled as the Contact page's pressed pills. */

.music-form__topics {
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-inline-size: 0;
}

.music-form__topics legend {
  padding: 0;
}

.music-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.music-pill input {
  position: absolute;
  width: 1px;
  height: 1px;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.music-pill span {
  display: inline-flex;
  align-items: center;
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1.5px solid #cdd4df;
  background: #ffffff;
  color: #243047;
  cursor: pointer;
  min-height: 44px;
  box-sizing: border-box;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.music-pill input:checked + span {
  background: #111827;
  border-color: #111827;
  color: #ffffff;
}

.music-pill input:focus-visible + span {
  outline: 2px solid #2447c6;
  outline-offset: 2px;
}

/* Buttons */

.music-btn {
  border: none;
  border-radius: 8px;
  padding: 15px 26px;
  font-family: "Inter", Arial, sans-serif;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.music-btn--cobalt {
  background: #2447c6;
  color: #ffffff;
  align-self: flex-start;
}

.music-btn--green {
  background: #19a974;
  color: #ffffff;
  padding: 15px 24px;
}

/* Error + success states */

.music-form__error {
  font-size: 13.5px;
  color: #d7374f;
  font-weight: 500;
}

.music-form__success {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 8px 0;
}

.music-form__check {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ddf7ec;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #0b7d58;
  font-weight: 700;
}

.music-form__success-title {
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 21px;
  font-weight: 700;
  color: #111827;
}

.music-form__success-sub {
  font-size: 15px;
  color: #516078;
  line-height: 1.5;
}

.music-form__fine {
  font-size: 12.5px;
  color: #8b97aa;
  line-height: 1.5;
}

/* Honeypot — visually gone, still in the accessibility-hidden DOM for bots. */

.music-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: hidden;
}
