/* ============================================================
   Apply UK Jobs – landing page styles
   Clean, professional, conversion-focused
============================================================ */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --ink: #0c1423;
  --ink-soft: #39465c;
  --muted: #6b7380;
  --line: #e5e9f0;
  --primary: #0b5fff;
  --primary-dark: #0847c2;
  --primary-soft: #e8f0ff;
  --success: #16a34a;
  --danger: #dc2626;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(12, 20, 35, 0.06), 0 1px 3px rgba(12, 20, 35, 0.05);
  --shadow-md: 0 6px 18px rgba(12, 20, 35, 0.08);
  --shadow-lg: 0 20px 40px rgba(12, 20, 35, 0.12);
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.25;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
h4 { font-size: 0.95rem; font-weight: 700; }

p { margin: 0 0 1em; color: var(--ink-soft); }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 22px;
}

.muted { color: var(--muted); }
.small { font-size: 0.875rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.05s ease, background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
  line-height: 1.2;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(11, 95, 255, 0.28);
}
.btn-primary:hover { background: var(--primary-dark); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--bg-alt); }

.btn-sm { padding: 9px 14px; font-size: 0.875rem; }
.btn-lg { padding: 14px 24px; font-size: 1rem; }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.brand-name { font-size: 1rem; letter-spacing: -0.01em; }

.nav-links {
  display: flex;
  gap: 26px;
  margin-left: auto;
  margin-right: 16px;
}
.nav-links a {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a:hover { color: var(--ink); text-decoration: none; }

@media (max-width: 760px) {
  .nav-links { display: none; }
}

/* Hero */
.hero {
  position: relative;
  padding: 72px 0 56px;
  background:
    radial-gradient(1200px 400px at 50% -180px, rgba(11, 95, 255, 0.12), transparent 60%),
    linear-gradient(180deg, #fbfdff 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 44px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero { padding: 56px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}

.lead {
  font-size: 1.125rem;
  color: var(--ink-soft);
  max-width: 56ch;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 22px 0 26px;
}

.hero-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 22px;
  max-width: 560px;
}
.hero-points li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e8f7ee;
  color: var(--success);
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Hero card */
.hero-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
}
.card-top { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 4px 10px;
  border-radius: 999px;
}
.pill-muted { color: var(--ink-soft); background: var(--bg-alt); }

.stat-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 16px;
  margin: 18px 0 20px;
  padding: 16px;
  background: var(--bg-alt);
  border-radius: var(--radius);
}
.stat-list dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 2px;
}
.stat-list dd { margin: 0; font-weight: 600; color: var(--ink); font-size: 0.92rem; }

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

@media (max-width: 700px) {
  .section { padding: 52px 0; }
}

/* Two column layouts */
.two-col {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  margin-top: 18px;
}
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; gap: 20px; } }

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--ink-soft);
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e8f7ee;
  color: var(--success);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  margin-top: 3px;
}

/* Steps */
.steps {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

.steps li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  margin-bottom: 12px;
}

/* Benefit grid */
.grid { display: grid; gap: 18px; margin-top: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-3 { grid-template-columns: 1fr; } }

.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: #d5dcea; }
.feature .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--primary-soft);
  font-size: 1.3rem;
  margin-bottom: 14px;
}
.feature p { margin: 0; font-size: 0.95rem; }

/* Requirements */
.req-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (max-width: 700px) { .req-list { grid-template-columns: 1fr; } }
.req-list li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  color: var(--ink-soft);
}
.req-list strong { color: var(--ink); }

/* Apply section */
.apply-section {
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}
.apply-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 900px) { .apply-grid { grid-template-columns: 1fr; } }

.apply-intro .check-list { margin-top: 14px; }

.apply-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
  position: relative; /* keeps honeypot .hp off-screen relative to the form */
  overflow: hidden;
}
.form-title {
  margin: 0 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(11, 95, 255, 0.18);
}
.field input:invalid:not(:placeholder-shown) {
  border-color: #f3c2c2;
}
.hint {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--muted);
}
.field.checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.field.checkbox input {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}
.field.checkbox label {
  margin: 0;
  font-weight: 500;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* Honeypot */
.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  margin: 14px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}

.form-errors {
  background: #fff4f4;
  border: 1px solid #f3c2c2;
  color: #7a1d1d;
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 0 0 18px;
  font-size: 0.92rem;
}
.form-errors strong { display: block; margin-bottom: 6px; color: #7a1d1d; }
.form-errors ul { margin: 0; padding-left: 20px; }
.form-errors li { margin: 2px 0; }

/* FAQ */
.faq-list {
  margin-top: 20px;
  display: grid;
  gap: 10px;
}
.faq-list details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  transition: border-color 0.15s ease;
}
.faq-list details[open] { border-color: #d5dcea; }
.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  position: relative;
  padding-right: 24px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--muted);
}
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: 10px 0 0; color: var(--ink-soft); }

/* Thank-you */
.thank-you { padding: 80px 0; background: linear-gradient(180deg, #fbfdff 0%, #ffffff 100%); }
.ty-card {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  box-shadow: var(--shadow-md);
}
.ty-icon {
  width: 64px; height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #e8f7ee;
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
}
.ty-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 28px 0;
  text-align: left;
}
@media (max-width: 700px) { .ty-steps { grid-template-columns: 1fr; } }
.ty-step {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 18px;
}
.ty-step h3 { margin: 6px 0 6px; font-size: 1rem; }
.ty-step p { margin: 0; font-size: 0.92rem; }
.ty-note { margin-top: 18px; }

/* Footer */
.site-footer {
  background: #0c1423;
  color: #c9d1de;
  padding: 48px 0 24px;
  margin-top: 48px;
}
.site-footer .brand-name { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 32px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }
.site-footer h4 {
  color: #fff;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 12px;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.site-footer ul li { color: #9aa4b6; font-size: 0.9rem; }
.site-footer a { color: #c9d1de; }
.site-footer a:hover { color: #fff; }
.site-footer .muted { color: #8a94a6; }
.footer-bottom {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* Error / minimal pages */
.error-page {
  max-width: 560px;
  margin: 80px auto;
  text-align: center;
  padding: 32px;
}
.error-list {
  text-align: left;
  background: #fff4f4;
  border: 1px solid #f3c2c2;
  color: #7a1d1d;
  border-radius: var(--radius);
  padding: 16px 20px 16px 36px;
  margin: 0 0 20px;
}
