/* ==========================================================================
   Gemini Drivers - Core Style Sheet
   Author: Antigravity AI
   Target: Clean, modern, highly responsive design matching Figma layout
   ========================================================================== */

/* --- Import Premium Typography --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* --- Design Tokens / CSS Variables --- */
:root {
  --primary-red: #C51F33;
  --primary-red-hover: #A71727;
  --primary-red-light: rgba(197, 31, 51, 0.1);
  --primary-red-transparent: rgba(197, 31, 51, 0.05);

  --navy-blue: #0E1B2B;
  --navy-blue-light: #1A2E44;
  --navy-blue-dark: #070D15;

  --text-dark: #1F2937;
  --text-body: #4B5563;
  --text-light: #F9FAFB;
  --text-gray: #6B7280;

  --bg-light: #F8FAFC;
  --bg-white: #FFFFFF;

  --success-green: #10B981;
  --success-green-light: rgba(16, 185, 129, 0.1);
  --warning-yellow: #F59E0B;
  --warning-yellow-light: rgba(245, 158, 11, 0.15);

  --border-color: #E2E8F0;
  --border-focus: #C51F33;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --shadow-glowing: 0 0 15px rgba(197, 31, 51, 0.2);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Base & Reset Rules --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  /* smooth momentum scrolling on iOS */
  overscroll-behavior: none;
  /* prevents rubber-band bounce causing banner shiver */
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-white);
  overflow-x: hidden;
  overscroll-behavior-y: none;
  /* eliminates scroll bounce that causes sticky shiver */
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--navy-blue);
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

ul {
  list-style: none;
}

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

/* --- Helper Classes & Layout Utilities --- */
.container {
  width: 100%;
  max-width: 1670px;
  margin: 0 auto;
  padding: 0 24px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--primary-red-light);
  color: var(--primary-red);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

.badge-success {
  background-color: var(--success-green-light);
  color: var(--success-green);
}

.text-center {
  text-align: center;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition-normal);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.btn-primary {
  background-color: var(--primary-red);
  color: var(--bg-white);
  box-shadow: 0 4px 10px rgba(197, 31, 51, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(197, 31, 51, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: transparent;
  border-color: var(--border-color);
  color: var(--text-dark);
}

.btn-secondary:hover {
  color: var(--text-gray);
  background-color: var(--bg-light);
  border-color: var(--text-gray);
  transform: translateY(-2px);
}

.btn-outline-white {
  background-color: transparent;
  border-color: var(--bg-white);
  color: var(--bg-white);
}

.btn-outline-white:hover {
  background-color: var(--bg-white);
  color: var(--navy-blue);
  transform: translateY(-2px);
}

/* --- Megaphone Announcement Banner --- */
.megaphone-banner {
  background-color: var(--primary-red);
  color: var(--bg-white);
  padding: 10px 24px;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  z-index: 99;
}

.megaphone-banner svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.megaphone-banner a {
  color: var(--bg-white);
  font-weight: 700;
  text-decoration: underline;
  margin-left: 4px;
}

.megaphone-banner a:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* --- Site Header Wrapper (sticky container for nav + megaphone) --- */
.site-header-wrapper {
  position: sticky;
  top: 0;
  z-index: 1000;
  /* NOTE: do NOT add will-change:transform here — it breaks sticky positioning
     in Chrome/Safari by creating a conflicting compositing layer. GPU promotion
     is handled on the inner .header-nav via transform:translateZ(0) instead. */
}

/* --- Header / Navigation Bar --- */
.header-nav {
  background-color: var(--bg-white);
  border-bottom: 1px solid rgba(37, 40, 42, 0.1);
  box-shadow: var(--shadow-sm);
  /* translateZ(0) promotes only the inner nav to its own GPU layer */
  transform: translateZ(0);
  backface-visibility: hidden;
  transition: box-shadow var(--transition-normal), padding var(--transition-normal);
}

.header-nav.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* padding-block animates on compositor — zero layout reflow, zero scroll jitter */
  padding-block: 26px;
  transition: padding-block var(--transition-normal);
}

.header-nav.scrolled .nav-container {
  padding-block: 10px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 64px;
  width: auto;
  /* transform:scale runs on GPU compositor — no layout, no jitter on scroll-back */
  transform-origin: left center;
  transition: transform var(--transition-normal);
}

.header-nav.scrolled .logo-img {
  transform: scale(0.78);
  /* 64px × 0.78 ≈ 50px — visually matches Figma scroll state */
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 33px;
  margin-left: 93px;
  margin-right: auto;
}

.nav-item-link {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  position: relative;
  padding: 8px 0;
  white-space: nowrap;
}

.nav-item-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-red);
  transition: var(--transition-normal);
}

.nav-item-link:hover,
.nav-item-link.active {
  color: var(--primary-red);
}

.nav-item-link:hover::after,
.nav-item-link.active::after {
  width: 100%;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 33px;
}

.contact-info-list {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 33px;
  font-size: 0.9rem;
  font-weight: 600;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.contact-info-item a {
  color: var(--primary-red);
  transition: var(--transition-fast);
}

.contact-info-item a:hover {
  color: var(--primary-red-hover);
}

.contact-info-item svg {
  width: 18px;
  height: 18px;
  color: var(--primary-red);
}

#navApplyBtn {
  height: 52px;
  padding: 14px 24px;
  font-size: 0.95rem;
  font-weight: 700;
}

.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--navy-blue);
}

.mobile-nav-toggle svg {
  width: 28px;
  height: 28px;
}

.close-icon {
  display: none;
}

.mobile-menu-btn {
  display: none;
}

/* --- Hero Section --- */
.hero {
  /* 100dvh fills the visual viewport on mobile; falls back to 100vh on older browsers.
     No calc() subtraction — the sticky header sits outside the hero in the stacking
     order so the hero doesn't need to know the header height. */
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  background-color: var(--navy-blue-dark);
  /* Prevents white flash/blink during scroll optimizations */
  transform: translate3d(0, 0, 0);
  /* Promotes section to GPU layer to prevent composition shifts */
  will-change: transform;
  /* Hints to browser to keep this composited */
}

