/* Interval Workforce — candidate portal. Brand: aqua #5ce1e6 (primary), navy #004aad (secondary).
   Deliberately distinct from the ISG corporate site: bright aqua band, rounded cards, big tap targets. */
:root {
  --aqua: #5ce1e6;
  --aqua-deep: #2ec9d0;
  --aqua-pale: #eafcfd;
  --navy: #004aad;
  --navy-dark: #003a88;
  --ink: #111827;
  --ink-soft: #4b5563;
  --line: #d9f4f5;
  --bg: #ffffff;
  --bg-soft: #f3fbfc;
  --green-bg: #e3f8ec; --green-ink: #0f5f31;
  --red-bg: #fdeaea; --red-ink: #8a1c1c;
  --radius: 18px;
  --shadow: 0 2px 6px rgba(0, 74, 173, .06), 0 14px 32px -16px rgba(0, 74, 173, .25);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.55; font-size: 17px;
}
a { color: var(--navy); }
[hidden] { display: none !important; }
.wrap { max-width: 680px; margin: 0 auto; padding: 0 20px; }

/* Header: aqua band with the logo */
.site-header { background: var(--aqua); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 12px; }
.brand { display: flex; align-items: center; min-width: 0; }

.brand img { height: 48px; width: auto; display: block; }

