/* Phat Employment Applications */
.pea-wrap {
  --pea-ink: var(--pmg-ink, #182321);
  --pea-muted: var(--pmg-muted, #60706d);
  --pea-brand: var(--pmg-brand, #0b4f49);
  --pea-brand-dark: var(--pmg-brand-dark, #073a36);
  --pea-deep: var(--pmg-brand-deep, #052d2a);
  --pea-accent: var(--pmg-accent, #d5ad62);
  --pea-soft: var(--pmg-surface-soft, #f4f1ea);
  --pea-tint: var(--pmg-surface-tint, #eaf1ef);
  --pea-border: var(--pmg-border, #dfe6e3);
  --pea-radius: var(--pmg-radius, 18px);
  --pea-radius-lg: var(--pmg-radius-lg, 28px);
  --pea-shadow: var(--pmg-shadow-sm, 0 12px 34px rgba(7, 45, 41, 0.1));
  color: var(--pea-ink);
}

.pea-intro {
  padding: 1rem 1.1rem;
  margin-bottom: 1.25rem;
  border-left: 4px solid var(--pea-accent);
  border-radius: 0 12px 12px 0;
  background: var(--pea-tint);
}

.pea-intro p { margin: 0; }

.pea-notice {
  padding: 1rem 1.1rem;
  margin-bottom: 1.25rem;
  border-radius: 12px;
  font-size: 0.95rem;
}
.pea-notice strong { display: block; margin-bottom: 0.25rem; }
.pea-reference { display: block; margin-top: 0.45rem; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.88rem; font-weight: 700; }
.pea-notice ul { margin: 0.6rem 0 0 1.2rem; }
.pea-notice--success { color: #14543c; border: 1px solid #a8dbc4; background: #e5f5ed; }
.pea-notice--error { color: #772f2b; border: 1px solid #e8b7b2; background: #f9e9e7; }

.pea-form { display: grid; gap: 1.25rem; }
.pea-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.pea-section {
  min-width: 0;
  padding: clamp(1.1rem, 3vw, 1.6rem);
  border: 1px solid var(--pea-border);
  border-radius: var(--pea-radius);
  background: #fff;
  box-shadow: var(--pea-shadow);
}

.pea-section legend {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0 0.4rem;
  color: var(--pea-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  font-weight: 700;
}

.pea-section legend span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: var(--pea-deep);
  background: var(--pea-accent);
  font-family: inherit;
  font-size: 0.88rem;
}

.pea-section-help {
  margin: 0 0 1rem;
  color: var(--pea-muted);
  font-size: 0.9rem;
}

.pea-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.pea-field--wide { grid-column: 1 / -1; }
.pea-field--conditional[hidden] { display: none; }

.pea-field label,
.pea-label {
  display: block;
  margin-bottom: 0.42rem;
  color: #364643;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.pea-field label > span,
.pea-label > span { color: #9c352f; }

.pea-field input,
.pea-field select,
.pea-field textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  padding: 0.72rem 0.85rem;
  border: 1px solid #ccd8d4;
  border-radius: 10px;
  color: var(--pea-ink);
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(7, 45, 41, 0.04);
  font: inherit;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.pea-field textarea { min-height: 145px; resize: vertical; }
.pea-field input[type="file"] { padding: 0.6rem; background: var(--pea-soft); }
.pea-field input:focus,
.pea-field select:focus,
.pea-field textarea:focus {
  border-color: var(--pea-brand);
  outline: 0;
  box-shadow: 0 0 0 4px rgba(11, 79, 73, 0.11);
}
.pea-field input[readonly] { color: var(--pea-muted); background: var(--pea-soft); }
.pea-field small { display: block; margin-top: 0.42rem; color: var(--pea-muted); font-size: 0.78rem; }
.pea-field.has-error input,
.pea-field.has-error select,
.pea-field.has-error textarea { border-color: #a33b34; }
.pea-error { display: block; margin-top: 0.35rem; color: #8f332e; font-size: 0.8rem; font-weight: 700; }

.pea-check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.55rem; }
.pea-check {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.75rem;
  border: 1px solid var(--pea-border);
  border-radius: 10px;
  background: var(--pea-soft);
  font-size: 0.9rem;
  cursor: pointer;
}
.pea-check input { width: 18px; height: 18px; margin: 0.1rem 0 0; accent-color: var(--pea-brand); flex: 0 0 auto; }
.pea-check.has-error { border-color: #a33b34; background: #fff3f1; }

.pea-subsection + .pea-subsection { padding-top: 1.25rem; margin-top: 1.25rem; border-top: 1px solid var(--pea-border); }
.pea-subsection h3,
.pea-reference-card h3 { margin: 0 0 0.85rem; color: var(--pea-brand-dark); font-size: 1.05rem; }

.pea-reference-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.pea-reference-card { display: grid; gap: 0.85rem; padding: 1rem; border: 1px solid var(--pea-border); border-radius: 12px; background: var(--pea-tint); }
.pea-reference-card .pea-field { min-width: 0; }

.pea-certifications { display: grid; gap: 0.75rem; }
.pea-signature-grid { margin-top: 1rem; }
.pea-equal-opportunity { padding: 0.9rem 1rem; margin: 0; border: 1px solid var(--pea-border); border-radius: 10px; color: var(--pea-ink); background: #fff; font-size: 0.84rem; }
.pea-privacy-note { padding: 0.9rem 1rem; margin: 0; border-radius: 10px; color: var(--pea-muted); background: var(--pea-soft); font-size: 0.8rem; }

.pea-submit-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.pea-submit {
  min-height: 50px;
  padding: 0.8rem 1.25rem;
  border: 0;
  border-radius: 999px;
  color: var(--pea-deep);
  background: var(--pea-accent);
  box-shadow: 0 10px 24px rgba(184, 135, 53, 0.22);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}
.pea-submit:hover { transform: translateY(-2px); background: #e1bd76; box-shadow: 0 14px 30px rgba(184, 135, 53, 0.28); }
.pea-submit:focus-visible { outline: 3px solid rgba(11, 79, 73, 0.35); outline-offset: 3px; }
.pea-submit[disabled] { opacity: 0.65; cursor: wait; transform: none; }
.pea-required-note { color: var(--pea-muted); font-size: 0.78rem; }
.pea-required-note span { color: #9c352f; }

@media (max-width: 700px) {
  .pea-grid,
  .pea-reference-grid { grid-template-columns: 1fr; }
  .pea-field--wide { grid-column: auto; }
  .pea-check-grid { grid-template-columns: 1fr; }
  .pea-submit-row { align-items: stretch; }
  .pea-submit { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .pea-submit,
  .pea-field input,
  .pea-field select,
  .pea-field textarea { transition: none; }
}

/* Give the generated page a comfortable width in the Phat Management theme. */
.pea-application-page .pmg-content-width {
  width: min(calc(100% - 2rem), 1000px);
}