.video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
  filter: brightness(1);
  /* Forces browser composition, preventing Windows DWM HW overlay contrast/color shifts on scroll */
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(14, 27, 43, 0.85);
  /* Solid transparent color prevents composition rendering shift over video */
  z-index: 2;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  margin: 0 auto;
  color: var(--bg-white);
  max-width: 700px;
  animation: fadeInUp 0.8s ease-out;
}

.hero-title {
  font-size: 3.8rem;
  font-weight: 800;
  color: var(--bg-white);
  margin-bottom: 20px;
  line-height: 1.15;
}

.hero-description {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 auto 36px;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* --- How it Works Section --- */
.how-it-works {
  padding: 100px 0;
  background-color: var(--bg-light);
}

/* Section badge pill (e.g. "Simple Process") */
.section-badge {
  display: inline-block;
  background-color: var(--primary-red-light);
  color: var(--primary-red);
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}

.section-header {
  max-width: 680px;
  margin: 0 auto 60px;
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 16px;
  font-weight: 800;
}

.section-subtitle {
  color: var(--text-gray);
  font-size: 1.05rem;
  line-height: 1.65;
}

/* 3-column grid, 2 rows */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Individual card */
.step-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 32px 28px 36px;
  border: 1px solid var(--border-color);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(197, 31, 51, 0.15);
}

/* Top row: number badge (left) + icon (right) */
.step-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 8px;
}

/* Pink pill number badge */
.step-number-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-red-light);
  color: var(--primary-red);
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.04em;
  width: 54px;
  height: 54px;
}

/* Icon top-right */
.step-icon {
  color: var(--primary-red);
  opacity: 0.85;
  flex-shrink: 0;
  transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.step-card:hover .step-icon {
  transform: scale(1.12);
  opacity: 1;
}

.step-title {
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
  line-height: 1.3;
}

.step-desc {
  color: var(--text-body);
  font-size: 1.25rem;
  line-height: 1.6;
  margin: 0;
}


/* --- CTA Section --- */
.cta {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
  text-align: center;
  background-color: var(--navy-blue-dark);
  /* Prevents white flash/blink during scroll optimizations */
  transform: translate3d(0, 0, 0);
  /* Promotes section to GPU layer to prevent composition shifts */
  will-change: transform;
  /* Hints to browser to keep this composited */
}

.cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg, rgba(14, 27, 43, 0.9) 0%, rgba(14, 27, 43, 0.75) 100%);
  z-index: 2;
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 3;
  color: var(--bg-white);
  max-width: 650px;
  margin: 0 auto;
}

.cta-title {
  color: var(--bg-white);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-desc {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  margin-bottom: 36px;
}

/* --- Footer --- */
.footer {
  background-color: var(--navy-blue);
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 30px;
  border-top: 1px solid var(--navy-blue-light);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-title {
  color: var(--bg-white);
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

.footer-col-1 .logo-link {
  margin-bottom: 20px;
}

.footer-col-1 .logo-text {
  color: var(--bg-white);
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
}

.footer-desc {
  line-height: 1.6;
  margin-bottom: 24px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background-color: var(--navy-blue-light);
  color: var(--bg-white);
  border-radius: 50%;
  transition: var(--transition-fast);
}

.social-icon:hover {
  background-color: var(--primary-red);
  transform: scale(1.1);
}

.social-icon svg {
  width: 18px;
  height: 18px;
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: 0;
}

.footer-link a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-link a:hover {
  color: var(--primary-red);
  padding-left: 4px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-detail-item {
  display: flex;
  gap: 12px;
}

.contact-detail-item svg {
  width: 20px;
  height: 20px;
  color: var(--primary-red);
  flex-shrink: 0;
  margin-top: 3px;
}

.contact-text address {
  font-style: normal;
  line-height: 1.5;
}

.footer-bottom {
  border-top: 1px solid var(--navy-blue-light);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

/* --- Interactive Application Wizard (Fullscreen Overlay/Modal) --- */
.wizard-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(14, 27, 43, 0.4);
  backdrop-filter: blur(10px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.wizard-overlay.active {
  opacity: 1;
  visibility: visible;
}

.wizard-container {
  width: 100%;
  max-width: 900px;
  height: 90vh;
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transform: scale(0.95) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wizard-overlay.active .wizard-container {
  transform: scale(1) translateY(0);
}

/* Wizard Header */
.wizard-header {
  padding: 20px 32px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-light);
  flex-shrink: 0;
}

.wizard-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text-gray);
  border: none;
  background: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.wizard-back-btn:hover {
  color: var(--primary-red);
}

.wizard-header-logo {
  height: 36px;
}

.wizard-close-btn {
  background: none;
  border: none;
  color: var(--text-gray);
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wizard-close-btn:hover {
  color: var(--primary-red);
  transform: rotate(90deg);
}

.wizard-close-btn svg {
  width: 24px;
  height: 24px;
}

/* Wizard Progress Bar */
.wizard-progress-wrapper {
  background-color: var(--border-color);
  height: 4px;
  width: 100%;
  flex-shrink: 0;
}

.wizard-progress-bar {
  background-color: var(--primary-red);
  height: 100%;
  width: 0%;
  transition: width var(--transition-normal);
}

/* Wizard Content Panel */
.wizard-content {
  flex-grow: 1;
  overflow-y: auto;
  padding: 40px 48px;
  display: flex;
  flex-direction: column;
}

.wizard-pane {
  display: none;
  animation: fadeIn 0.4s ease-in-out;
  flex-direction: column;
  height: 100%;
}

.wizard-pane.active {
  display: flex;
}

/* Figma Stepper — numbered circles with connecting lines */
.wizard-stepper {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-bottom: 28px;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 4px;
}

.stepper-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  flex: 1;
  min-width: 60px;
  gap: 6px;
}

/* Connecting line between steps */
.stepper-step::before {
  content: '';
  position: absolute;
  top: 18px;
  left: calc(-50% + 18px);
  right: calc(50% + 18px);
  height: 1px;
  background-color: var(--border-color);
  z-index: 0;
}

.stepper-step:first-child::before {
  display: none;
}

.stepper-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--text-gray);
  position: relative;
  z-index: 1;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.stepper-step-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-gray);
  text-align: center;
  white-space: nowrap;
}

.stepper-step.active .stepper-step-num {
  background: var(--primary-red);
  border-color: var(--primary-red);
  color: #fff;
}

.stepper-step.active .stepper-step-label {
  color: var(--primary-red);
  font-weight: 600;
}

.stepper-step.completed .stepper-step-num {
  background: var(--navy-blue);
  border-color: var(--navy-blue);
  color: #fff;
}

.stepper-step.completed .stepper-step-label {
  color: var(--navy-blue);
}

.stepper-step.completed::before {
  background-color: var(--navy-blue);
}

/* Sub-step red card header (same pattern as QR pane) */
.subpane-card-header {
  background: var(--primary-red);
  padding: 20px 28px 18px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  margin-bottom: 0;
}

.subpane-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
}

.subpane-card-subtitle {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

/* Sub-step form body wrapper */
.subpane-card-body {
  background: #fff;
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  padding: 24px 28px 28px;
}

/* Alert banner inside sub-step — Figma amber style */
.alert-banner-figma {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background-color: #FFFBEB;
  border: 1.5px solid #F59E0B;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.alert-banner-figma svg {
  width: 18px;
  height: 18px;
  color: #D97706;
  flex-shrink: 0;
  margin-top: 1px;
}

.alert-banner-figma-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.alert-banner-figma-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #92400E;
}

.alert-banner-figma-body {
  font-size: 0.82rem;
  color: #78350F;
  line-height: 1.4;
}



/* Forms layout */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.form-group-full {
  grid-column: span 2;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy-blue);
}

