
/* =========================================================
   QONÈKT – FLAT DESIGN SYSTEM
   Complete global stylesheet (production-ready)
   ========================================================= */

/* -----------------------------
   BRAND COLOR SYSTEM & TOKENS
------------------------------ */
:root {
  /* Brand */
  --blue: #0A2E75;
  --yellow: #F2C438;
  --ink: #0B1220;

  /* Grays */
  --gray-100: #F4F6F9;
  --gray-200: #E2E6EC;
  --gray-300: #C8D0DB;
  --gray-600: #4F647E;

  /* Base */
  --white: #FFFFFF;
  --bg: var(--gray-100);

  /* Radii */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;

  /* Typography */
  --font-body: 'Lato', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-heading: 'Open Sans', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  /* Spacing scale */
  --s2: 4px;
  --s3: 6px;
  --s4: 8px;
  --s5: 12px;
  --s6: 16px;
  --s7: 24px;
  --s8: 32px;
  --s9: 48px;
  --s10: 64px;

  /* Hero icon color (one-color mask icons) */
  --hero-icon-color: #F2C438; /* switch to #FFF if needed for contrast */
}

/* -----------------------------
   GLOBAL RESET & BASE
------------------------------ */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--gray-600);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a   { color: var(--blue); text-decoration: none; }
.hidden { display: none !important; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--s6); }
.center { text-align: center; }
.tiny   { font-size: 12px; color: var(--gray-600); }

/* -----------------------------
   TYPOGRAPHY
------------------------------ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--blue);
  font-weight: 700;
  line-height: 1.2;
}

/* ============================================
   Top Notification Bar (collapsible)
   ============================================ */
.notify-bar{
  position: sticky;
  top: 0;
  z-index: 90;                /* above nav (which was 60) */
  background: var(--yellow);
  color: var(--ink);
  overflow: hidden;
  /* Expanded by default via JS: we transition to a 2px line when collapsed */
  max-height: 80px;           /* enough for one line + padding */
  padding: 10px 0;            /* vertical padding when expanded */
  border-bottom: 1px solid rgba(0,0,0,.06);
  transition: max-height .28s ease, padding .28s ease, border-color .28s ease;
  will-change: max-height, padding;
}

.notify-bar.is-collapsed{
  max-height: 12px;            /* thin line when collapsed */
  padding-top: 0;
  padding-bottom: 0;
  border-bottom-color: transparent;
}

.notify-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s6);
}

.notify-text{
  margin: 0;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 700;           /* punchy single-line text */
}

.notify-actions a.notice-link{
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(2,8,23,.12);
  color: var(--blue);
  font-weight: 800;
  font-size: 12px;
}

/* Center toggle tab that sticks out below the bar */
.notify-toggle{
  position: absolute;
  left: 50%;
  top: 100%;                   /* render just below the bar edge */
  transform: translate(-50%, -50%); /* half overlap */
  width: 28px;
  height: 20px;
  background: #fff;
  color: var(--blue);
  border: 1px solid rgba(2,8,23,.12);
  border-radius: 999px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}

.notify-bar.is-collapsed .notify-toggle{
  /* flip chevron to indicate expand */  
  /* Ensure toggle overlaps a collapsed bar correctly */
  top: 100%;               /* stays below */
  transform: translate(-50%, -50%);

}

