/**
 * @file
 * Styling for the ticket registration forms.
 *
 * The childcare question on the Kontich form: one panel holding both fields,
 * with Ja/Nee as toggle buttons in the size of the other inputs. Scoped under
 * the form so it outweighs the theme's own fieldset and radio styling.
 */

.webform-submission-form .liga-opvang {
  background: #f4f2f8;
  border-radius: 10px;
  padding: 20px;
  margin: 10px 0 25px;
}
.webform-submission-form .liga-opvang fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}
.webform-submission-form .liga-opvang fieldset > legend {
  padding: 0;
  margin: 0 0 2px;
  font-size: 16px;
  font-weight: 500;
  color: #1b1f2e;
}
.webform-submission-form .liga-opvang .description {
  margin: 0 0 12px;
  font-size: 14px;
  color: #838694;
}
.webform-submission-form .liga-opvang .js-webform-radios {
  display: flex;
  gap: 10px;
}
.webform-submission-form .liga-opvang .webform-type-radio {
  position: relative;
  flex: 1 1 0;
  max-width: 160px;
  margin: 0;
}
/* Kept in the layout, not display:none, so the browser can still point at
   it when the question is left unanswered. */
.webform-submission-form .liga-opvang .webform-type-radio input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.webform-submission-form .liga-opvang .webform-type-radio label {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  width: 100%;
  height: 54px;
  margin: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  background: #fff;
  color: #1b1f2e;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.webform-submission-form .liga-opvang .webform-type-radio input:hover + label {
  border-color: #d5cfe3;
}
.webform-submission-form .liga-opvang .webform-type-radio input:checked + label {
  border-color: #3e2f5d;
  background: #3e2f5d;
  color: #fff;
}
.webform-submission-form .liga-opvang .webform-type-radio input:focus-visible + label {
  outline: 2px solid #674df0;
  outline-offset: 2px;
}
.webform-submission-form .liga-opvang .webform-type-radio input.error + label {
  border-color: #d32f2f;
}
.webform-submission-form .liga-opvang .form-item-aantal-kinderen-opvang {
  margin: 18px 0 0;
}
.webform-submission-form .liga-opvang .form-item-aantal-kinderen-opvang label {
  display: block;
}
.webform-submission-form .liga-opvang .form-item-aantal-kinderen-opvang input[type="number"] {
  max-width: 160px;
  background: #fff;
}