.form-input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  outline: none;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.form-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(197, 31, 51, 0.1);
}

.form-row-inline {
  display: flex;
  gap: 16px;
}

.postcode-wrapper {
  display: flex;
  gap: 10px;
}

.postcode-wrapper input {
  flex-grow: 1;
}

#postcodeFindBtn {
  padding: 0 24px;
  border-radius: 10px;
}

#postcodeAddressSelect {
  /* Always visible — populated by postcode FIND button */
}

.encrypted-data-note {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-gray);
  font-size: 0.8rem;
  padding-bottom: 10px;
  justify-content: center;
}

.wizard-header-center {
  margin-bottom: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wizard-pane .section-title {
  font-size: 2rem;
  font-weight: 700;
}

.fullapp-subpane .step-title {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

input[type="file"].hidden-file-input {
  display: none;
}

#revDocs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.success-buttons-container {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.mb-24 {
  margin-bottom: 24px !important;
}

.mb-20 {
  margin-bottom: 20px !important;
}

/* ==========================================
   Quick Registration — Figma Layout Styles
   ========================================== */

/* Red header banner at top of QR pane */
.qr-pane-header {
  background: var(--primary-red);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 28px 36px 24px;
  margin: -40px -48px 0 -48px;
  /* bleed to wizard-content edges */
  color: #fff;
}

.qr-step-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  opacity: 0.88;
  margin-bottom: 4px;
}

.qr-pane-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 6px;
  color: #fff;
}

.qr-pane-subtitle {
  font-size: 0.9rem;
  opacity: 0.85;
  margin: 0;
  color: #fff;
}

/* Form body below the red header */
.qr-form-body {
  padding-top: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Custom styled select with chevron */
.select-wrapper {
  position: relative;
}

.select-wrapper select.form-select-styled {
  appearance: none;
  -webkit-appearance: none;
  background-color: var(--bg-light);
  cursor: pointer;
  padding-right: 44px;
}

.select-wrapper select.form-select-styled:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(197, 31, 51, 0.1);
}

.select-chevron {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--text-gray);
  width: 18px;
  height: 18px;
}

/* Custom eligibility cards */
.eligibility-question-wrapper {
  text-align: center;
  margin: auto;
  max-width: 650px;
}

.eligibility-q-num {
  width: 60px;
  height: 60px;
  background-color: var(--primary-red);
  color: var(--bg-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  margin: 0 auto 24px;
  box-shadow: var(--shadow-glowing);
}

.eligibility-text {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--navy-blue);
  margin-bottom: 36px;
  line-height: 1.3;
}

