/* Monarch Systems: "Work with us" popup. Shared by every page; loaded with assets/wwu.js. */

.wwu {
  --wwu-navy: var(--navy, #0a1628);
  --wwu-navy-2: var(--navy-2, #0d1d38);
  --wwu-silver: var(--silver, #a8b8cc);
  --wwu-silver-lt: var(--silver-lt, #c4d2e0);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
}
.wwu *, .wwu *::before, .wwu *::after { box-sizing: border-box; margin: 0; }

.wwu {
  margin: auto;
  padding: 0;
  width: min(580px, calc(100% - 2rem));
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--wwu-navy-2);
  color: #ffffff;
  border: 1px solid rgba(168,184,204,.2);
  border-radius: 4px;
  box-shadow: 0 30px 80px rgba(0,0,0,.55);
}
.wwu::backdrop {
  background: rgba(5, 11, 22, .74);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.wwu[open] { animation: wwu-in .22s ease; }
@keyframes wwu-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) { .wwu[open] { animation: none; } }

.wwu-panel { position: relative; padding: 2.25rem 2.25rem 2rem; }
.wwu-close {
  position: absolute; top: .75rem; right: .75rem;
  width: 2.5rem; height: 2.5rem;
  display: grid; place-items: center;
  background: transparent; border: 0; border-radius: 4px;
  color: var(--wwu-silver); cursor: pointer;
  transition: background .2s, color .2s;
}
.wwu-close:hover { background: rgba(168,184,204,.12); color: #ffffff; }
.wwu-eyebrow {
  font-family: 'Rajdhani', sans-serif; font-weight: 600;
  font-size: .8rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--wwu-silver); display: block; margin-bottom: .6rem;
}
.wwu-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.85rem; font-weight: 700; line-height: 1.12;
  letter-spacing: .01em; padding-right: 2rem; margin-bottom: .75rem;
}
.wwu-lede {
  font-size: .95rem; line-height: 1.6;
  color: rgba(255,255,255,.74); margin-bottom: 1.5rem;
}
.wwu-lede strong { color: var(--wwu-silver-lt); font-weight: 600; }

.wwu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.wwu-field { display: flex; flex-direction: column; min-width: 0; }
.wwu-field.full { grid-column: 1 / -1; }
.wwu-field label {
  font-family: 'Rajdhani', sans-serif; font-weight: 600;
  font-size: .88rem; letter-spacing: .06em;
  color: var(--wwu-silver-lt); margin-bottom: .35rem;
}
.wwu-field label span { color: rgba(255,255,255,.45); font-weight: 500; }
.wwu-field input,
.wwu-field select,
.wwu-field textarea {
  width: 100%;
  font-family: 'Inter', sans-serif; font-size: 1rem;
  color: #ffffff;
  background: var(--wwu-navy);
  border: 1px solid rgba(168,184,204,.28);
  border-radius: 4px;
  padding: .7rem .8rem;
  transition: border-color .2s, box-shadow .2s;
}
.wwu-field textarea { resize: vertical; min-height: 5.5rem; line-height: 1.5; }
.wwu-field select {
  -webkit-appearance: none; appearance: none;
  padding-right: 2.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23a8b8cc' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
}
.wwu-field select:invalid { color: rgba(255,255,255,.5); }
.wwu-field option { color: #ffffff; background: var(--wwu-navy); }
.wwu-field ::placeholder { color: rgba(255,255,255,.35); }
.wwu-field input:focus,
.wwu-field select:focus,
.wwu-field textarea:focus {
  outline: none;
  border-color: var(--wwu-silver-lt);
  box-shadow: 0 0 0 3px rgba(168,184,204,.2);
}
.wwu-field [aria-invalid="true"] { border-color: #f0958a; }
.wwu-err { font-size: .8rem; color: #f5a79d; margin-top: .3rem; min-height: 0; }
.wwu-err:empty { display: none; }

/* Honeypot: off-screen, never shown to people */
.wwu-hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.wwu-alert {
  margin-top: 1.1rem; padding: .8rem .95rem;
  font-size: .9rem; line-height: 1.5;
  color: #ffd9d4;
  background: rgba(240,149,138,.1);
  border: 1px solid rgba(240,149,138,.45);
  border-radius: 4px;
}
.wwu-alert[hidden] { display: none; }
.wwu-alert a { color: inherit; }

.wwu-submit {
  width: 100%; margin-top: 1.25rem;
  border: 0; cursor: pointer; text-align: center;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
}
.wwu-submit[disabled] { opacity: .7; cursor: progress; transform: none; box-shadow: none; }
.wwu-spinner {
  width: 1rem; height: 1rem; border-radius: 50%;
  border: 2px solid rgba(10,22,40,.3); border-top-color: var(--wwu-navy);
  animation: wwu-spin .7s linear infinite;
}
.wwu-spinner[hidden] { display: none; }
@keyframes wwu-spin { to { transform: rotate(360deg); } }
.wwu-fine {
  margin-top: .85rem; font-size: .78rem; line-height: 1.5;
  color: rgba(255,255,255,.5); text-align: center;
}
.wwu-fine a { color: inherit; }

.wwu-done { text-align: center; padding: 1.5rem 0 .5rem; }
.wwu-done[hidden] { display: none; }
.wwu-done:focus { outline: none; }
.wwu-check {
  width: 3.25rem; height: 3.25rem; margin: 0 auto 1.1rem;
  display: grid; place-items: center;
  border: 1px solid var(--wwu-silver); border-radius: 50%;
  color: var(--wwu-silver-lt);
}
.wwu-done h2 { font-family: 'Rajdhani', sans-serif; font-size: 1.7rem; font-weight: 700; margin-bottom: .6rem; }
.wwu-done p { font-size: .95rem; line-height: 1.6; color: rgba(255,255,255,.74); margin-bottom: 1.5rem; }

@media (max-width: 560px) {
  .wwu-panel { padding: 1.75rem 1.25rem 1.5rem; }
  .wwu-grid { grid-template-columns: 1fr; }
  .wwu-title { font-size: 1.55rem; }
}

/* Same look as the site's .btn-primary, so the popup does not depend on page styles */
.wwu-btn {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .08em;
  color: var(--wwu-navy);
  background: var(--wwu-silver);
  border: 0;
  padding: .9rem 2rem;
  border-radius: 4px;
  display: inline-block;
  cursor: pointer;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.wwu-btn:hover {
  background: var(--wwu-silver-lt);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(168,184,204,.22);
}
.wwu-btn:focus-visible { outline: 3px solid var(--wwu-silver-lt); outline-offset: 3px; }
