/* ==========================================================================
   The partner form with conferences and speaker requests (2026-11-25, spec 2026-11-25-aicon27-speaker-requests-design.md)
   /partnerwithus/'s form card (css/modal.css, .partner-card in css/aicon27.css), split into groups — one card per
   fieldset — with a speaker section that opens for "Speaking / Demo" and "Masterclass / Trainings".
   ========================================================================== */

/* .modal__fields sets display: flex (and grid on phones), which beats the browser's own [hidden] rule: without this,
   every closed group would still show. js/main.js also disables the inputs inside, so they are not sent. */
.sf-form [hidden] { display: none !important; }

.sf-group { min-width: 0; margin: 0; }
.sf-speaker { display: flex; flex-direction: column; gap: 10px; }

/* A fieldset's legend sits on its border unless floated; floated, it is the card's first line. */
.sf-legend {
  float: left;
  width: 100%;
  padding: 0;
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--primary-light-active);
}
.sf-legend + * { clear: both; }
.sf-legend-hint {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 300;
  line-height: 18px;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--white-soft);
}

/* A group's own "what is missing" line, at its top (js/main.js initSpeakerPartnerForm). */
.sf-group-error { text-align: left; font-weight: 700; font-size: 15px; }

/* The two labelled checkboxes of the speaker group ("I am the speaker", the agreement) span the card. */
.sf-check-wide { width: 100%; }
.sf-other-speaker { display: flex; flex-direction: column; gap: 10px; }

.sf-checks-inline { flex-direction: row; flex-wrap: wrap; }
.sf-checks-inline .modal__check { flex: 1 1 140px; }

.sf-radio { border-radius: 50%; }

.sf-textarea {
  height: auto;
  min-height: 112px;
  padding: 8px 16px;
  line-height: 22px;
  resize: vertical;
}
.sf-counter {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 300;
  text-align: right;
  color: var(--grey-darker);
}

/* Greyed out like the live form's disabled button until the form is complete, yet clickable: a click says what is
   missing (js/main.js initSpeakerPartnerForm), as on /book/. */
.sf-form .modal__submit[aria-disabled="true"] {
  background: var(--grey);
  color: var(--grey-darker);
  border-color: transparent;
  cursor: not-allowed;
}
.sf-form .modal__submit[aria-disabled="true"]:hover { background: var(--grey); }

/* ---- Phones and tablets ------------------------------------------------------ */
@media (max-width: 900px) {
  /* modal.css turns .modal__fields into a two-column grid that puts the first two rows side by side (first and last
     name in the one-card form). With one card per group that would halve the wrong rows: one column instead. */
  .sf-form .modal__fields { display: flex; flex-direction: column; gap: 10px; }
  .sf-form .modal__row { grid-column: auto; }
  .sf-legend { font-size: 11px; }
}