.eligibility-options {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.eligibility-btn {
  flex: 1;
  max-width: 180px;
  padding: 16px 24px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  background-color: var(--bg-white);
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: var(--transition-normal);
}

.eligibility-btn svg {
  width: 28px;
  height: 28px;
  transition: var(--transition-fast);
}

.eligibility-btn-yes {
  color: var(--success-green);
}

.eligibility-btn-yes:hover {
  border-color: var(--success-green);
  background-color: var(--success-green-light);
  transform: translateY(-4px);
}

.eligibility-btn-no {
  color: var(--primary-red);
}

.eligibility-btn-no:hover {
  border-color: var(--primary-red);
  background-color: var(--primary-red-light);
  transform: translateY(-4px);
}

/* Disqualification layout */
.disqualified-wrapper {
  text-align: center;
  margin: auto;
  max-width: 500px;
  animation: shake 0.5s cubic-bezier(.36, .07, .19, .97) both;
}

.disqualified-icon {
  width: 80px;
  height: 80px;
  background-color: var(--primary-red-light);
  color: var(--primary-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.disqualified-icon svg {
  width: 40px;
  height: 40px;
}

.disqualified-title {
  font-size: 2rem;
  color: var(--primary-red);
  margin-bottom: 16px;
}

.disqualified-msg {
  color: var(--text-body);
  font-size: 1.1rem;
  margin-bottom: 32px;
  line-height: 1.5;
}

/* Watch and decide layout */
.video-decide-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.video-container {
  width: 100%;
  aspect-ratio: 16/9;
  background-color: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-md);
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-info-box {
  background-color: var(--bg-light);
  border-radius: var(--radius-md);
  padding: 20px;
  border-left: 4px solid var(--primary-red);
}

.video-info-title {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.video-info-desc {
  font-size: 0.9rem;
  color: var(--text-body);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 8px;
  padding-bottom: 10px;
}

.checkbox-group input {
  margin-top: 4px;
  width: 16px;
  height: 16px;
  accent-color: var(--primary-red);
}

.checkbox-label {
  font-size: 0.9rem;
  color: var(--text-dark);
  font-weight: 500;
}

/* Wizard Buttons Footer */
.wizard-footer {
  padding: 20px 32px;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-light);
  display: none;
  justify-content: space-between;
  flex-shrink: 0;
}

.wizard-footer .btn {
  min-width: 140px;
}

.wizard-footer .btn.btn-full-width {
  flex: 1;
  width: 100%;
  max-width: 100%;
}

/* Warning/Stakeholder alert banners */
.alert-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background-color: var(--warning-yellow-light);
  border: 1px dashed var(--warning-yellow);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  color: #78350F;
  font-size: 0.85rem;
  margin-bottom: 24px;
  line-height: 1.4;
}

.alert-banner svg {
  width: 18px;
  height: 18px;
  color: var(--warning-yellow);
  flex-shrink: 0;
  margin-top: 2px;
}

/* File Upload drag-and-drop */
.file-upload-wrapper {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  background-color: var(--bg-light);
  cursor: pointer;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.file-upload-wrapper:hover {
  border-color: var(--primary-red);
  background-color: var(--primary-red-transparent);
}

.file-upload-icon {
  color: var(--text-gray);
}

.file-upload-icon svg {
  width: 32px;
  height: 32px;
}

.file-upload-text {
  font-size: 0.9rem;
  font-weight: 600;
}

.file-upload-subtext {
  font-size: 0.75rem;
  color: var(--text-gray);
}

.file-uploaded-list {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.uploaded-file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-light);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

.uploaded-file-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.uploaded-file-name svg {
  width: 16px;
  height: 16px;
  color: var(--success-green);
}

.uploaded-file-remove {
  background: none;
  border: none;
  color: var(--text-gray);
  cursor: pointer;
}

.uploaded-file-remove:hover {
  color: var(--primary-red);
}

/* Radio button styles */
.radio-group {
  display: flex;
  gap: 20px;
  margin-top: 4px;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.radio-option input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary-red);
}

/* Custom side-by-side radio containers */
.custom-radio-container {
  display: flex;
  gap: 16px;
  width: 100%;
  margin-top: 4px;
}

.custom-radio-option {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: var(--bg-light);
  cursor: pointer;
  transition: var(--transition-fast);
}

.custom-radio-option:hover {
  border-color: var(--border-focus);
  background-color: var(--bg-white);
}

.custom-radio-option input[type="radio"] {
  width: 20px;
  height: 20px;
  accent-color: var(--primary-red);
  cursor: pointer;
  margin: 0;
}

.custom-radio-label-text {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
}

/* Review details container */
.review-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.review-section {
  background-color: var(--bg-light);
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid var(--border-color);
}

.review-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-blue);
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.review-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.review-label {
  font-size: 0.75rem;
  color: var(--text-gray);
  text-transform: uppercase;
  font-weight: 600;
}

.review-val {
  font-size: 0.95rem;
  font-weight: 500;
}

/* Success panel styles */
.success-pane-wrapper {
  text-align: center;
  margin: auto;
  max-width: 550px;
}

.success-badge {
  background-color: var(--success-green-light);
  color: var(--success-green);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  display: inline-block;
  margin-bottom: 16px;
}

.success-title {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}

.success-title span {
  color: var(--primary-red);
}

.success-desc {
  color: var(--text-body);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

.success-next-steps {
  background-color: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: left;
  border: 1px solid var(--border-color);
  margin-bottom: 32px;
}

.success-next-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}

.timeline-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.timeline-step-item {
  display: flex;
  gap: 16px;
}

.timeline-step-circle {
  width: 24px;
  height: 24px;
  background-color: var(--navy-blue);
  color: var(--bg-white);
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.timeline-step-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.timeline-step-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy-blue);
}

.timeline-step-desc {
  font-size: 0.85rem;
  color: var(--text-gray);
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes shake {

  10%,
  90% {
    transform: translate3d(-1px, 0, 0);
  }

  20%,
  80% {
    transform: translate3d(2px, 0, 0);
  }

  30%,
  50%,
  70% {
    transform: translate3d(-4px, 0, 0);
  }

  40%,
  60% {
    transform: translate3d(4px, 0, 0);
  }
}

/* ==========================================================================
   Responsive Breakpoints & Media Queries
   ========================================================================== */

/* Tablet Layout */
/* @screen-tablet: 1024px; */
@media (max-width: 1024px) {

  /* Tablet: tighter padding instead of height — no reflow */
  .nav-container,
  .header-nav.scrolled .nav-container {
    padding-block: 16px;
  }

  /* Tablet: reset logo scale to base — we just let padding handle the height */
  .logo-img,
  .header-nav.scrolled .logo-img {
    height: 52px;
    transform: none;
  }

  .nav-menu {
    margin-left: 20px;
    gap: 16px;
  }

  .nav-right {
    gap: 16px;
  }

  .contact-info-list {
    display: none;
  }

  #navApplyBtn {
    height: auto;
    padding: 10px 20px;
    font-size: 0.85rem;
  }

  .hero-title {
    font-size: 3rem;
  }

  /* Tablet step card scaling */
  .step-number-badge {
    font-size: 1.25rem;
    width: 46px;
    height: 46px;
  }

  .step-title {
    font-size: 1.35rem;
  }

  .step-desc {
    font-size: 1.05rem;
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }
}

