/* Home page Responsive css Start */
/* ==========================================================================
   responsive.css
   Load this AFTER style.css on every page:
   <link rel="stylesheet" href="/assets/css/style.css">
   <link rel="stylesheet" href="/assets/css/responsive.css">

   Breakpoints used:
   1200px  – large desktop / tighten container
   1024px  – small desktop / laptop
   900px   – tablet landscape
   768px   – tablet portrait
   600px   – large phone
   480px   – phone
   380px   – small phone
   ========================================================================== */


/* ==========================================================================
   1200px – large desktop
   ========================================================================== */
@media (max-width: 1200px) {
  .container,
  .container-narrow { padding: 0 24px; }

  .hero-inner { padding: 0 24px; }

  .live-grid,
  .features-grid,
  .test-grid,
  .pricing-grid { gap: 16px; }
}


/* ==========================================================================
   1024px – small desktop / laptop
   ========================================================================== */
@media (max-width: 1024px) {

  /* Nav */
  .nav-inner { gap: 16px; padding: 0 24px; }
  .nav-links { gap: 2px; }
  .nav-links a { padding: 8px 10px; font-size: 13px; }

  /* Hero */
  .hero { padding: 64px 0 56px; }
  .hero h1 { font-size: 44px; }
  .hero .sub { font-size: 16px; }

  /* Stats already 5 cols -> keep but tighten */
  .stats-row { gap: 16px; }
  .stat-num { font-size: 26px; }

  /* Live tenders: 3 -> 2 columns */
  .live-grid { grid-template-columns: repeat(2, 1fr); }

  /* How it works: keep 3 col but tighten */
  .how-grid { gap: 20px; }

  /* Features: 4 -> 2 columns (already in style.css, kept here for clarity) */
  .features-grid { grid-template-columns: repeat(2, 1fr); }

  /* Coverage map: reduce gap */
  .coverage-map { gap: 32px; padding: 32px; }

  /* Testimonials + pricing: 3 -> 2 columns */
  .test-grid,
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }

  /* CTA banner */
  .cta-banner { margin: 0 24px; padding: 48px 32px; }

  /* Footer: 5 -> 3 columns (brand spans full width) */
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    padding: 0 24px;
  }
  .footer-brand { grid-column: 1 / -1; }
}


/* ==========================================================================
   900px – tablet landscape
   ========================================================================== */
@media (max-width: 900px) {

  section { padding: 48px 0; }
  section.tight { padding: 32px 0; }

  /* Hero */
  .hero h1 { font-size: 36px; max-width: 100%; }
  .hero-badge { font-size: 10px; padding: 6px 12px; }

  /* Hero search: stack fields vertically */
  .hero-search { padding: 6px; border-radius: 12px; }
  .hero-search .search-form {
    grid-template-columns: 1fr;
  }
  .hero-search .field-cell {
    border-right: 0;
    border-bottom: 0.5px solid #e5e3dc;
    padding: 12px 14px;
  }
  .hero-search .field-cell:last-of-type { border-bottom: 0; }
  .hero-search .btn { width: 100%; justify-content: center; margin: 6px 2px 2px; }

  /* Stats: 5 -> 3 columns */
  .stats-row { grid-template-columns: repeat(3, 1fr); }
  .stat-cell:nth-child(4),
  .stat-cell:nth-child(5) { grid-column: span 1; }

  /* Live tenders: keep 2 col, reduce padding */
  .tender-card { padding: 16px; }

  /* How it works: stack, remove dashed connector line */
  .how-grid { grid-template-columns: 1fr; gap: 18px; }
  .how-grid::before { display: none; }
  .how-step-icon { width: 32px; height: 32px; }

  /* Coverage map: stack, map first on top for readability */
  .coverage-map { grid-template-columns: 1fr; padding: 28px; text-align: left; }
  .map-svg { max-width: 420px; margin: 0 auto; order: -1; }

  /* CTA banner */
  .cta-banner { margin: 0 16px; padding: 40px 24px; }
  .cta-banner .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-banner .btn { width: 100%; justify-content: center; }
}


/* ==========================================================================
   768px – tablet portrait / mobile nav breakpoint
   ========================================================================== */