.notify-toggle:focus{ outline: 12px solid #0000; box-shadow: 0 0 0 2px rgba(10,46,117,.25); }

/* Rotate chevron based on expanded/collapsed state */
.notify-toggle svg{
  transition: transform .2s ease;
  margin-top: -8px;
}

.notify-bar.is-collapsed .notify-toggle svg{
  transform: rotate(180deg);
}

/* Hide the 'See service status' button when the bar is collapsed */
.notify-bar.is-collapsed .notify-actions {
  display: none;
}

/* Hide ONLY the notification text + actions when collapsed */
.notify-bar.is-collapsed .notify-inner {
  /*display: none;*/
  color: var(--yellow);
}

@media (max-width: 700px){
  .notify-inner{
    gap: var(--s4);
  }
  .notify-text{
    font-size: 13px;
    font-weight: 700;
  }
  .notify-actions a.notice-link{
    font-size: 12px;
    padding: 6px 10px;
  }
}

/* =========================================================
   NAVIGATION
========================================================= */
.nav {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 60;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav a img { height: 90px; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  font-size: 24px;
  color: var(--blue);
  cursor: pointer;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--s7);
}

.nav-menu a {
  font-weight: 700;
  font-size: 15px;
  color: var(--blue);
}

.lang-switch { display: flex; gap: var(--s4); }

.lang-switch button {
  padding: var(--s3) var(--s5);
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1px solid var(--gray-300);
  font-weight: 700;
  cursor: pointer;
  color: var(--blue);
  min-width: 44px; /* touch target */
}

.lang-switch button.active {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-menu {
    display: none;
    flex-direction: column;
    background: var(--white);
    width: 100%;
    padding: var(--s6);
    border-bottom: 1px solid var(--gray-200);
  }
  .nav-menu.open { display: flex; }
}

/* =========================================================
   HERO BANNER
========================================================= */
.hero {
  position: relative;
  background: url('../images/background-online-form.jpg') center/cover no-repeat;
  padding: var(--s10) 0;
  color: var(--white);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 46, 117, 0.25); /* lighter overlay per request */
}

.hero-box {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

.hero-title {
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 800;
  margin-bottom: var(--s4);
  color: var(--white);
}

.hero-title .em { color: var(--yellow); }

.hero-sub {
  font-size: 20px;
  margin-bottom: var(--s5);
  color: var(--white);
}

/* ---- Hero list with ONE-COLOR MASK SVG ICONS ---- */
.hero-list {
  list-style: none;
  margin-bottom: var(--s7);
  padding: 0;
}

.hero-item {
  display: grid;
  grid-template-columns: 28px auto;
  align-items: start;
  gap: 10px;
  margin-bottom: var(--s3);
  color: #fff;
  font-size: 18px;
}

/* Mask-based icon block: recolor with background-color */

/* --- HERO ICONS (final patch) --- */
.hero-icon {
  width: 24px;
  height: 24px;
  display: inline-block;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* Individual icons */
.icon-home {
  background-image: url('icons/hero-home.svg');
}

.icon-briefcase {
  background-image: url('icons/hero-briefcase.svg');
}

.icon-wifi {
  background-image: url('icons/hero-wifi.svg');
}

.icon-wrench {
  background-image: url('icons/hero-wrench.svg');
}


/* CTA buttons */
.hero-cta { display: flex; gap: var(--s4); flex-wrap: wrap; }
.btn-primary {
  padding: var(--s5) var(--s7);
  background: var(--yellow);
  color: var(--blue);
  font-weight: 800;
  border-radius: var(--radius);
  border-width: 0px;
}
.btn-secondary {
  padding: var(--s5) var(--s7);
  background: var(--blue);
  color: var(--yellow);
  font-weight: 800;
  border-radius: var(--radius);
  border-width: 0px;
}
.btn-outline {
  padding: var(--s5) var(--s7);
  background: transparent;
  border: 2px solid var(--yellow);
  color: var(--yellow);
  font-weight: 700;
  border-radius: var(--radius);
}

/* =========================================================
   SECTION WRAPPER
========================================================= */
.section { padding: var(--s9) 0; }
.section-title { font-size: 32px; font-weight: 800; margin-bottom: var(--s7); }

/* =========================================================
   FEATURES
========================================================= */
.grid { display: grid; gap: var(--s7); }

.features-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .features-grid { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  padding: var(--s7);
}

.feature .icon img { width: 42px; margin-bottom: var(--s5); }
.feature h3 { margin-bottom: var(--s4); font-size: 20px; }
.feature p  { font-size: 16px; }

/* =========================================================
   PLANS SECTION
========================================================= */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s6);
}

