/*
 * Base helpers the Drupal theme relied on from core (visually-hidden,
 * status messages, form errors) plus the captcha and pager basics.
 */
.visually-hidden {
  position: absolute !important;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px;
  height: 1px;
  word-wrap: normal;
}

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus-within {
  position: static !important;
  overflow: visible;
  clip: auto;
  width: auto;
  height: auto;
}

.hidden {
  display: none;
}

.form-required::after {
  content: " *";
  color: #b3261e;
}

.messages {
  margin: 1rem 0;
  padding: 14px 18px;
  border-radius: 12px;
  border-inline-start: 5px solid;
  font-weight: 500;
}

.messages--status {
  border-color: #1f8f66;
  background: #e8f6f0;
  color: #0a5c36;
}

.messages--warning {
  border-color: #c27a05;
  background: #fff6e5;
  color: #6b4302;
}

.messages--error {
  border-color: #b3261e;
  background: #fdecea;
  color: #7a1712;
}

.messages ul {
  margin: 0;
  padding-inline-start: 1.2rem;
}

.form-item--error-message {
  margin-top: 6px;
  color: #b3261e;
  font-size: .85rem;
}

input.error,
select.error,
textarea.error {
  border-color: #b3261e !important;
}

.description,
.webform-element-description {
  margin-top: 4px;
  color: #6b7480;
  font-size: .85rem;
}

/* Captcha */
.captcha {
  padding: 16px;
  border: 1px solid #e3e9ee;
  border-radius: 12px;
}

.captcha__title {
  font-size: 1rem;
  font-weight: 600;
}

.captcha__image-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.captcha__image-wrapper img {
  border-radius: 8px;
  border: 1px solid #e3e9ee;
}

.reload-captcha {
  font-size: .85rem;
}

/* Webform sections / radios / checkbox */
.webform-section-title {
  margin: 0 0 12px;
  font-size: 1.15rem;
}

.webform-section-wrapper {
  display: grid;
  gap: 18px;
}

.form-type-radio,
.form-type-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.form-type-radio label,
.form-type-checkbox label {
  margin: 0 !important;
  font-weight: 400 !important;
}

fieldset.form-composite {
  border: 0;
  padding: 0;
  margin: 0;
}

fieldset.form-composite legend {
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.webform-confirmation {
  padding: 18px 20px;
  border-radius: 12px;
  background: #e8f6f0;
  color: #0a5c36;
  font-weight: 600;
}

.webform-confirmation__back {
  display: inline-block;
  margin-top: 10px;
  font-weight: 500;
}

/* Static pages */
.jada-static-page__body {
  padding: 1.5rem 0 3rem;
  line-height: 1.9;
}

/* Contact form */
.contact-form {
  max-width: 720px;
  padding: 1rem 0 3rem;
}

.contact-form .form-item {
  margin-bottom: 1rem;
}

.contact-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #cbd3de;
  border-radius: 10px;
  background: #f8fafc;
}

.contact-form .form-submit {
  padding: 10px 28px;
  border: 0;
  background: #0f4066;
  color: #fff;
  font-weight: 600;
}

/* Login */
.jada-login {
  max-width: 420px;
  margin: 2rem auto 4rem;
}

/* Pager (outside the listing layout too) */
.pager__items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding: 0;
  margin: 2rem 0 0;
  list-style: none;
}

.pager__item a {
  display: inline-block;
  min-width: 40px;
  padding: 8px 12px;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
}

.pager__item.is-active a {
  background: #0f4066;
  color: #fff;
}