/* Mobile Layout */
@media (max-width: 768px) {

  .site-header-wrapper {
    position: static;
  }

  .header-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  /* Navigation Bar Mobile styling */
  /* Mobile: tighter padding instead of height — no reflow, no jitter */
  .nav-container,
  .header-nav.scrolled .nav-container {
    padding-block: 10px;
  }

  /* Mobile: fix logo height and reset scale transform */
  .logo-img,
  .header-nav.scrolled .logo-img {
    height: 64px;
    transform: none;
  }

  #navApplyBtn {
    display: none;
    /* Hide Apply Now button in the header on mobile to prevent crowding and overflow */
  }

  .nav-menu {
    position: fixed;
    top: 95px;
    /* Aligned exactly below the sticky header */
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--bg-white);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 40px;
    gap: 24px;
    margin: 0;
    /* Reset desktop margins to prevent horizontal shift and overflow */
    transition: var(--transition-normal);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    z-index: 999;
  }

  .nav-menu.active {
    left: 0;
  }

  .mobile-menu-btn {
    display: inline-flex;
    width: 80%;
    max-width: 280px;
    padding: 14px 28px;
    font-size: 0.95rem;
    margin-top: 8px;
  }

  .mobile-menu-btn:first-of-type {
    margin-top: 32px;
    /* Separate navigation links from action buttons */
  }

  .nav-right {
    gap: 16px;
  }

  .contact-info-list {
    display: none;
    /* Hide telephone/email links on mobile nav for clean design */
  }

  .mobile-nav-toggle {
    display: block;
  }

  /* Hero Section */
  .hero {
    height: auto;
    padding: 100px 0 80px;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  /* How It Works Grid — keep 2 columns on tablet portrait */
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .section-badge {
    font-size: 0.8rem;
    padding: 5px 14px;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .section-subtitle {
    font-size: 0.95rem;
  }

  /* Mobile step card scaling */
  .step-number-badge {
    font-size: 1.15rem;
    width: 44px;
    height: 44px;
  }

  .step-title {
    font-size: 1.25rem;
  }

  .step-desc {
    font-size: 1rem;
    line-height: 1.5;
  }

  /* CTA */
  .cta-title {
    font-size: 1.8rem;
  }

  /* Footer — Brand full-width, Quick Links + Legal side-by-side, Contact full-width */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  /* Brand column spans full width */
  .footer-grid> :nth-child(1) {
    grid-column: 1 / -1;
  }

  /* Contact column spans full width */
  .footer-grid> :nth-child(4) {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  /* Application Wizard modal sizing */
  .wizard-container {
    height: 100%;
    border-radius: 0;
  }

  .wizard-content {
    padding: 24px 20px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .form-group-full {
    grid-column: span 1;
  }

  .eligibility-text {
    font-size: 1.4rem;
  }

  .eligibility-options {
    flex-direction: column;
    align-items: center;
  }

  .eligibility-btn {
    width: 100%;
    max-width: 280px;
  }

  .megaphone-banner {
    gap: 4px;
  }

  .megaphone-banner a {
    margin-left: 0;
  }
}

/* ==========================================
   Dedicated Application Wizard & Figma Redesign Styles
   ========================================== */
.apply-page-wrapper {
  background-color: var(--bg-light);
  min-height: calc(100vh - 180px);
  padding: 60px 0 100px 0;
}

.apply-page-wrapper .wizard-container {
  position: relative;
  height: auto;
  min-height: 330px;
  max-width: 700px;
  margin: 0 auto;
  border-top: 6px solid var(--primary-red);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  transform: none;
  transition: none;
  display: flex;
  flex-direction: column;
}

.apply-page-wrapper .wizard-content {
  flex-grow: 1;
  padding: 40px;
  overflow-x: hidden;
  overflow-y: visible;
  justify-content: center;
}

.apply-page-wrapper .wizard-footer {
  border-top: 1px solid var(--border-color);
  padding: 24px 0;
  background-color: var(--bg-white);
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
}

/* Return to Home Pill Button */
.return-home-wrapper {
  max-width: 700px;
  margin: 0 auto 28px auto;
  width: 100%;
  display: flex;
  justify-content: flex-start;
}

.return-home-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background-color: rgba(0, 0, 0, 0.05);
  /* very soft light gray background */
  color: #1a1a1a;
  border-radius: var(--radius-pill);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.return-home-pill svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.return-home-pill:hover {
  background-color: rgba(0, 0, 0, 0.08);
  color: var(--primary-red);
}

.return-home-pill:hover svg {
  transform: translateX(-3px);
}

.eligibility-header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  max-width: 700px;
  margin: 0 auto 8px auto;
  width: 100%;
}

.eligibility-header-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 1.25rem;
  color: #7a7a7a;
  text-transform: none;
  /* sentence case */
  letter-spacing: normal;
  margin: 0;
}

.eligibility-header-counter {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--primary-red);
  margin: 0;
}