.seg-switch { display: flex; gap: var(--s4); }
.seg-btn {
  border: 1px solid var(--gray-300);
  background: var(--white);
  padding: var(--s4) var(--s6);
  border-radius: var(--radius);
  font-weight: 700;
  cursor: pointer;
}
.seg-btn.active { background: var(--blue); color: var(--white); }

.plans-grid {
  margin-top: var(--s7);
  display: grid;
  gap: var(--s7);
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 900px) { .plans-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .plans-grid { grid-template-columns: 1fr; } }

.plan h3 { font-size: 22px; font-weight: 800; margin-bottom: var(--s5); }
.plan.highlight { border: 2px solid var(--yellow); }

.price { font-size: 24px; font-weight: 800; color: var(--ink); margin-bottom: var(--s4); }
.promo { color: var(--yellow); font-weight: 700; margin-bottom: var(--s5); }

.plan-list {
  list-style: none;
  margin-bottom: var(--s6);
}

/* Checkmarks for plan features */
.plan-list li {
  font-size: 15px;
  margin-bottom: var(--s3);
  position: relative;
  padding-left: 22px;
}
.plan-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--yellow);
  font-weight: 900;
}

.plan-cta { display: flex; gap: var(--s4); }
.plan-cta a {
  padding: var(--s4) var(--s6);
  border-radius: var(--radius);
  font-weight: 700;
  background: var(--blue);
  color: var(--white);
  font-size: 15px;
}

/* =========================================================
   MESH WIFI COVERAGE BOX
========================================================= */
.mesh-box {
  margin-top: var(--s8);
  padding: var(--s8);
  background: var(--white);
  border: 2px solid var(--yellow);
  border-radius: var(--radius-lg);
}

.mesh-desc {
  font-size: 16px;
  margin-bottom: var(--s5);
  color: var(--ink);
}

.mesh-list {
  list-style: none;
  margin-bottom: var(--s6);
  padding: 0;
}

.mesh-list li {
  margin-bottom: var(--s3);
  font-size: 15px;
  position: relative;
  padding-left: 22px;
}
.mesh-list li::before {
  content: "✔";
  position: absolute;
  top: 0;
  left: 0;
  color: var(--blue);
  font-weight: 900;
}

.mesh-btn {
  background: var(--blue);
  color: var(--white);
  padding: var(--s4) var(--s6);
  border-radius: var(--radius);
  font-weight: 700;
  display: inline-block;
}


/* ===============================================
   Wi‑Fi Coverage Section — AT&T‑Style Redesign
   =============================================== */

/* Gray rounded border for Wi‑Fi Coverage section */
.wifi-pro-section {
  margin-top: 20px;
  border: 1px solid var(--gray-200);
  border-radius: 18px;
  padding: var(--s10) var(--s6);
  background: var(--white);
  box-sizing: border-box;
}

.wifi-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--s10);
  align-items: center;
}

@media (max-width: 900px) {
  .wifi-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.wifi-left {}

.wifi-title {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: var(--s5);
}

.wifi-sub {
  font-size: 18px;
  color: var(--gray-600);
  max-width: 520px;
  margin-bottom: var(--s7);
}

.wifi-benefits {
  list-style: none;
  margin: 0 0 var(--s7);
  padding: 0;
}

.wifi-benefits li {
  font-size: 16px;
  margin-bottom: var(--s3);
  padding-left: 22px;
  position: relative;
  color: var(--ink);
}

.wifi-benefits li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--yellow);
  font-weight: 900;
}

.wifi-cta a {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  padding: var(--s5) var(--s7);
  border-radius: var(--radius);
  font-weight: 700;
}

.wifi-right {
  position: relative;
  display: flex;
  justify-content: center;
}

.wifi-router-ring {
  position: relative;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: transparent;
}

