/* Interested Umpires contact form (/join/) */
/* Scoped under #interest-form so it can't leak into theme styles. */

#interest-form {
  max-width: 640px;
  margin: 1.5em 0;
}

#interest-form .ct-field {
  margin-bottom: 1.1em;
}

#interest-form .ct-row {
  display: flex;
  gap: 1em;
  flex-wrap: wrap;
}

#interest-form .ct-row .ct-field {
  flex: 1 1 220px;
  margin-bottom: 1.1em;
}

#interest-form label,
#interest-form .ct-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35em;
  line-height: 1.3;
}

#interest-form .ct-help {
  font-size: 0.85em;
  font-style: italic;
  opacity: 0.8;
  margin: 0 0 0.4em;
}

#interest-form .ct-req {
  color: #c0392b;
}

#interest-form .ct-optional {
  font-weight: 400;
  opacity: 0.7;
  font-size: 0.9em;
}

#interest-form input[type="text"],
#interest-form input[type="email"],
#interest-form input[type="tel"],
#interest-form select,
#interest-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.55em 0.7em;
  font-size: 1em;
  font-family: inherit;
  border: 1px solid #adb5bd;
  border-radius: 4px;
  background: #fff;
  color: #252a34;
}

#interest-form textarea {
  resize: vertical;
}

#interest-form input:focus,
#interest-form select:focus,
#interest-form textarea:focus {
  outline: none;
  border-color: #2f6fab;
  box-shadow: 0 0 0 2px rgba(47, 111, 171, 0.25);
}

/* Mark invalid fields after a submit attempt */
#interest-form .ct-invalid {
  border-color: #c0392b;
  box-shadow: 0 0 0 2px rgba(192, 57, 43, 0.2);
}

#interest-form .ct-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em 1.25em;
}

#interest-form .ct-checks label {
  display: flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 400;
  margin-bottom: 0;
  cursor: pointer;
}

#interest-form .ct-checks input[type="checkbox"] {
  width: auto;
  margin: 0;
}

#interest-form .ct-checks.ct-invalid {
  outline: 2px solid rgba(192, 57, 43, 0.4);
  outline-offset: 4px;
  border-radius: 4px;
}

#interest-form button[type="submit"] {
  margin-top: 0.5em;
}

#interest-form button[disabled] {
  opacity: 0.6;
  cursor: progress;
}

#interest-form .ct-error {
  color: #c0392b;
  font-weight: 600;
  margin-top: 0.75em;
}

#interest-success {
  border: 1px solid #2e7d32;
  background: #eaf6ea;
  color: #1b3d1c;
  border-radius: 6px;
  padding: 1.25em 1.5em;
  margin: 1.5em 0;
}

#interest-success a {
  color: inherit;
  text-decoration: underline;
}