.eligibility-progress-track {
  background-color: #e2e8f0;
  height: 8px;
  width: 100%;
  max-width: 700px;
  margin: 0 auto 32px auto;
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.eligibility-progress-fill {
  background-color: var(--primary-red);
  height: 100%;
  width: 0%;
  border-radius: var(--radius-pill);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.apply-stepper-header {
  display: none;
  justify-content: space-between;
  align-items: center;
  max-width: 700px;
  margin: 0 auto 24px auto;
  width: 100%;
}

.apply-stepper-header .wizard-header-logo {
  height: 38px;
}

.eligibility-circle-badge {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background-color: #fce8e6;
  color: var(--primary-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  margin: 0 auto 20px auto;
}

.eligibility-question-wrapper {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.eligibility-question-wrapper .eligibility-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: #1a1a1a;
  line-height: 1.4;
  margin-bottom: 28px;
  text-align: center;
}

.eligibility-options {
  display: flex;
  justify-content: center;
  gap: 45px;
  margin-top: 8px;
}

.eligibility-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 36px;
  border-radius: var(--radius-pill);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.375rem;
  cursor: pointer;
  transition: all 0.25s ease;
  min-width: 140px;
  text-decoration: none;
  outline: none;
}

.eligibility-pill-btn svg {
  stroke-width: 3px;
  width: 28px;
  height: 28px;
}

.eligibility-pill-btn-yes {
  border: 1.5px solid rgba(16, 185, 129, 0.4);
  background-color: rgba(16, 185, 129, 0.06);
  color: #059669;
}

.eligibility-pill-btn-yes:hover {
  border-color: #10B981;
  background-color: rgba(16, 185, 129, 0.12);
  transform: translateY(-2px);
}

.eligibility-pill-btn-no {
  border: 1.5px solid rgba(239, 68, 68, 0.4);
  background-color: rgba(239, 68, 68, 0.06);
  color: #DC2626;
}

.eligibility-pill-btn-no:hover {
  border-color: #EF4444;
  background-color: rgba(239, 68, 68, 0.12);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .apply-page-wrapper {
    padding: 90px 0 30px 0;
  }

  .apply-page-wrapper .wizard-content {
    padding: 24px 20px;
  }

  .apply-page-wrapper .wizard-footer {
    padding: 16px 20px;
  }

  .qr-pane-header {
    margin: -24px -20px 0 -20px;
    padding: 22px 24px 20px;
    border-radius: 0;
  }

  .eligibility-question-wrapper .eligibility-text {
    font-size: 1.4rem;
    margin-bottom: 24px;
  }

  .eligibility-options {
    flex-direction: row;
    gap: 12px;
    width: 100%;
  }

  .eligibility-pill-btn {
    flex: 1;
    min-width: unset;
    padding: 10px 20px;
  }
}

.required-asterisk {
  color: var(--primary-red);
  margin-left: 2px;
  font-weight: bold;
}

/* ==========================================
   Success Modal Overlay & Premium Layout
   ========================================== */
.success-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(14, 27, 43, 0.65);
  /* Sleek translucent brand navy overlay */
  backdrop-filter: blur(8px);
  /* Blur background contents */
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
  padding: 24px;
}

.success-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Center modal box */
.success-modal-container {
  width: 100%;
  max-width: 820px;
  background-color: #F3F4F6;
  /* Premium light off-white/gray */
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 20px 40px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.success-modal-overlay.active .success-modal-container {
  transform: scale(1) translateY(0);
}

/* Modal header with Logo and Close X */
.success-modal-header {
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #F3F4F6;
  position: relative;
  border-bottom: 2px solid var(--primary-red);
  /* Solid red line stretching across */
}

.success-modal-logo {
  height: 48px;
  width: auto;
  display: block;
}

.success-modal-close {
  background: none;
  border: none;
  color: var(--text-gray);
  cursor: pointer;
  padding: 8px;
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.success-modal-close:hover {
  color: var(--primary-red);
  background-color: rgba(0, 0, 0, 0.05);
}

/* Scrollable modal content area */
.success-modal-body {
  padding: 32px 56px;
  overflow-y: auto;
  max-height: calc(90vh - 100px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Elegant thin scrollbar for success modal */
.success-modal-body::-webkit-scrollbar {
  width: 6px;
}

.success-modal-body::-webkit-scrollbar-track {
  background: transparent;
}

.success-modal-body::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.12);
  border-radius: 3px;
}

.success-modal-body::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 0, 0, 0.24);
}

/* Application Received Badge */
.success-modal-body .success-badge {
  background-color: #E6F4EA;
  color: #137333;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
}

/* Success Title */
.success-modal-body .success-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 2.35rem;
  color: var(--navy-blue);
  line-height: 1.25;
  margin-bottom: 16px;
}

.success-modal-body .success-title .red-text {
  color: var(--primary-red);
}

/* Success Subtitle */
.success-modal-body .success-desc {
  font-size: 1.05rem;
  color: var(--text-body);
  max-width: 620px;
  margin-bottom: 36px;
  line-height: 1.55;
}

/* What Happens Next Card Container */
.success-next-steps-card {
  width: 100%;
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px 36px;
  text-align: left;
  margin-bottom: 36px;
  box-shadow: var(--shadow-sm);
}

.success-next-steps-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy-blue);
  margin-bottom: 24px;
}

/* Timeline steps */
.success-next-steps-card .timeline-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.success-next-steps-card .timeline-step-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.success-next-steps-card .timeline-step-circle {
  width: 28px;
  height: 28px;
  background-color: var(--navy-blue);
  color: var(--bg-white);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.success-next-steps-card .timeline-step-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.success-next-steps-card .timeline-step-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy-blue);
}

.success-next-steps-card .timeline-step-desc {
  font-size: 0.88rem;
  color: var(--text-gray);
  line-height: 1.45;
}

/* Actions Buttons Section */
.success-modal-body .success-buttons-container {
  display: flex;
  gap: 20px;
  justify-content: center;
  width: 100%;
}

.success-modal-body .success-buttons-container .btn {
  padding: 14px 32px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  min-width: 200px;
  transition: var(--transition-normal);
}

.success-btn-email {
  background-color: var(--primary-red);
  color: var(--bg-white) !important;
  border: none;
  box-shadow: 0 4px 12px rgba(197, 31, 51, 0.35);
}

.success-btn-email:hover {
  background-color: var(--primary-red-hover);
  color: var(--bg-white) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(197, 31, 51, 0.45);
}

.success-btn-email svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.success-btn-return {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  color: var(--text-dark) !important;
}

.success-btn-return:hover {
  background-color: var(--bg-light);
  border-color: var(--text-gray);
  color: var(--text-dark) !important;
  transform: translateY(-2px);
}

.success-btn-return svg {
  width: 18px;
  height: 18px;
}

/* Blur backdrop background when modal is open */
body.success-modal-open .apply-page-wrapper,
body.success-modal-open .site-header-wrapper {
  filter: blur(8px);
  pointer-events: none;
}

/* Responsive media queries */
@media (max-width: 768px) {
  .success-modal-overlay {
    padding: 0;
  }

  .success-modal-container {
    height: 100%;
    max-height: 100vh;
    border-radius: 0;
    max-width: 100%;
  }

  .success-modal-header {
    padding: 16px 20px;
  }

  .success-modal-logo {
    height: 38px;
  }

  .success-modal-body {
    padding: 32px 24px;
    height: calc(100vh - 72px);
  }

  .success-modal-body .success-title {
    font-size: 1.85rem;
  }

  .success-next-steps-card {
    padding: 24px;
    margin-bottom: 28px;
  }

  .success-modal-body .success-buttons-container {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }

  .success-modal-body .success-buttons-container .btn {
    width: 100%;
    max-width: 300px;
  }
}