.lang-toggle {
  flex-shrink: 0; display: inline-flex; background: rgba(255,255,255,.55);
  border: 2px solid var(--navy); border-radius: 999px; overflow: hidden; padding: 2px;
}
.lang-toggle button {
  appearance: none; border: 0; background: transparent; color: var(--navy); border-radius: 999px;
  padding: 6px 12px; cursor: pointer; font: inherit; font-weight: 800; font-size: 13px; white-space: nowrap;
}
.lang-toggle button[aria-pressed="true"] { background: var(--navy); color: #fff; }

/* Hero strip under the header */
.hero { background: var(--aqua); padding: 6px 0 34px; border-bottom-left-radius: 32px; border-bottom-right-radius: 32px; }
.hero h1 { color: var(--navy); font-size: 32px; line-height: 1.12; letter-spacing: -.02em; margin: 14px 0 8px; font-weight: 900; }
.hero .lead { color: #0b2a5b; margin: 0; font-weight: 600; font-size: 16px; }
main.wrap { padding-top: 8px; }

h2 { font-size: 22px; letter-spacing: -.01em; margin: 26px 0 8px; font-weight: 900; color: var(--navy); }
.muted { color: var(--ink-soft); font-size: 15px; }

/* Position cards */
.card-list { display: grid; gap: 14px; margin: 18px 0 30px; padding: 0; list-style: none; }
.card {
  display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: start;
  text-decoration: none; color: inherit;
  border: 2px solid var(--line); border-radius: var(--radius); padding: 18px 18px 16px;
  background: var(--bg); box-shadow: var(--shadow); position: relative;
}
.card:hover, .card:focus-visible { border-color: var(--aqua-deep); }
.card:active { transform: scale(.99); }
.card h3 { margin: 4px 0 6px; font-size: 21px; font-weight: 900; letter-spacing: -.01em; grid-column: 1; }
.card .meta { display: grid; gap: 3px; color: var(--ink-soft); font-size: 15px; grid-column: 1; }
.card .meta strong { color: var(--ink); font-weight: 800; }
.card .pay { grid-column: 2; grid-row: 1 / span 3; align-self: start; background: var(--navy); color: #fff; border-radius: 12px; padding: 8px 12px; font-weight: 900; font-size: 18px; line-height: 1.1; text-align: center; }
.card .pay .muted { display: block; color: rgba(255,255,255,.8); font-size: 12px; font-weight: 700; }
.card .arrow { grid-column: 1; color: var(--navy); font-weight: 800; font-size: 14px; margin-top: 6px; }

.tag {
  display: inline-block; justify-self: start; background: var(--aqua-pale); color: var(--navy); border: 1.5px solid var(--aqua);
  border-radius: 999px; padding: 2px 11px; font-size: 13px; font-weight: 800;
}

/* Detail page */
.detail { margin-top: 18px; }
.detail .lead { color: var(--ink-soft); font-weight: 700; margin: 0; }
.detail h1 { font-size: 30px; line-height: 1.12; letter-spacing: -.02em; margin: 10px 0 4px; font-weight: 900; color: var(--navy); }
.detail dl { margin: 22px 0 8px; background: var(--bg-soft); border-radius: var(--radius); padding: 6px 18px; }
.detail dt { color: var(--ink-soft); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; margin-top: 14px; }
.detail dd { margin: 3px 0 14px; font-size: 18px; font-weight: 600; }
.detail dd + dt { border-top: 1px solid var(--line); padding-top: 14px; }
.detail .pay { color: var(--navy); font-weight: 900; font-size: 22px; }

/* Forms */
form { display: grid; gap: 16px; margin: 18px 0 28px; }
label { font-weight: 800; font-size: 15px; display: grid; gap: 6px; }
label .muted { font-weight: 600; font-size: 14px; }
input, select, textarea {
  font: inherit; width: 100%; padding: 14px 15px; font-weight: 600;
  border: 2px solid #cfe9eb; border-radius: 12px; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 3px solid var(--aqua); outline-offset: 0; border-color: var(--navy); }
.check { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; font-weight: 600; font-size: 15px; background: var(--aqua-pale); border-radius: 12px; padding: 14px; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; padding: 0; accent-color: var(--navy); }
.consent { font-size: 14px; color: var(--ink-soft); line-height: 1.5; font-weight: 500; }
.btn {
  appearance: none; border: 0; border-radius: 14px; padding: 16px 20px; display: block; text-align: center;
  background: var(--navy); color: #fff; font: inherit; font-weight: 900; font-size: 17px;
  cursor: pointer; width: 100%; text-decoration: none; box-shadow: 0 6px 16px -6px rgba(0,74,173,.5);
}
.btn:hover { background: var(--navy-dark); }
.btn[disabled] { opacity: .6; cursor: wait; }
.btn-secondary { background: var(--aqua); color: var(--navy); box-shadow: none; }
.btn-secondary:hover { background: var(--aqua-deep); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.notice { border-radius: 12px; padding: 14px 16px; font-size: 15px; margin: 8px 0; font-weight: 600; }
.notice.ok { background: var(--green-bg); color: var(--green-ink); }
.notice.err { background: var(--red-bg); color: var(--red-ink); }
.notice.info { background: var(--aqua-pale); color: var(--navy); }

.skeleton { height: 110px; border-radius: var(--radius); background: linear-gradient(90deg, #eef9fa 25%, #f8fdfd 50%, #eef9fa 75%); background-size: 200% 100%; animation: sh 1.2s infinite; }
@keyframes sh { to { background-position: -200% 0; } }

.site-footer { background: var(--aqua); color: #0b2a5b; margin-top: 40px; padding: 30px 0 36px; font-size: 15px; }
.site-footer p { margin: 3px 0; }
.site-footer a { color: var(--navy); text-decoration: none; font-weight: 800; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; align-items: start; }
.footer-left { display: grid; gap: 10px; justify-items: start; }
.footer-logo { height: 64px; width: auto; }
.footer-addr { line-height: 1.4; }
.footer-right { text-align: right; display: grid; gap: 2px; align-content: start; }
.footer-bottom { grid-column: 1 / -1; border-top: 1px solid rgba(0,74,173,.25); padding-top: 14px; margin-top: 4px; font-size: 14px; }
.footer-bottom .copyright { color: rgba(11,42,91,.75); font-size: 13px; }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } .footer-right { text-align: left; } }

.actions { display: grid; gap: 10px; margin: 8px 0 30px; }

/* Skills chips */
.skills { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.skills legend { font-weight: 800; font-size: 15px; padding: 0; margin-bottom: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; padding: 0; }
.chip span { display: inline-block; padding: 9px 14px; border-radius: 999px; border: 2px solid #cfe9eb; background: #fff; font-weight: 700; font-size: 15px; color: var(--ink); cursor: pointer; user-select: none; }
.chip input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip input:checked + span::before { content: "✓ "; }
.chip input:focus-visible + span { outline: 3px solid var(--aqua); }
.legal-links { margin-top: 10px !important; }
.legal-links a { font-weight: 800; }

/* Legal pages */
.legal h2 { font-size: 19px; margin: 24px 0 6px; }
.legal p, .legal li { font-size: 15.5px; color: #1f2937; }
.legal ul { padding-left: 20px; }
.legal .updated { color: var(--ink-soft); font-size: 14px; }

/* Phone with fixed +1 prefix */
.phone-wrap { display: flex; align-items: stretch; }
.phone-prefix { display: flex; align-items: center; padding: 0 14px; border: 2px solid #cfe9eb; border-right: 0; border-radius: 12px 0 0 12px; background: var(--aqua-pale); color: var(--navy); font-weight: 800; }
.phone-wrap input { border-radius: 0 12px 12px 0; }