@media (max-width: 768px) {

  body { padding-top: 60px; }
  .nav { height: 60px; }
  .nav-inner { padding: 0 16px; }

  /* Hide desktop nav links (add your own hamburger menu markup/JS to reveal) */
  .nav-links { display: none; }
  .nav-signin { display: none; }
  .nav-lang { display: none; }

  h1 { font-size: 30px; }
  h2 { font-size: 22px; }
  h3 { font-size: 18px; }

  .container,
  .container-narrow { padding: 0 16px; }

  /* Hero */
  .hero { padding: 48px 0 40px; }
  .hero-inner { padding: 0 16px; }
  .hero h1 { font-size: 28px; letter-spacing: -0.5px; }
  .hero .sub { font-size: 14px; margin-bottom: 26px; }
  .hero-tags { gap: 6px; }
  .hero-tag { font-size: 11px; padding: 5px 10px; }

  /* Stats: 3 -> 2 columns */
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 20px 14px; }
  .stat-num { font-size: 24px; }

  /* Trust bar */
  .trust-items { gap: 8px 18px; font-size: 11px; }

  /* Live tenders: 2 -> 1 column */
  .live-grid { grid-template-columns: 1fr; gap: 14px; }

  /* Features: 2 -> 1 column */
  .features-grid { grid-template-columns: 1fr; }

  /* Coverage flags */
  .coverage-flags { max-width: 100%; }

  /* Testimonials + pricing: 2 -> 1 column */
  .test-grid,
  .pricing-grid { grid-template-columns: 1fr; }
  .price-card.featured { order: -1; }

  /* Footer: 3 -> 2 columns */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    padding: 0 16px;
  }
  .footer-sub {
    padding: 20px 16px 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  /* Cookie banner */
  .cookie-banner {
    left: 12px; right: 12px; bottom: 12px; padding: 16px;
    flex-direction: column; align-items: stretch;
  }
  .cookie-banner .cookie-actions { justify-content: stretch; }
  .cookie-banner .cookie-actions .btn { flex: 1; justify-content: center; }
}


/* ==========================================================================
   600px – large phone
   ========================================================================== */
@media (max-width: 600px) {

  .hero h1 { font-size: 25px; }
  .hero-badge { display: none; } /* saves vertical space on small phones */

  .stats-row { grid-template-columns: repeat(2, 1fr); }

  .tender-top { flex-wrap: wrap; }
  .tender-title { font-size: 14px; }

  .how-step { padding: 22px; }

  .coverage-map { padding: 20px; }
  .map-svg { max-width: 320px; }

  .test-card,
  .price-card { padding: 22px; }
  .price-amount { font-size: 32px; }

  .cta-banner h2 { font-size: 22px; }
  .cta-banner p { font-size: 13px; }
}


/* ==========================================================================
   480px – phone
   ========================================================================== */
@media (max-width: 480px) {

  .container,
  .container-narrow,
  .hero-inner { padding: 0 14px; }

  .nav-logo span:last-child { display: none; } /* show just the mark on tiny screens */

  .hero { padding: 36px 0 32px; }
  .hero h1 { font-size: 22px; }
  .hero .sub { font-size: 13px; }

  /* Stats: 2 -> 1 column, tighter */
  .stats-row { grid-template-columns: 1fr 1fr; gap: 16px 10px; }
  .stat-num { font-size: 20px; }
  .stat-label { font-size: 11px; }

  .trust-items { justify-content: flex-start; text-align: left; }

  .tender-card { padding: 14px; gap: 10px; }
  .tender-foot { flex-direction: column; align-items: flex-start; gap: 8px; }

  .how-num { width: 34px; height: 34px; font-size: 14px; }

  .feature-card { padding: 20px 16px; }

  .cta-banner { margin: 0 12px; padding: 32px 18px; border-radius: 14px; }

  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-sub .links { gap: 12px; }

  .price-amount { font-size: 28px; }
  .hero-search .field-inner {
        display: flex;
        gap: 20px;
    }

    .hero-search .search-form
    {
        display: grid;
        grid-template-columns: 1fr !important;
        gap: 0;
    }
    .features-grid {
        grid-template-columns: 1fr !important;
    }
}


/* ==========================================================================
   380px – small phone
   ========================================================================== */