/* ==========================================
   Jobs Available Page Styles
   ========================================== */
.jobs-hero {
  position: relative;
  background-color: var(--navy-blue-dark);
  padding: 100px 0 80px 0;
  text-align: center;
  color: var(--bg-white);
  min-height: 380px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.jobs-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg, rgba(14, 27, 43, 0.85) 0%, rgba(14, 27, 43, 0.7) 100%);
  z-index: 2;
  pointer-events: none;
}

.jobs-hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
}

.jobs-hero-badge {
  display: inline-block;
  background-color: var(--primary-red);
  color: var(--bg-white);
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 20px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}

.jobs-hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--bg-white);
  margin-bottom: 16px;
  line-height: 1.2;
}

.jobs-hero-desc {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Jobs Search & Grid Container */
.jobs-section {
  padding: 60px 0 100px;
  background-color: var(--bg-light);
}

.jobs-search-wrapper {
  max-width: 320px;
  margin-bottom: 40px;
  position: relative;
}

.jobs-search-input {
  width: 100%;
  padding: 12px 16px 12px 48px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  outline: none;
  font-size: 0.95rem;
  background-color: var(--bg-white);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.jobs-search-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(197, 31, 51, 0.1);
}

.jobs-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-gray);
  width: 20px;
  height: 20px;
  pointer-events: none;
}

/* Job Cards Grid */
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.job-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 32px 30px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.job-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(197, 31, 51, 0.15);
}

.job-card-badge {
  display: inline-block;
  align-self: flex-start;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

/* Color palettes for badges */
.job-card-badge.part-time {
  background-color: #EEF2F6;
  color: #475569;
}

.job-card-badge.full-time {
  background-color: #E0F2FE;
  color: #0369A1;
}

.job-card-badge.contract {
  background-color: #F0FDF4;
  color: #166534;
}

.job-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy-blue);
  margin-bottom: 16px;
  line-height: 1.3;
}

.job-card-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.job-card-detail-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-gray);
}

.job-card-detail-item svg {
  width: 18px;
  height: 18px;
  color: var(--primary-red);
  flex-shrink: 0;
}

.job-card-desc {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.55;
  margin-bottom: 28px;
  flex-grow: 1;
}

.job-card-apply-btn {
  width: 100%;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--primary-red);
  color: var(--bg-white) !important;
  border: none;
  transition: var(--transition-normal);
}

