/* Static replacement for the Squarespace form block (Volunteer + Contact).
   Values match the computed styles of the original Squarespace form. */

.afs-form {
  font-family: Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: #000;
}

.afs-form .field-list {
  margin: 0;
  padding: 0;
}

.afs-form .form-item {
  margin: 0 0 20px;
  padding: 0;
  border: 0;
  min-width: 0;
}

.afs-form legend.title,
.afs-form label.title {
  display: block;
  padding: 0 0 4px;
  font-size: 16px;
  font-weight: 400;
  line-height: 28.8px;
}

.afs-form .afs-name-row {
  display: flex;
  gap: 0 10px;
}

.afs-form fieldset.afs-name {
  margin: 0;
}

.afs-form .afs-name-row .afs-field {
  flex: 1 1 0;
  min-width: 0;
  margin: 0 0 20px;
}

.afs-form label.caption {
  display: block;
  padding: 0 0 4px;
  font-size: 14.5px;
  line-height: 1.6;
}

.afs-form .afs-req {
  display: inline !important;
  padding: 0 !important;
  white-space: normal !important;
  margin-left: 0.3em;
  font-size: 14.5px;
  opacity: 0.75;
}

.afs-form input[type="text"],
.afs-form input[type="email"],
.afs-form input[type="tel"],
.afs-form textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 10px;
  font: inherit;
  line-height: 28.8px;
  color: #000;
  background: #fafafa;
  border: 1px solid #000;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}

.afs-form textarea {
  min-height: 100px;
  height: 100px;
  resize: vertical;
}

.afs-form input:focus,
.afs-form textarea:focus {
  outline: 2px solid #d22;
  outline-offset: 0;
}

.afs-form [aria-invalid="true"] {
  border-color: #d22;
  box-shadow: inset 0 0 0 1px #d22;
}

.afs-form .afs-field-error {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.4;
  color: #b00;
}

/* Honeypot: off-screen but still in the form so naive bots fill it */
.afs-form .afs-hp {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.afs-form .form-button-wrapper {
  margin: 0;
}

.afs-form .form-submit-button {
  display: inline-block;
  box-sizing: border-box;
  padding: 19.2px 32px;
  font-family: Poppins, Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.5;
  color: #fff;
  background: #d22;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.afs-form .form-submit-button:hover {
  opacity: 0.85;
}

.afs-form .form-submit-button[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.afs-form .afs-status {
  margin: 0 0 16px;
  padding: 12px 14px;
  font-size: 15px;
  line-height: 1.5;
  color: #7a0000;
  background: #fdecec;
  border-left: 4px solid #d22;
}

.afs-form .afs-status ul {
  margin: 6px 0 0;
  padding-left: 1.2em;
}

.afs-success {
  padding: 20px 0;
  font-family: Roboto, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.8;
}

.afs-success:focus {
  outline: none;
}

.afs-form[hidden],
.afs-form [hidden],
.afs-success[hidden] {
  display: none !important;
}