.wifi-router-img {
  width: 200px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Radiating Wi‑Fi rings */
.wifi-router-ring::before,
.wifi-router-ring::after {
  content: "";
  position: absolute;
  border: 2px solid rgba(10, 46, 117, 0.15);
  border-radius: 50%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.wifi-router-ring::before {
  width: 320px;
  height: 320px;
}

.wifi-router-ring::after {
  width: 260px;
  height: 260px;
}

/* Icon bubbles */
.wifi-icon {
  position: absolute;
  width: 70px;
  height: 70px;
  background-color: var(--yellow);
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.wifi-icon img,
.wifi-icon svg {
  width: 40px;
  height: 40px;
  fill: var(--blue);
}

/* Icon positions around the router */
.wifi-i1 { top: 10%; left: 50%; transform: translate(-50%, 0); }
.wifi-i2 { top: 30%; right: 5%; transform: translate(0, -50%); }
.wifi-i3 { bottom: 30%; right: 5%; transform: translate(0, 50%); }
.wifi-i4 { bottom: 10%; left: 50%; transform: translate(-50%, 0); }
.wifi-i5 { top: 30%; left: 5%; transform: translate(-0, -50%); }

@media (max-width: 900px) {
  .wifi-router-ring {
    width: 300px;
    height: 300px;
  }
}


/* =========================================================
   DEALS + STATUS
========================================================= */
.tabs {
  display: flex;
  gap: var(--s4);
  margin-bottom: var(--s6);
}

.tab-btn {
  padding: var(--s4) var(--s6);
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-weight: 700;
  cursor: pointer;
}
.tab-btn.active { background: var(--blue); color: var(--white); }

.deal-grid {
  display: grid;
  gap: var(--s6);
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 700px) { .deal-grid { grid-template-columns: 1fr; } }

/* =========================================================
   CONTACT
========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--s7);
}
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-form {
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: var(--s7);
  border-radius: var(--radius-lg);
}

.contact-form label {
  font-weight: 700;
  color: var(--blue);
  margin-bottom: var(--s3);
  display: block;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: var(--s4);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  margin-bottom: var(--s6);
  font-size: 16px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form .form-status {
  margin: 0;
  margin-top: var(--s4);
  min-height: 1.2em;
}

.contact-form button {
  background: var(--yellow);
  color: var(--ink);
  padding: var(--s5) var(--s7);
  border-radius: var(--radius);
  font-weight: 800;
  cursor: pointer;
  border: 0;
  font-size: 16px;
}

.contact-alt {
  background: var(--white);
  padding: var(--s7);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
}

.contact-alt ul { list-style: none; margin-bottom: var(--s5); }
.contact-alt li { margin-bottom: var(--s3); }

.contact-alt p {
  margin: 0 0 8px;
}

.contact-alt a {
  color: var(--brand-blue);
  text-decoration: none;
}

.contact-alt a:hover {
  text-decoration: underline;
}

.business-hours {
  margin-top: 16px;
}

.business-hours h4 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  color: var(--brand-blue);
}

.business-hours ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.business-hours li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9rem;
  padding: 4px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.business-hours li:last-child {
  border-bottom: none;
}

/* =========================================================
   FOOTER
========================================================= */
.footer {
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  padding: var(--s7) 0 var(--s10);
}

/* =========================================================
   Service Area Validator
========================================================= */

/* Two‑column layout for validator + map */
.sa-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s8);
  align-items: start;
}

@media (max-width: 900px) {
  .sa-grid {
    grid-template-columns: 1fr;
  }
}

/* Map Container */
.sa-map-box {
  padding: 0;
  overflow: hidden;
}

.sa-map-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
}


/* =============================
   SERVICE AREA INPUT STYLING
   ============================= */

.sa-field {
  margin-bottom: var(--s7);
}

.sa-field label {
  display: block;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--blue);
  margin-bottom: var(--s3);
}

/* Shared input/select style */
.sa-input {
  width: 100%;
  padding: var(--s5);
  font-size: 16px;
  color: var(--ink);
  background: var(--white);
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-lg);
  transition: border-color .25s ease, box-shadow .25s ease;
  appearance: none;
}