.job-card-apply-btn:hover {
  background-color: var(--primary-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(197, 31, 51, 0.3);
}

.job-card-apply-btn svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.job-card-apply-btn:hover svg {
  transform: translateX(4px);
}

/* No results state styling */
.jobs-no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.jobs-no-results-icon {
  width: 64px;
  height: 64px;
  color: var(--text-gray);
  margin: 0 auto 16px;
  opacity: 0.6;
}

.jobs-no-results-title {
  font-size: 1.5rem;
  color: var(--navy-blue);
  margin-bottom: 8px;
}

.jobs-no-results-desc {
  color: var(--text-gray);
  max-width: 400px;
  margin: 0 auto;
}

/* Tablet & Mobile Responsiveness */
@media (max-width: 1024px) {
  .jobs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .jobs-hero-title {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .jobs-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .jobs-hero {
    padding: 80px 0 60px 0;
    min-height: auto;
  }

  .jobs-hero-title {
    font-size: 2.2rem;
  }

  .jobs-search-wrapper {
    max-width: 100%;
    margin-bottom: 30px;
  }
}

/* ==========================================================================
   COMPREHENSIVE RESPONSIVE OVERRIDES
   Covers: index.html  |  apply.html  |  jobs.html
   Breakpoints: 1024px (tablet) · 768px (mobile) · 480px (small phone)
   ========================================================================== */

/* ── 1024px – Tablet ─────────────────────────────────────────── */
@media (max-width: 1024px) {

  /* Container breathing room */
  .container {
    padding: 20px;
  }

  /* Hero */
  .hero-title {
    font-size: 3rem;
  }

  .hero-description {
    font-size: 1.05rem;
  }

  /* CTA */
  .cta {
    padding: 80px 0;
  }

  .cta-title {
    font-size: 2.2rem;
  }

  /* Footer */
  .footer {
    padding: 60px 0 24px;
  }

  /* Apply page wizard */
  .apply-page-wrapper {
    padding: 40px 0 60px;
  }

  .apply-page-wrapper .wizard-container {
    max-width: 90%;
  }

  /* Jobs */
  .jobs-hero {
    min-height: 320px;
    padding: 80px 0 60px;
  }

  .jobs-section {
    padding: 48px 0 80px;
  }
}

/* ── 768px – Mobile ──────────────────────────────────────────── */
@media (max-width: 768px) {

  /* Container */
  .container {
    padding: 16px;
  }

  /* Hero — remove full-screen height on mobile portrait */
  .hero {
    min-height: auto;
    min-height: unset;
    height: auto;
    padding: 60px 0 50px;
    text-align: center;
  }

  .hero-title {
    font-size: 2.2rem;
    line-height: 1.25;
  }

  .hero-description {
    font-size: 0.95rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 300px;
  }

  /* How it Works */
  .how-it-works {
    padding: 60px 0;
  }

  .section-header {
    margin-bottom: 36px;
  }

  .section-title {
    font-size: 1.75rem;
  }

  /* CTA */
  .cta {
    padding: 60px 0;
  }

  .cta-title {
    font-size: 1.75rem;
  }

  .cta-desc {
    font-size: 1rem;
  }

  /* Footer */
  .footer {
    padding: 48px 0 20px;
  }

  /* Footer — Brand full-width, Quick Links + Legal side-by-side, Contact full-width */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  /* Brand column spans full width */
  .footer-grid> :nth-child(1) {
    grid-column: 1 / -1;
  }

  /* Contact column spans full width */
  .footer-grid> :nth-child(4) {
    grid-column: 1 / -1;
  }

  /* Contact details — 3 items in one horizontal row */
  .contact-details {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 24px;
  }

  .contact-detail-item {
    flex: 1;
    min-width: 160px;
  }

  .footer-col-1 .logo-img {
    height: 44px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  /* Apply page */
  .apply-page-wrapper {
    padding: 80px 0 40px;
  }

  .apply-page-wrapper .wizard-container {
    max-width: 100%;
    border-radius: 0;
    border-top-width: 4px;
    margin: 0;
  }

  .apply-page-wrapper .wizard-content {
    padding: 24px 16px;
  }

  .apply-page-wrapper .wizard-footer {
    padding: 16px;
  }

  .wizard-footer .btn {
    min-width: auto;
    font-size: 0.88rem;
    padding: 10px 18px;
  }

  .return-home-wrapper {
    max-width: 100%;
    padding: 0 16px;
  }

  .eligibility-header-wrapper {
    max-width: 100%;
    padding: 0 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .eligibility-progress-track {
    max-width: 100%;
    margin-bottom: 24px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .form-group-full {
    grid-column: span 1;
  }

  .review-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .wizard-stepper {
    gap: 0;
    overflow-x: auto;
    padding: 0 4px 8px;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
  }

  .stepper-step-label {
    font-size: 0.65rem;
  }

  .subpane-card-header {
    margin: -24px -16px 0 -16px;
    border-radius: 0;
    padding: 16px 20px;
  }

  .subpane-card-body {
    padding: 18px 16px 20px;
  }

  .custom-radio-container {
    flex-direction: column;
  }

  .form-row-inline {
    flex-direction: column;
  }

  .postcode-wrapper {
    flex-direction: column;
  }

  #postcodeFindBtn {
    width: 100%;
    padding: 12px;
  }

  /* Success modal */
  .success-modal-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .success-modal-container {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    max-height: 92vh;
  }

  .success-modal-body {
    padding: 24px 16px 32px;
  }

  /* Jobs page */
  .jobs-hero {
    min-height: auto;
    padding: 70px 0 50px;
    text-align: center;
  }

  .jobs-hero-title {
    font-size: 2rem;
    line-height: 1.25;
  }

  .jobs-hero-desc {
    font-size: 0.95rem;
  }

  .jobs-section {
    padding: 40px 0 60px;
  }

  /* Jobs grid — keep 2 columns on tablet portrait */
  .jobs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .job-card {
    padding: 24px 20px;
  }

  .job-card-title {
    font-size: 1.3rem;
  }
}

/* ── 540px – Collapse grids to single column ──────────────── */
@media (max-width: 540px) {
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .jobs-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ── 480px – Small Phone ─────────────────────────────────────── */
@media (max-width: 480px) {

  /* Container */
  .container {
    padding: 14px;
  }

  /* Navigation */
  .logo-img,
  .header-nav.scrolled .logo-img {
    height: 64px;
  }

  /* Hero */
  .hero {
    padding: 80px 0 60px;
  }

  .hero-title {
    font-size: 1.9rem;
  }

  .hero-description {
    font-size: 0.9rem;
  }

  /* How it Works */
  .how-it-works {
    padding: 48px 0;
  }

  .section-title {
    font-size: 1.55rem;
  }

  .step-card {
    padding: 22px 18px 26px;
  }

  .step-title {
    font-size: 1.15rem;
  }

  .step-desc {
    font-size: 0.9rem;
  }

  /* CTA */
  .cta {
    padding: 48px 0;
  }

  .cta-title {
    font-size: 1.55rem;
  }

  .cta-desc {
    font-size: 0.9rem;
    margin-bottom: 24px;
  }

  /* Megaphone banner */
  .megaphone-banner {
    font-size: 0.78rem;
    padding: 8px 16px;
    text-align: center;
    flex-direction: column;
  }

  /* Footer */
  .footer {
    padding: 40px 0 16px;
  }

  .footer-title {
    font-size: 0.95rem;
    margin-bottom: 16px;
  }

  .footer-desc {
    font-size: 0.85rem;
  }

  .footer-link a {
    font-size: 0.85rem;
  }

  .footer-bottom {
    font-size: 0.75rem;
  }

  /* Apply page */
  .apply-page-wrapper {
    padding: 70px 0 32px;
  }

  .apply-page-wrapper .wizard-content {
    padding: 20px 14px;
  }

  .return-home-pill {
    font-size: 0.85rem;
    padding: 8px 18px;
  }

  .eligibility-question-wrapper .eligibility-text {
    font-size: 1.2rem;
  }

  .eligibility-pill-btn {
    font-size: 1.1rem;
    padding: 10px 16px;
  }

  .eligibility-pill-btn svg {
    width: 22px;
    height: 22px;
  }

  .wizard-stepper {
    gap: 0;
  }

  .stepper-step {
    min-width: 50px;
  }

  .stepper-step-num {
    width: 30px;
    height: 30px;
    font-size: 0.72rem;
  }

  .stepper-step-label {
    font-size: 0.6rem;
  }

  .qr-pane-title {
    font-size: 1.25rem;
  }

  .wizard-footer .btn {
    font-size: 0.82rem;
    padding: 8px 14px;
  }

  /* Success modal */
  .success-modal-body .success-title {
    font-size: 1.5rem;
  }

  .success-modal-body .success-desc {
    font-size: 0.9rem;
  }

  .success-next-steps-card {
    padding: 18px 16px;
  }

  .success-modal-body .success-buttons-container .btn {
    font-size: 0.85rem;
    padding: 12px 20px;
  }

  /* Jobs page */
  .jobs-hero {
    padding: 60px 0 40px;
  }

  .jobs-hero-title {
    font-size: 1.75rem;
  }

  .jobs-hero-badge {
    font-size: 0.72rem;
    padding: 5px 14px;
  }

  .jobs-section {
    padding: 32px 0 48px;
  }

  .job-card {
    padding: 20px 16px;
  }

  .job-card-title {
    font-size: 1.2rem;
  }

  .job-card-desc {
    font-size: 0.88rem;
  }

  .job-card-apply-btn {
    font-size: 0.82rem;
    padding: 10px 18px;
  }
}