@media (max-width: 380px) {
  .hero h1 { font-size: 20px; }
  .btn { padding: 10px 16px; font-size: 13px; }
  .btn-lg { padding: 12px 20px; font-size: 14px; }
  .stats-row { grid-template-columns: 1fr; }
  .stat-cell { padding: 4px 0; border-bottom: 0.5px solid #eee; }
  .stat-cell:last-child { border-bottom: 0; }
}

/* Home Page Response CSS End */

/* Tender Listing Page */

/* ==========================================================================
   EuropaTenders — Tender Listing Page: Responsive CSS
   (Header & Footer intentionally excluded — style those separately)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Base / safety
   -------------------------------------------------------------------------- */
* { box-sizing: border-box; }

img, svg { max-width: 100%; height: auto; }

.container {
  width: 100%;
  padding-left: 16px;
  padding-right: 16px;
  margin: 0 auto;
}

/* ==========================================================================
   1. HERO SECTION (.t-hero)
   ========================================================================== */
.t-hero-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.t-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 768px) {
  .t-hero-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .t-hero h1 {
    font-size: 20px;
    line-height: 1.3;
  }
  .t-hero .sub {
    font-size: 12px;
  }
  .t-hero-stats {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }
  .t-hs {
    flex: 1 1 auto;
    min-width: 90px;
    font-size: 11px;
    text-align: center;
  }
  .t-hs .n {
    display: block;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .t-hero h1 {
    font-size: 18px;
  }
  .t-hero-stats {
    flex-direction: column;
  }
  .t-hs {
    width: 100%;
    text-align: left;
  }
}

/* ==========================================================================
   2. TOP WIDGETS (Top Countries / Categories / Products)
   ========================================================================== */
.top-widgets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.tw-card {
  min-width: 0; /* prevents grid blowout with long country/CPV names */
}

.tw-list a {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.tw-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1024px) {
  .top-widgets {
    grid-template-columns: repeat(2, 1fr);
  }
  .tw-card:nth-child(3) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .top-widgets {
    grid-template-columns: 1fr;
  }
  .tw-card:nth-child(3) {
    grid-column: auto;
  }
  .tw-title {
    font-size: 14px;
  }
  .tw-title .sub {
    display: block;
    font-size: 11px;
  }
}

/* ==========================================================================
   3. QUICK FILTER PILLS BAR
   ========================================================================== */
.quick-filter-bar {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.qfb-inner {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
}

@media (max-width: 768px) {
  .qfb-inner {
    flex-wrap: nowrap;
  }
  .quick-pill {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 12px;
  }
}

/* ==========================================================================
   4. MAIN LAYOUT: SIDEBAR + LIST (.tl-layout)
   ========================================================================== */
.tl-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
}

.tl-sidebar {
  position: sticky;
  top: 12px;
  max-height: calc(100vh - 24px);
  overflow-y: auto;
}

main {
  min-width: 0; /* prevents tender cards from overflowing grid column */
}

@media (max-width: 1024px) {
  .tl-layout {
    grid-template-columns: 240px 1fr;
    gap: 16px;
  }
}

@media (max-width: 860px) {
  .tl-layout {
    display: flex;
    flex-direction: column-reverse;
  }

  .tl-sidebar {
    position: static;
    max-height: none;
    width: 100%;
    order: 2;
  }

  main {
    order: 1;
  }

  /* Collapse sidebar into a toggle-able panel on mobile */
  .tl-sidebar {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
  }
}

/* ==========================================================================
   5. SIDEBAR FILTER GROUPS
   ========================================================================== */
.tl-filter-grp {
  width: 100%;
}

.filter-input,
.filter-select {
  width: 100%;
  max-width: 100%;
}

@media (max-width: 860px) {
  .tl-filter-grp {
    margin-bottom: 14px;
  }
  .filter-h {
    font-size: 13px;
  }
}

/* -- Country checklist -- */
.country-list {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.country-list.scrollable {
  max-height: 260px;
  overflow-y: auto;
}

.country-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  word-break: break-word;
}

.country-item .num {
  margin-left: auto;
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .country-item {
    font-size: 13px;
  }
}

/* -- Select2 v3 (Sectors / Funding Agency) -- */
.select2-container {
  width: 100% !important;
  max-width: 100%;
}

.select2-container-multi .select2-choices {
  width: 100%;
}

.select2-drop {
  max-width: 92vw;
}

@media (max-width: 480px) {
  .select2-container-multi .select2-choices .select2-search-choice {
    max-width: 100%;
    white-space: normal;
  }
}

/* -- CPV search + popup panel -- */
.cpv-panel {
  position: fixed;
  z-index: 999;
  width: min(480px, 92vw);
  max-height: 70vh;
  overflow-y: auto;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
  border-radius: 8px;
}

.cpv-table {
  width: 100%;
}

@media (max-width: 640px) {
  .cpv-panel {
    left: 4vw !important;
    right: 4vw;
    width: 92vw;
  }
  .cpv-table {
    display: flex;
    flex-direction: column;
  }
  .cpv-table tr {
    display: flex;
    flex-direction: column;
    width: 100%;
  }
  .cpv-table td {
    width: 100% !important;
    display: block;
  }
}

/* -- Date range pickers -- */
.date-range {
  width: 100%;
}

.daterangepicker {
  max-width: 94vw;
  font-size: 13px;
}

@media (max-width: 480px) {
  .daterangepicker .ranges {
    display: none; /* hide preset shortcuts, keep calendar usable on small screens */
  }
  .daterangepicker .drp-calendar.left,
  .daterangepicker .drp-calendar.right {
    float: none;
    width: 100%;
    max-width: 100%;
  }
  .daterangepicker .calendar-table {
    width: 100%;
  }
}

/* ==========================================================================
   6. RESULTS HEADER / SORT BAR
   ========================================================================== */
.tl-sort {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

@media (max-width: 480px) {
  .tl-sort {
    flex-direction: column;
    align-items: stretch;
  }
  .tl-sort .count {
    font-size: 13px;
  }
  .tl-sort .select {
    max-width: 100% !important;
    width: 100%;
  }
}

/* ==========================================================================
   7. TENDER LIST CARDS (generic hooks — adjust class names to match
      the actual markup returned by /api/tenders and /filter/live)
   ========================================================================== */
#TenderList {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

#TenderList .tender-card,
#TenderList > * {
  width: 100%;
  min-width: 0;
}

@media (max-width: 640px) {
  #TenderList .tender-card {
    padding: 12px;
  }
  #TenderList .tender-card h3,
  #TenderList .tender-card .title {
    font-size: 15px;
    line-height: 1.35;
  }
  #TenderList .pv-data-row,
  #TenderList .tender-meta-row {
    flex-wrap: wrap;
    font-size: 12px;
  }
}