/* Flat select arrow */
.sa-select {
  background-image: url("data:image/svg+xml;utf8,<svg fill='%230A2E75' height='16' width='16' viewBox='0 0 24 24'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
}

/* Focus state — matches your site button focus glow */
.sa-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(10,46,117,0.2);
  outline: none;
}

/* Submit button full width for consistency */
.sa-submit {
  width: 100%;
  padding: var(--s6);
  border-radius: var(--radius-lg);
  font-size: 18px;
  margin-top: var(--s4);
}


/* Autocomplete List */
.field{position:relative;}

/* Make a field span full width inside .pr-grid when needed */
.field--full{grid-column:1 / -1;}


.sa-autocomplete {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  background: white;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  max-height: 200px;
  overflow-y: auto;
  position: absolute;
  width: 100%;
  z-index: 5000;
  display: none;
}

.sa-autocomplete li {
  padding: 10px;
  cursor: pointer;
  border-bottom: 1px solid var(--gray-200);
}

.sa-autocomplete li:hover {
  background: var(--gray-100);
}

.sa-autocomplete li:last-child {
  border-bottom: none;
}

.map-legend {
  background: #ffffff;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--gray-300);
  font-size: 14px;
  line-height: 1.4;
}

.legend-item {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
}


/* =============================
   Qonèkt Modal (Lightbox)
   ============================= */
.qk-modal[aria-hidden="true"] { display: none; }

.qk-modal {
  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-items: center;
}

.qk-backdrop {
  position: absolute; inset: 0;
  background: rgba(2,8,23,0.45);
  backdrop-filter: blur(2px);
}

.qk-dialog {
  position: relative;
  z-index: 1;
  width: min(560px, 92vw);
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  box-shadow: 0 12px 50px rgba(2,8,23,0.35);
  padding: var(--s8);
  outline: none;
}

.qk-close {
  position: absolute;
  top: 12px;
  right: 12px;

  width: 36px;
  height: 36px;

  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.06);

  color: #111;
  font-size: 22px;
  font-weight: 600;
  line-height: 1;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  padding: 0;
}

.qk-close::before {
  content: "×";
}

.qk-close:hover {
  background: rgba(0, 0, 0, 0.12);
}

.qk-close:focus {
  outline: 2px solid #0b5fff; /* or your brand color */
  outline-offset: 2px;
}

.qk-head {
  display: flex; align-items: center; gap: var(--s5);
  margin-bottom: var(--s6);
}

.qk-badge {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 999px;
  font-weight: 900; color: var(--white);
}

.qk-badge--success { background: #26b826; }
.qk-badge--warn    { background: #ff8c00; }
.qk-badge--info    { background: var(--blue); }

.qk-title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 800; color: var(--blue);
  font-size: 22px;
}

.qk-body {
  color: var(--ink);
  font-size: 16px; line-height: 1.55;
}

.qk-actions {
  margin-top: var(--s7);
  display: flex; gap: var(--s4); flex-wrap: wrap;
}

.btn-outline {
  padding: var(--s5) var(--s7);
  background: transparent;
  border: 2px solid var(--gray-300);
  color: var(--blue);
  border-radius: var(--radius);
  font-weight: 800;
  cursor: pointer;
}

/* Ensure form section stays above backdrop on mobile */
.sa-card, .card { position: relative; z-index: 0; }

.sa-result {
  margin-top: 20px;
  padding: 15px;
  border-radius: 6px;
  background: #f3f3f3;
}

.qk-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  display: none;
}

.qk-modal[aria-hidden="false"] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.qk-modal-content {
  background: #fff;
  padding: 20px;
  max-width: 420px;
  border-radius: 8px;
}

.btn {
  display: inline-block;
  padding: 10px 15px;
  background: #0077cc;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
}

/* =============================
   Qonèkt Pre-Registration (Lightbox)
   ============================= */

