/* ------------------------------------------------------------
   4M brand overrides for Pico CSS
   Pico reads these --pico-* variables, so changing them here
   re-colors every button, input focus ring, link, etc.
   Pico sets its colors on ":root:not([data-theme=dark])", so we
   use the same selector — otherwise Pico's defaults win.
   ------------------------------------------------------------ */
:root:not([data-theme=dark]),
[data-theme=light] {
  --brand-blue: #2C328D;   /* Reflex Blue */
  --brand-cyan: #00BFF2;   /* Clean Cyan  */
  --brand-gray: #797D82;   /* Cool Gray   */

  --pico-font-family: Arial, Helvetica, sans-serif;
  --pico-primary: var(--brand-blue);
  --pico-primary-background: var(--brand-blue);
  --pico-primary-border: var(--brand-blue);
  --pico-primary-hover: #1F2470;
  --pico-primary-hover-background: #1F2470;
  --pico-primary-focus: rgba(0, 191, 242, 0.35);   /* cyan focus ring */
  --pico-form-element-focus-color: var(--brand-cyan);
}

/* Force light theme — the form is branded on white */
html { color-scheme: light; }
body { background: #fff; }

/* Top bar with the logo */
.brand-bar {
  border-bottom: 4px solid var(--brand-cyan);
  padding: 0.75rem 1rem;
  text-align: center;
  background: #fff;
}
.logo { height: 44px; width: auto; }

main.container {
  max-width: 560px;           /* keeps the form phone-shaped on desktop */
  padding-top: 1.5rem;
  padding-bottom: 3rem;
}

h1, h2 {
  font-family: "Arial Black", Arial, sans-serif;
  color: var(--brand-blue);
  text-transform: uppercase;
  font-style: italic;
  letter-spacing: -0.01em;
}
h1 { font-size: 1.6rem; }
hgroup p { color: var(--brand-gray); }

/* Heading + team member photo, side by side.
   The photo sits on the bottom edge so she "stands" on the blue line. */
.hero {
  display: grid;
  grid-template-columns: 1fr 38%;
  align-items: end;
  gap: 0.5rem;
  background: linear-gradient(180deg, #fff 0%, #EEF1FB 100%);
  border-bottom: 4px solid var(--brand-blue);
  border-radius: 8px 8px 0 0;
  padding: 1rem 0 0 1rem;
  margin-bottom: 1.5rem;
  overflow: hidden;
}
.hero hgroup { align-self: center; margin: 0; padding-bottom: 1rem; min-width: 0; }
.hero-photo {
  display: block;
  width: 100%;
  max-width: 200px;
  height: auto;
  justify-self: end;
}
@media (max-width: 380px) {
  h1 { font-size: 1.35rem; }
}

fieldset { margin-bottom: 0.5rem; }
.optional { color: var(--brand-gray); font-weight: normal; font-size: 0.9em; }

/* "Other" text box sits snug under its dropdown */
.other-input {
  margin-top: calc(var(--pico-spacing) * -0.5);
  border-left: 4px solid var(--brand-cyan);
}

/* "Employee #12345 · Change" strip above the form */
.employee-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #F0F2FA;
  border-left: 4px solid var(--brand-blue);
  padding: 0.6rem 0.9rem;
  border-radius: 6px;
}

/* Big, thumb-friendly submit buttons */
button[type="submit"] {
  width: 100%;
  padding: 0.9rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Photo thumbnails */
.photo-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.photo-preview img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid var(--brand-cyan);
}

/* Success + error messages */
.result {
  text-align: center;
  padding: 2rem 1rem;
  border-top: 4px solid var(--brand-cyan);
}
.error {
  color: #B00020;
  background: #FDECEE;
  padding: 0.75rem 1rem;
  border-radius: 6px;
}