/* -- Load more button -- */
.load-more {
  display: flex;
  justify-content: center;
  width: 100%;
}

.load-more .btn {
  width: 100%;
  max-width: 320px;
}

@media (max-width: 480px) {
  .load-more .btn {
    max-width: 100%;
  }
}

/* ==========================================================================
   8. PREVIEW PANEL (buildPreview() injected content, if shown on desktop)
   ========================================================================== */
@media (max-width: 860px) {
  .pv-pills {
    flex-wrap: wrap;
  }
  .pv-data-row {
    flex-wrap: wrap;
    font-size: 13px;
  }
}

/* ==========================================================================
   9. TABLES (if any tender detail tables render inline)
   ========================================================================== */
@media (max-width: 640px) {
  table:not(.cpv-table) {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Tender Listing CSS End */

/* Country Page Css Start  */
/* ==========================================================================
   EuropaTenders — Countries Page: Responsive CSS
   (Header & Footer intentionally excluded — style those separately)
   ========================================================================== */

* { box-sizing: border-box; }

img, svg { max-width: 100%; height: auto; }

.container {
  width: 100%;
  padding-left: 16px;
  padding-right: 16px;
  margin: 0 auto;
}

/* ==========================================================================
   1. PAGE HERO (.page-hero)
   ========================================================================== */
.page-hero {
  width: 100%;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

@media (max-width: 768px) {
  .page-hero h1 {
    font-size: 22px;
    line-height: 1.3;
  }
  .page-hero .sub {
    font-size: 14px;
  }
  .breadcrumb {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .page-hero h1 {
    font-size: 19px;
  }
  .page-hero .sub {
    font-size: 13px;
  }
}

/* ==========================================================================
   2. REGION TABS (.region-tabs)
   ========================================================================== */
.region-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 768px) {
  .region-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }
  .region-tab {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 13px;
    padding: 8px 14px;
  }
}

/* ==========================================================================
   3. COUNTRY GRID (.country-grid / .country-card)
   ========================================================================== */
.country-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.country-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.country-flag-box {
  display: flex;
  align-items: center;
}

.country-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.country-tenders {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.country-sectors {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.country-source {
  word-break: break-word;
}

.country-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

@media (min-width: 1025px) and (max-width: 1280px) {
  .country-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  .country-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
}

@media (max-width: 768px) {
  .country-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .country-card {
    padding: 14px;
  }
  .country-name {
    font-size: 15px;
  }
  .country-tenders {
    font-size: 12px;
  }
  .country-sectors .pill {
    font-size: 10px;
    padding: 3px 8px;
  }
  .country-source {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .country-grid {
    grid-template-columns: 1fr;
  }
  .country-card {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
  }
  .country-flag-box {
    order: 1;
  }
  .country-name {
    order: 2;
    flex: 1 1 auto;
    font-size: 16px;
  }
  .country-tenders {
    order: 3;
    flex: 1 0 100%;
  }
  .country-sectors {
    order: 4;
    flex: 1 0 100%;
  }
  .country-source {
    order: 5;
    flex: 1 0 100%;
  }
  .country-link {
    order: 6;
    flex: 1 0 100%;
    justify-content: center;
    margin-top: 8px;
  }
}

/* ==========================================================================
   4. COVERAGE MAP SECTION (.coverage-map-box)
   ========================================================================== */
.coverage-map-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.map-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.map-stat {
  text-align: center;
  min-width: 0;
}

.map-stat .n {
  font-size: 22px;
  font-weight: 700;
}

.map-stat .l {
  font-size: 11px;
  overflow-wrap: break-word;
}

@media (max-width: 900px) {
  .coverage-map-box {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }
  .coverage-map-box svg {
    margin: 0 auto;
    display: block;
  }
}

@media (max-width: 640px) {
  .coverage-map-box h2 {
    font-size: 20px;
  }
  .coverage-map-box p {
    font-size: 14px;
  }
  .map-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 12px;
  }
  .map-stat .n {
    font-size: 20px;
  }
}

@media (max-width: 420px) {
  .map-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   5. REQUEST COVERAGE CTA (.request-cta)
   ========================================================================== */
.request-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

@media (max-width: 640px) {
  .request-cta {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  .request-cta h3 {
    font-size: 17px;
  }
  .request-cta p {
    font-size: 13px;
  }
  .request-cta > div:last-child {
    width: 100%;
  }
  .request-cta .btn {
    width: 100%;
    text-align: center;
  }
}

/* Country Page CSS End */

/* Signup Form CSS Start */
/* ==========================================================================
   EuropaTenders — Signup Page: Responsive CSS
   (Header & Footer intentionally excluded — style those separately)
   ========================================================================== */

* { box-sizing: border-box; }

img, svg { max-width: 100%; height: auto; }

.container {
  width: 100%;
  padding-left: 16px;
  padding-right: 16px;
  margin: 0 auto;
}

/* ==========================================================================
   1. PAGE HERO / BREADCRUMB
   ========================================================================== */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

/* ==========================================================================
   2. TWO-COLUMN REGISTRATION LAYOUT (.reg-grid)
   ========================================================================== */
.reg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  width: 100%;
}

.reg-form-side,
.reg-bene-side {
  min-width: 0;
}

@media (max-width: 1024px) {
  .reg-grid {
    gap: 28px;
  }
}

@media (max-width: 900px) {
  .reg-grid {
    grid-template-columns: 1fr;
  }
  /* Show the "why join" panel above the form on mobile so trust signals
     are seen before commitment, then the form follows */
  .reg-bene-side {
    order: 1;
  }
  .reg-form-side {
    order: 2;
  }
}

@media (max-width: 600px) {
  .reg-grid {
    gap: 24px;
  }
}

/* ==========================================================================
   3. STEP INDICATOR (.steps-row)
   ========================================================================== */
.steps-row {
  display: flex;
  align-items: center;
  width: 100%;
}

.step {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.step-sep {
  flex: 1 1 auto;
}

@media (max-width: 480px) {
  .steps-row {
    justify-content: space-between;
  }
  .step span:not(.num) {
    display: none; /* show only numbered circles on very small screens */
  }
  .step .num {
    width: 26px;
    height: 26px;
    font-size: 12px;
  }
}

@media (min-width: 481px) and (max-width: 600px) {
  .step span:not(.num) {
    font-size: 11px;
  }
}

/* ==========================================================================
   4. FORM FIELDS
   ========================================================================== */
.field {
  width: 100%;
  margin-bottom: 16px;
}

.input,
.textarea,
.cc-select-block {
  width: 100%;
  max-width: 100%;
}

.textarea {
  resize: vertical;
  min-height: 90px;
}

.two-col-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 560px) {
  .two-col-fields {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 22px;
  }
  .sub {
    font-size: 13px;
  }
  .field label {
    font-size: 13px;
  }
  .input, .textarea {
    font-size: 14px;
    padding: 10px 12px;
  }
  .hint {
    font-size: 11px;
  }
}

/* ==========================================================================
   5. PHONE INPUT (intl-tel-input)
   ========================================================================== */
.phone-group {
  width: 100%;
}

.iti {
  width: 100%;
  display: block;
}

.iti__country-list {
  max-width: 90vw;
}

/* ==========================================================================
   6. CUSTOM COUNTRY SELECT DROPDOWN (.cc-select)
   ========================================================================== */
.cc-select {
  position: relative;
  width: 100%;
}

.cc-select-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cc-country-text {
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

.cc-panel {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 50;
  width: 100%;
  max-height: 280px;
  overflow-y: auto;
}

.cc-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  word-break: break-word;
}

@media (max-width: 480px) {
  .cc-panel {
    max-height: 55vh;
  }
}

/* ==========================================================================
   7. STEP ACTION BUTTONS
   ========================================================================== */
.step-actions {
  display: flex;
  gap: 12px;
  width: 100%;
  margin-top: 8px;
}

.step-actions .btn {
  flex: 1 1 auto;
}

@media (max-width: 480px) {
  .step-actions {
    flex-direction: column;
  }
  .step-actions .btn {
    width: 100%;
  }
}

/* ==========================================================================
   8. SOCIAL LOGIN
   ========================================================================== */
.social-divider {
  text-align: center;
  width: 100%;
}

.social-btns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 480px) {
  .social-btns {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .social-btn {
    justify-content: flex-start;
    padding-left: 16px;
  }
}

/* ==========================================================================
   9. GDPR NOTICE
   ========================================================================== */
.gdpr-notice {
  width: 100%;
}

@media (max-width: 480px) {
  .gdpr-notice {
    font-size: 12px;
    line-height: 1.5;
  }
}

/* ==========================================================================
   10. TOGGLE ROW (Email Alert switch)
   ========================================================================== */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

@media (max-width: 480px) {
  .toggle-row {
    align-items: flex-start;
  }
  .toggle-row .label {
    font-size: 14px;
  }
  .toggle-row .desc {
    font-size: 12px;
  }
  .switch {
    flex: 0 0 auto;
  }
}

/* ==========================================================================
   11. FORM ERRORS SUMMARY (.form-errors)
   ========================================================================== */
.form-errors {
  width: 100%;
  max-width: 100%;
}

@media (max-width: 480px) {
  .form-errors {
    padding: 12px 14px;
  }
  .form-errors__title {
    font-size: 13px;
  }
  .form-errors__list li {
    font-size: 12px;
  }
}

/* ==========================================================================
   12. "WHY JOIN" BENEFITS PANEL (.reg-bene-side)
   ========================================================================== */
.bene-title {
  width: 100%;
}

.bene-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.bene-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
}

.bene-item .tick {
  flex: 0 0 auto;
}

@media (max-width: 900px) {
  .bene-title {
    font-size: 22px;
  }
  .bene-sub {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .bene-title {
    font-size: 19px;
  }
  .bene-item {
    font-size: 13px;
  }
}

/* -- Testimonial quote -- */
.bene-quote {
  width: 100%;
}

.q-text {
  overflow-wrap: break-word;
}

.q-auth {
  display: flex;
  align-items: center;
  gap: 10px;
}

.q-avatar {
  flex: 0 0 auto;
}

.q-info {
  min-width: 0;
}

.q-info .name,
.q-info .role {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .q-text {
    font-size: 13px;
  }
}

/* -- Trust badges -- */
.bene-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}

@media (max-width: 480px) {
  .bene-badge {
    font-size: 11px;
    padding: 4px 8px;
  }
}

.bene-cta-note {
  width: 100%;
  text-align: center;
}

@media (max-width: 480px) {
  .bene-cta-note {
    font-size: 12px;
  }
}


/* Signup Form CSS End */