.input-error { border-color: #d33 !important; box-shadow: 0 0 0 3px rgba(211,51,51,.12); }
.help-error { color: #d33; font-size: 12px; margin-top: 4px; }

/* Checkbox + label row (inline layout) */
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.checkbox-row input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px; /* vertical alignment with first line of label */
  accent-color: var(--blue);
  cursor: pointer;
}

.checkbox-row label {
  font-size: 15px;
  color: var(--ink);
  cursor: pointer;
  font-weight: 600;
  line-height: 1.4;
}

/* Explanatory note below the Pending Termination checkbox */
.pending-termination-note {
  margin-top: var(--s3);
  margin-left: 28px; /* align with label text (skip checkbox width + gap) */
  font-style: italic;
  color: var(--gray-600);
  font-size: 13px;
}


/* =========================================================
   Service Availability — Feedback (final overrides)
   Keeps flat design + ensures success/error are visible.
========================================================= */
.sa-result {
  margin-top: var(--s6);
  padding: var(--s6);
  border-radius: var(--radius-lg);
  border: 2px solid var(--gray-300);
  background: var(--gray-100);
  color: var(--ink);
  line-height: 1.5;
}

.sa-success {
  border-color: rgba(38,184,38,0.45);
  background: rgba(38,184,38,0.10);
}

.sa-error {
  border-color: rgba(217,83,79,0.55);
  background: rgba(217,83,79,0.10);
}


/* =========================================================
   PROCESSING LIGHTBOX (GLOBAL)
   Used by Availability, Pre-Application, Application
========================================================= */

/* Spinner */
.qk-spinner {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 4px solid rgba(0,0,0,.15);
  border-top-color: rgba(0,0,0,.6);
  animation: qkspin 1s linear infinite;
  margin: 16px auto;
}

@keyframes qkspin {
  to { transform: rotate(360deg); }
}

/* Processing state disables close/actions */
.qk-modal.processing .qk-close,
.qk-modal.processing .qk-actions a,
.qk-modal.processing .qk-actions button {
  pointer-events: none;
  opacity: .6;
}

/* Processing info text */
.qk-processing-text {
  text-align: center;
  font-weight: 700;
  margin-top: 8px;
  color: var(--blue);
}

/* Application Summary Table */
.qk-summary-table {
  width: 100%;
  margin: 20px 0;
  border-collapse: collapse;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.qk-summary-table tbody tr {
  border-bottom: 1px solid var(--border-grey, #e5e7eb);
}

.qk-summary-table tbody tr:last-child {
  border-bottom: none;
}

.qk-summary-table tbody tr:nth-child(even) {
  background-color: var(--bg-light, #f9fafb);
}

.qk-summary-table td {
  padding: 12px 16px;
  vertical-align: top;
}

.qk-summary-label {
  font-weight: 600;
  color: var(--text-dark, #374151);
  width: 40%;
}

.qk-summary-value {
  color: var(--text-base, #1f2937);
}

.qk-summary-value a {
  color: var(--blue, #0066cc);
  text-decoration: none;
}

.qk-summary-value a:hover {
  text-decoration: underline;
}

.qk-warning-text {
  margin-top: 16px;
  padding: 8px 12px;
  background-color: #fff3cd;
  border-left: 4px solid #ffc107;
  border-radius: 4px;
  color: #856404;
}

@media (max-width: 600px) {
  .qk-summary-table td {
    padding: 10px 12px;
  }
  
  .qk-summary-label {
    width: 45%;
    font-size: 14px;
  }
  
  .qk-summary-value {
    font-size: 14px;
  }
}

/* ---------------------------------------------------------
   Qonèkt choice cards (B2C/B2B radio tiles)
--------------------------------------------------------- */
.qk-choice-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap: var(--s5);
  margin-top: var(--s5);
}

@media (max-width: 900px){
  .qk-choice-grid{ grid-template-columns:1fr; }
}

.qk-choice{
  display:block;
  position:relative;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-lg);
  background: var(--white);
  padding: var(--s6);
  cursor:pointer;
  transition: border-color .15s ease, box-shadow .15s ease, transform .05s ease;
}

.qk-choice:hover{
  border-color: var(--gray-400);
}

.qk-choice:active{
  transform: translateY(1px);
}

.qk-choice input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

.qk-choice__body{
  position:relative;
  padding-left: 34px;
}

.qk-choice__body::before{
  content:"";
  position:absolute;
  left:0;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--gray-400);
  background: var(--white);
  box-sizing:border-box;
}

.qk-choice input:checked + .qk-choice__body::before{
  border-color: var(--blue);
  box-shadow: inset 0 0 0 5px var(--blue);
}

.qk-choice input:checked + .qk-choice__body{
  /* Highlight selected tile */
}

.qk-choice:has(input:checked){
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,0,0,.06);
}

.qk-choice__title{
  font-weight: 900;
  color: var(--blue);
    font-family: var(--font-heading);
margin-bottom: 4px;
}

.qk-choice__desc{
  color: var(--gray-600);
font-size: 13px;
line-height: 1.35;
}

.qk-choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); }
    @media (max-width: 900px) { .qk-choice-grid { grid-template-columns: 1fr; } }
    .qk-choice { border: 1px solid var(--gray-300); border-radius: var(--radius-lg); padding: var(--s6); background: var(--white); cursor: pointer; display:block; }
    .qk-choice input { margin-right: 10px; }
    .qk-choice__title { font-weight: 900; color: var(--blue); font-family: var(--font-heading); margin-bottom: 4px; }
    .qk-choice__desc { color: var(--gray-600); font-size: 13px; }

/* =============================
   Careers Section
   ============================= */
.careers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s7);
}

