/* Styling for the PHP form replacements, using the site's brand tokens. */
.php-form-wrap {
  --f-blue: var(--brandboards-blue, #1b51ab);
  --f-sky: var(--brandboards-sky_blue, #76bce0);
  --f-night: var(--brandboards-night, #242730);
  --f-line: #cfd6e4;
  --f-err: #c0392b;
  font-family: var(--contentfont, 'Sora'), system-ui, sans-serif;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}

.php-form {
  display: grid;
  gap: 18px;
}

.php-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.php-label {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--f-night);
  letter-spacing: 0.02em;
}

.php-req {
  color: var(--f-err);
}

.php-input {
  font: inherit;
  color: var(--f-night);
  background: #fff;
  border: 1px solid var(--f-line);
  border-radius: 8px;
  padding: 13px 14px;
  width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.php-input::placeholder {
  color: #8c8c8c;
}

.php-input:focus,
.php-input:focus-visible {
  outline: none;
  border-color: var(--f-blue);
  box-shadow: 0 0 0 3px rgba(27, 81, 171, 0.15);
}

textarea.php-input {
  resize: vertical;
  min-height: 110px;
}

select.php-input {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23242730' d='M4 6l4 4 4-4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 38px;
}

.php-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--f-night);
  cursor: pointer;
}

.php-check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--f-blue);
  flex: none;
}

.php-check a {
  color: var(--f-blue);
  text-decoration: underline;
}

.php-submit {
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #fff;
  background: var(--f-blue);
  border: 0;
  border-radius: 8px;
  padding: 16px 28px;
  cursor: pointer;
  transition: background .15s ease, transform .05s ease;
}

.php-submit:hover {
  background: #17458f;
}

.php-submit:active {
  transform: translateY(1px);
}

.php-submit:focus-visible {
  outline: 3px solid var(--f-sky);
  outline-offset: 2px;
}

.php-field.has-error .php-input {
  border-color: var(--f-err);
}

.php-err {
  color: var(--f-err);
  font-size: 0.85rem;
}

.php-form-success,
.php-form-error {
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 18px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.php-form-success {
  background: #e8f5ec;
  border: 1px solid #a9d9bb;
  color: #1c6b3a;
}

.php-form-error {
  background: #fdecea;
  border: 1px solid #f1b0aa;
  color: var(--f-err);
}

/* Honeypot: kept in the layout but out of sight and out of the tab order. */
.php-form-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 600px) {
  .php-submit {
    width: 100%;
  }
}
