/* ── Form title ── */
.form-title-heading {
  font-size: 32px;
  font-weight: 700;
  color: #2C3967;
  margin-bottom: 24px;
}

/* ── Section headings ── */
.webform-section-title {
  font-size: 20px !important;
  font-weight: 600 !important;
  color: #2C3967 !important;
  margin-bottom: 12px !important;
  border-bottom: 2px solid #B3CEE7 !important;
  padding-bottom: 8px !important;
}

/* ── Field labels ── */
.js-form-item label,
.js-form-item legend,
.js-form-item .fieldset-legend {
  font-size: 16px !important;
  font-weight: 500 !important;
  color: #2C3967 !important;
  font-family: inherit !important;
  margin-bottom: 6px !important;
  background-color: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
  display: block !important;
  width: 100% !important;
  letter-spacing: normal !important;
}

/* ── Spacing between fields ── */
.js-form-item {
  margin-bottom: 16px !important;
}

/* ── Text / select / textarea layout ── */
.js-form-item:not(.js-form-type-radio):not(.js-form-type-checkbox) {
  display: flex !important;
  flex-direction: column !important;
}

.js-form-item:not(.js-form-type-radio):not(.js-form-type-checkbox) label {
  display: block !important;
  width: 100% !important;
  margin-bottom: 6px !important;
}

.js-form-item:not(.js-form-type-radio):not(.js-form-type-checkbox) input,
.js-form-item:not(.js-form-type-radio):not(.js-form-type-checkbox) select,
.js-form-item:not(.js-form-type-radio):not(.js-form-type-checkbox) textarea {
  display: block !important;
  width: 100% !important;
  margin-top: 4px !important;
}

/* ── Rounded text inputs ── */
input[type="text"],
input[type="number"],
input[type="email"],
input[type="tel"],
textarea,
select {
  border-radius: 8px !important;
  border: 1px solid #B3CEE7 !important;
  padding: 8px 12px !important;
}

/* ── Input focus state ── */
input[type="text"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
  border-color: #1848B5 !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(24,72,181,0.1) !important;
}

/* ── Radio and checkbox alignment ── */
.js-form-type-radio,
.js-form-type-checkbox {
  display: grid !important;
  grid-template-columns: 20px 1fr !important;
  align-items: center !important;
  gap: 8px !important;
  margin-bottom: 8px !important;
}

.js-form-type-radio input[type="radio"],
.js-form-type-checkbox input[type="checkbox"] {
  width: 16px !important;
  height: 16px !important;
  margin: 0 !important;
  flex: none !important;
}

/* ── Radio and checkbox labels ── */
.js-form-type-radio label,
.js-form-type-checkbox label {
  font-size: 16px !important;
  font-weight: 400 !important;
  color: #2C3967 !important;
  background-color: transparent !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.4 !important;
}

/* ── Description / helper text ── */
.js-form-item .description,
.js-form-item .form-item--description {
  font-size: 13px !important;
  color: #6b7280 !important;
  font-weight: 400 !important;
  margin-top: 4px !important;
}