@media (max-width: 800px) {
  .careers-grid {
    grid-template-columns: 1fr;
  }
}

.careers-positions,
.careers-email {
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: var(--s7);
  border-radius: var(--radius-lg);
}

.careers-subtitle {
  color: var(--blue);
  margin-bottom: var(--s5);
  font-size: 18px;
}

.careers-email .email-link {
  font-size: 18px;
  font-weight: 700;
  color: var(--blue);
  display: inline-block;
  margin-bottom: var(--s5);
}

.careers-email .email-link:hover {
  text-decoration: underline;
}

.careers-note {
  font-size: 13px;
  color: var(--gray-600);
  font-style: italic;
  margin-top: var(--s5);
}

.careers-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.career-item {
  margin-bottom: var(--s7);
  padding-bottom: var(--s7);
  border-bottom: 1px solid var(--gray-200);
}

.career-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.career-item h4 {
  color: var(--blue);
  font-size: 16px;
  margin-bottom: var(--s3);
  font-weight: 700;
}

.career-item p {
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: var(--s5);
}

.career-actions {
  display: flex;
  gap: var(--s5);
  margin-top: var(--s5);
}

.career-actions button,
.career-actions a {
  flex: 1;
  padding: 10px 16px;
  font-size: 14px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

#btn-view-position {
  background: var(--yellow);
  color: var(--blue);
  border: none;
}

#btn-view-position:hover {
  background: #F4D856;
  text-decoration: none;
}

.btn-apply-position {
  background: var(--blue);
  color: var(--yellow);
  border: none;
}

.btn-apply-position:hover {
  background: #0A2E75;
  opacity: 1;
  text-decoration: none;
}

/* =============================
   Lightbox Modal
   ============================= */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  animation: fadeIn 0.3s ease;
}

.lightbox.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
  background: white;
  border-radius: 8px;
  overflow: auto;
  animation: slideUp 0.3s ease;
}

.lightbox-content img {
  width: 100%;
  height: auto;
  display: block;
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 32px;
  font-weight: bold;
  color: white;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.6);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.lightbox-close:hover {
  background: rgba(0, 0, 0, 0.8);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

    .form-steps {
      display: grid; grid-template-columns: repeat(4,1fr); gap: var(--s5);
      margin-bottom: var(--s7);
    }
    .step-pill {
      background: var(--white);
      border: 1px solid var(--gray-300);
      border-radius: 999px;
      padding: 10px 14px;
      font-weight: 800; font-size: 14px; color: var(--blue);
      text-align: center;
    }
    .step-pill.active { background: var(--blue); color: var(--white); border-color: var(--blue); }
    .pr-grid { display: grid; gap: var(--s6); grid-template-columns: 1fr 1fr; }
    @media (max-width: 900px) { .pr-grid { grid-template-columns: 1fr; } }
    .field { margin-bottom: var(--s6); }
    .field label { display:block; font-weight: 800; color: var(--blue); font-family: var(--font-heading); margin-bottom: var(--s3); }
    .help { font-size: 12px; color: var(--gray-600); margin-top: 4px; }
    .actions { display:flex; gap: var(--s4); flex-wrap:wrap; margin-top: var(--s6); }
    .required::after { content:" *"; color:#d33; }
    .summary {
      background: var(--gray-100); border: 1px solid var(--gray-200);
      border-radius: var(--radius-lg); padding: var(--s6); font-size: 14px;
    }
    .visually-hidden { position:absolute !important; height:1px; width:1px; overflow:hidden; clip:rect(1px,1px,1px,1px); white-space:nowrap; }
    
    /* Inline validation styles */
    .input-error {
    border-color: #d33 !important;
    box-shadow: 0 0 0 3px rgba(211, 51, 51, .12);
    }
    .help-error {
    color: #d33;
    font-size: 12px;
    margin-top: 4px;
    }
    
    /* Remove the default fieldset frame for each step */
    .step {
    border: 0;          /* gets rid of the grey rectangle */
    padding: 0;         /* optional: aligns content to the card padding */
    margin: 0;          /* optional: prevents extra spacing */
    }

    /* (You already hide the legend with .visually-hidden, this is just a backup) */
    .step > legend {
    border: 0;
    }

/* =========================================================
   COPILOT CHATBOT WIDGET (Collapsible Icon)
   ========================================================= */

.copilot-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  font-family: var(--font-body);
}

/* Toggle Button (Icon + Label) */
.copilot-toggle-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 8px 8px;
  background: #F5F7FA;
  color: var(--blue);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(10, 46, 117, 0.25);
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 500;
}

.copilot-toggle-btn:hover {
  box-shadow: 0 6px 20px rgba(10, 46, 117, 0.35);
  transform: translateY(-2px);
}

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

.copilot-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  object-fit: contain;
}

.copilot-label {
  white-space: nowrap;
  font-size: 13px;
}

/* Chatbot Container (expanded window) */
.copilot-chatbot-container {
  display: flex;
  flex-direction: column;
  width: 400px;
  height: 600px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 24px rgba(10, 46, 117, 0.15);
  overflow: hidden;
  animation: slideInUp 0.3s ease;
}

.copilot-chatbot-container[hidden] {
  display: none;
}

/* Header (title + close button) */
.copilot-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: var(--blue);
  color: white;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.copilot-header h3 {
  margin: 0;
  font-size: 16px;
  color: white;
}

.copilot-close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.copilot-close-btn:hover {
  opacity: 0.8;
}

/* Iframe Wrapper - clips the Copilot header */
.copilot-iframe-wrapper {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: white;
}

/* Iframe */
.copilot-chatbot-container iframe {
  position: absolute;
  top: -90px;
  left: 0;
  width: 100%;
  height: calc(100% + 90px);
  border: none;
}

/* Animation */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive: smaller on mobile devices */
@media (max-width: 768px) {
  .copilot-widget {
    position: static;
  }

  .copilot-toggle-btn {
    position: fixed;
    bottom: 16px;
    right: 16px;
    z-index: 998;
    padding: 10px 12px;
    border-radius: 50%;
    gap: 0;
  }

  .copilot-label {
    display: none;
  }

  .copilot-icon {
    width: 28px;
    height: 28px;
  }

  .copilot-chatbot-container {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    z-index: 999;
    max-width: 100% !important;
  }

  /* Disable body scroll when chatbot is open */
  body.copilot-open {
    overflow: hidden;
  }
}