/* ==========================================================
   THEME TOKENS — "Blueprint" theme
   Engineer's blueprint navy + safety amber + steel gray.
   Edit these to re-skin the whole site.
   ========================================================== */
:root {
  --navy: #16324F;
  /* blueprint navy — primary */
  --navy-deep: #0C2136;
  /* dark navy — header/footer/hero */
  --amber: #F2A93B;
  /* safety amber — accent / CTA */
  --amber-dk: #D98F1D;
  --teal: #2E8B8B;
  /* secondary accent (materials) */
  --bg: #F4F6F8;
  /* page background */
  --paper: #FFFFFF;
  --ink: #1B2A38;
  --ink-soft: #5C6B7A;
  --line: #E1E7ED;

  --ff-display: 'Archivo', sans-serif;
  --ff-body: 'Karla', sans-serif;
  --ff-urdu: 'Noto Nastaliq Urdu', serif;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(12, 33, 54, .10);
  --wrap: 1200px;

  /* ---- RESPONSIVE ADDITION: fluid spacing scale ----
     Used by newly-added mobile rules below so paddings/margins
     shrink smoothly between breakpoints instead of jumping. */
  --space-xs: clamp(8px, 2vw, 12px);
  --space-sm: clamp(12px, 3vw, 18px);
  --space-md: clamp(18px, 4vw, 28px);
  --space-lg: clamp(28px, 6vw, 48px);
  --touch-min: 44px;
  /* WCAG/iOS/Android minimum comfortable touch target */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  /* RESPONSIVE CHANGE: fluid base font-size (was a fixed 13.5px that
     then hard-jumped to 12.5px at the 768px breakpoint below). Using
     clamp() lets body copy scale smoothly across every phone width
     instead of snapping at one breakpoint. */
  font-size: clamp(13px, 0.75rem + 0.3vw, 13.5px)
}

a {
  text-decoration: none;
  color: inherit
}

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

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px
}

section {
  padding: 56px 0
}

h1,
h2,
h3 {
  font-family: var(--ff-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink)
}

h2 {
  font-size: clamp(22px, 2.5vw, 30px);
  margin-bottom: 10px
}

h3 {
  font-size: 16px
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--amber)
}

.lead {
  color: var(--ink-soft);
  max-width: 660px
}

.center {
  text-align: center
}

.center .lead {
  margin: 0 auto
}

.center .eyebrow::after {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--amber)
}

.urdu {
  font-family: var(--ff-urdu);
  direction: rtl
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13.5px;
  transition: .2s ease;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--ff-body)
}

.btn-amber {
  background: var(--amber);
  color: var(--navy-deep)
}

.btn-amber:hover {
  background: var(--amber-dk);
  transform: translateY(-2px)
}

.btn-navy {
  background: var(--navy);
  color: #fff
}

.btn-navy:hover {
  background: var(--navy-deep);
  transform: translateY(-2px)
}

.btn-ghost {
  border-color: rgba(255, 255, 255, .45);
  color: #fff
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, .1)
}

.btn-wa {
  background: #1EBE5D;
  color: #fff;
  padding: 10px 18px;
  font-size: 14px
}

.btn-wa:hover {
  background: #169c4b
}

.btn-call {
  background: var(--navy);
  color: #fff;
  padding: 10px 18px;
  font-size: 14px
}

.btn-call:hover {
  background: var(--navy-deep)
}

.btn-teal {
  background: #2B7A78;
  color: #fff;
  box-shadow: 0 4px 14px rgba(43, 122, 120, .35);
  border-color: #2B7A78
}

.btn-teal:hover {
  background: #1F5C5A;
  color: #fff;
  transform: translateY(-2px)
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(245, 158, 11, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
  }
}

@keyframes radar-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.btn-radar {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff !important;
  border: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  animation: pulse-ring 2s infinite;
  transition: all 0.3s ease;
  cursor: pointer;
  font-family: var(--ff-body);
  font-size: 13.5px;
}

.btn-radar:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.6);
}

.btn-radar svg {
  animation: radar-spin 3s linear infinite;
}

.floating-radar {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  border-radius: 30px;
  padding: 12px 24px;
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.5);
  font-size: 15px;
}

.btn-amber-outline {
  border: 2px solid var(--amber);
  color: var(--amber);
  background: rgba(242, 169, 59, .1)
}

.btn-amber-outline:hover {
  background: var(--amber);
  color: var(--navy-deep);
  transform: translateY(-2px)
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease
}

.reveal.in {
  opacity: 1;
  transform: none
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none
  }

  html {
    scroll-behavior: auto
  }
}

/* ==========================================================
   HEADER  (WP: header.php)
   ========================================================== */
.topbar {
  background: var(--navy-deep);
  color: #BFD0DF;
  font-size: 13.5px;
  padding: 8px 0
}

.topbar .wrap {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  max-width: 95%
}

.topbar b {
  color: var(--amber)
}

/* ---- LANGUAGE TOGGLE ---- */
.lang-switch {
  display: inline-flex;
  background: rgba(255, 255, 255, .12);
  border-radius: 20px;
  padding: 2px;
  flex-shrink: 0
}

.lang-btn {
  border: none;
  background: transparent;
  color: #BFD0DF;
  font-size: 12.5px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 18px;
  cursor: pointer;
  font-family: var(--ff-body);
  transition: .2s
}

.lang-btn[data-lang="ur"] {
  font-family: var(--ff-urdu)
}

.lang-btn.active {
  background: var(--amber);
  color: var(--navy-deep)
}

/* ---- URDU MODE: switch font + right-align text content, keep layout structure intact ---- */
body.lang-ur {
  font-family: var(--ff-urdu)
}

body.lang-ur input,
body.lang-ur select,
body.lang-ur textarea,
body.lang-ur button:not(.lang-btn) {
  font-family: var(--ff-urdu)
}

body.lang-ur p,
body.lang-ur h1,
body.lang-ur h2,
body.lang-ur h3,
body.lang-ur h4,
body.lang-ur li,
body.lang-ur label,
body.lang-ur small,
body.lang-ur .lead,
body.lang-ur .dir-section-sub,
body.lang-ur .trade,
body.lang-ur .area,
body.lang-ur .eyebrow,
body.lang-ur .verify,
body.lang-ur .shop-verify,
body.lang-ur td,
body.lang-ur th,
body.lang-ur option {
  direction: rtl;
  text-align: right
}

body.lang-ur .center,
body.lang-ur .center p,
body.lang-ur .center h2,
body.lang-ur .center h3,
body.lang-ur .center .lead,
body.lang-ur .center .eyebrow,
body.lang-ur .cat p,
body.lang-ur .cat h3,
body.lang-ur .mat-body h3,
body.lang-ur .mat-body p,
body.lang-ur .step h3,
body.lang-ur .step p,
body.lang-ur .pro h3,
body.lang-ur .stars,
body.lang-ur .trust-badge {
  text-align: center
}

body.lang-ur .urdu {
  direction: rtl
}

header.site {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(225, 231, 237, 0.8);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: clamp(70px, 8vw, 95px);
  max-width: var(--wrap);
  width: 100%;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 21px;
  color: var(--navy);
  transition: opacity 0.2s ease;
}

.logo:hover {
  opacity: 0.85;
}

.header-logo-img {
  height: clamp(50px, 7vw, 75px);
  width: auto;
  object-fit: contain;
}

.logo .mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--navy);
  display: grid;
  place-items: center;
  color: var(--amber);
  font-size: 19px
}

.logo small {
  display: block;
  font-family: var(--ff-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--teal);
  text-transform: uppercase
}

.nav nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-only-li {
  display: none;
  margin-bottom: 12px;
}

.desktop-only-flex {
  display: flex !important;
}

.menu a,
.nav-dd-toggle {
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 18px;
  color: var(--ink-soft);
  position: relative;
  padding: 8px 0;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.menu a::after,
.nav-dd-toggle::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2.5px;
  border-radius: 2px 2px 0 0;
  background: var(--amber);
  transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.menu a:hover,
.nav-dd-toggle:hover {
  color: var(--navy-deep);
}

.menu a:hover::after,
.menu a[aria-current="page"]::after,
.nav-dd-toggle:hover::after,
.nav-dd-toggle[aria-current="page"]::after {
  width: 100%;
}

.menu a[aria-current="page"],
.nav-dd-toggle[aria-current="page"] {
  color: var(--navy-deep);
  font-weight: 700;
}

.nav-cta {
  display: flex;
  gap: 12px;
  align-items: center;
}

.auth-btns {
  display: flex;
  align-items: center;
  gap: 12px;
}
.auth-btns .btn,
.auth-btns .reg-dropdown-btn {
  font-size: 15px;
}


.btn-logout {
  border: 1.5px solid var(--amber);
  color: var(--amber);
  background: transparent;
  padding: 9px 18px;
}

.btn-login {
  font-weight: 600;
  color: var(--navy-deep);
  background: transparent;
  border: 1.5px solid rgba(27, 42, 56, 0.2);
  font-family: var(--ff-body);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  transition: all 0.2s ease;
}

.btn-login:hover {
  border-color: var(--navy-deep);
  background: rgba(27, 42, 56, 0.04);
}

.btn-icon {
  vertical-align: text-bottom;
}

.reg-dropdown-wrap {
  position: relative;
  display: inline-block;
}

.reg-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  font-size: 15px;
  font-weight: 500
}

.reg-dropdown-btn svg {
  transition: transform .2s ease
}

.reg-dropdown-wrap.open .reg-dropdown-btn svg {
  transform: rotate(180deg)
}

.reg-dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 270px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 14px 36px rgba(12, 33, 54, .18);
  padding: 8px;
  z-index: 100
}

.reg-dropdown-wrap.open .reg-dropdown-menu {
  display: block;
  animation: ddFadeIn .2s ease
}

@keyframes ddFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px)
  }

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

.reg-dropdown-item {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: none;
  background: none;
  border-radius: 10px;
  cursor: pointer;
  transition: .2s;
  color: var(--navy);
  font-family: var(--ff-body)
}

.reg-dropdown-item:hover {
  background: rgba(22, 50, 79, .06)
}

.reg-dropdown-item .icon {
  font-size: 22px;
  line-height: 1
}

.reg-dropdown-item strong {
  display: block;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--navy)
}

.reg-dropdown-item small {
  display: block;
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 2px
}

.burger {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px
}

.burger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--navy);
  margin: 5px 0;
  border-radius: 2px
}

/* ==========================================================
   HERO  (WP: front-page.php)
   Blueprint grid background + big search panel
   ========================================================== */
.hero {
  position: relative;
  background: var(--navy-deep);
  color: #fff;
  padding: 50px 0 70px;
  overflow: hidden
}

.hero::before {
  /* blueprint grid */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(122, 168, 214, .14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 168, 214, .14) 1px, transparent 1px),
    linear-gradient(rgba(122, 168, 214, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 168, 214, .06) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
}

.hero .wrap {
  position: relative
}

.hero-inner {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center
}

.hero .urdu {
  font-size: 20px;
  color: var(--amber);
  margin-bottom: 10px;
  direction: rtl
}

.hero h1 {
  color: #fff;
  font-size: clamp(34px, 5vw, 58px);
  margin-bottom: 18px
}

.hero h1 span {
  color: var(--amber)
}

.hero p {
  color: #B9C8D6;
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto
}

/* Search panel — becomes a real search form in WP */
.search {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .28);
  padding: 14px;
  display: grid;
  grid-template-columns: 1.3fr 1fr auto;
  gap: 10px;
  margin: 24px auto 0;
  max-width: 960px;
  text-align: left
}

.search .field {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 14px;
  border-right: 1px solid var(--line)
}

.search .field:last-of-type {
  border-right: 0
}

.search label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal)
}

.search select,
.search input {
  border: 0;
  outline: 0;
  font-family: var(--ff-body);
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
  background: transparent;
  padding: 4px 0
}

.chips {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
}

.chips::before,
.chips::after {
  content: "";
  margin: auto;
}

.chips::-webkit-scrollbar {
  display: none;
}

.chip {
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 13.5px;
  font-weight: 700;
  color: #D7E2EC;
  transition: .2s;
  cursor: pointer;
  background: transparent
}

.chip:hover {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--navy-deep)
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 56px;
  margin-top: 32px;
  flex-wrap: wrap
}

.hero-stats b {
  display: block;
  font-family: var(--ff-display);
  font-size: 30px;
  color: var(--amber)
}

.hero-stats span {
  font-size: 12.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #8FA6BA
}

/* ==========================================================
   WORKER CATEGORIES  (WP: taxonomy loop — service categories)
   ========================================================== */
.workers {
  background: var(--paper)
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-top: 46px
}

.cat {
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 18px;
  text-align: center;
  transition: .25s;
  position: relative;
  overflow: hidden
}

.cat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--amber);
  transform: scaleX(0);
  transition: .3s;
  transform-origin: left
}

.cat:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
  background: #fff
}

.cat:hover::before {
  transform: scaleX(1)
}

.cat-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 14px;
  border-radius: 14px;
  background: rgba(22, 50, 79, .07);
  display: grid;
  place-items: center;
  color: var(--navy);
  transition: .25s
}

.cat:hover .cat-icon {
  background: var(--navy);
  color: var(--amber)
}

.cat h3 {
  font-size: 16px;
  margin-bottom: 4px
}

.cat p {
  font-size: 13px;
  color: var(--ink-soft)
}

.cat a.stretch {
  position: absolute;
  inset: 0
}

.count {
  display: inline-block;
  margin-top: 10px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--teal);
  text-transform: uppercase
}

/* ==========================================================
   MATERIAL SHOP CATEGORIES  (WP: taxonomy loop — shops)
   ========================================================== */
.materials {
  background: var(--navy-deep);
  color: #fff;
  position: relative;
  overflow: hidden
}

.materials::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(122, 168, 214, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(122, 168, 214, .08) 1px, transparent 1px);
  background-size: 60px 60px
}

.materials .wrap {
  position: relative
}

.materials h2 {
  color: #fff
}

.materials .lead {
  color: #AEBFCE
}

.materials .eyebrow {
  color: var(--amber)
}

.mat-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 46px
}

.mat-grid>* {
  width: calc(25% - 15px);
  min-width: 260px;
}

.mat {
  border-radius: var(--radius);
  overflow: hidden;
  background: #122B45;
  border: 1px solid rgba(122, 168, 214, .2);
  transition: .25s;
  position: relative
}

.mat:hover {
  transform: translateY(-6px);
  border-color: var(--amber)
}

.mat-img {
  aspect-ratio: 16/9;
  position: relative
}

.mat-img .badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(12, 33, 54, .85);
  color: var(--amber);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px
}

.mat-body {
  padding: 20px 22px
}

.mat-body h3 {
  color: #fff;
  font-size: 17px
}

.mat-body p {
  color: #93A9BD;
  font-size: 13.5px;
  margin: 6px 0 12px
}

.mat-link {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--amber);
  display: inline-flex;
  align-items: center;
  gap: 8px
}

.mat:hover .mat-link {
  gap: 12px
}

.mat-link::after {
  content: "→";
  transition: .25s
}

.mat a.stretch {
  position: absolute;
  inset: 0
}

/* material category tints — replace with real photos in WP */
.m1 {
  background: linear-gradient(140deg, #C9B39A, #8A6F52)
}

/* wall panels */
.m2 {
  background: linear-gradient(140deg, #2E6DA4, #173A5C)
}

/* solar */
.m3 {
  background: linear-gradient(140deg, #D96C5F, #8C3B2E)
}

/* paints */
.m4 {
  background: linear-gradient(140deg, #B8BFC7, #6E7B88)
}

/* marble */
.m5 {
  background: linear-gradient(140deg, #3E9C9C, #1F5C5C)
}

/* tiles & sanitary */
.m6 {
  background: linear-gradient(140deg, #E0A83C, #9C6B12)
}

/* electric & cable */
.m7 {
  background: linear-gradient(140deg, #8A5A34, #4E2F16)
}

/* wood & timber */
.m8 {
  background: linear-gradient(140deg, #7C8894, #3E4954)
}

/* cement & sariya */
.m9 {
  background: linear-gradient(140deg, #4A6572, #232F34)
}

/* glass & mirror */
.m10 {
  background: linear-gradient(140deg, #A0522D, #5C2E17)
}

/* plywood & sheet */
.m11 {
  background: linear-gradient(140deg, #4682B4, #1C3950)
}

/* roofing sheets */
.m12 {
  background: linear-gradient(140deg, #20B2AA, #0E524E)
}

/* plumbing & pipes */
.m13 {
  background: linear-gradient(140deg, #B8860B, #664B06)
}

/* locks & hardware */
.m14 {
  background: linear-gradient(140deg, #708090, #36414C)
}

/* waterproofing */
.m15 {
  background: linear-gradient(140deg, #E67E22, #964F13)
}

/* lighting fixtures */
.m16 {
  background: linear-gradient(140deg, #8E44AD, #522368)
}

/* kitchen accessories */


/* ==========================================================
   HOW IT WORKS  (WP: section-steps)
   ========================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 46px
}

.step {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 34px 28px;
  border: 1.5px solid var(--line);
  position: relative;
  transition: .25s
}

.step:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px)
}

.step-num {
  position: absolute;
  top: -18px;
  left: 26px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--amber);
  color: var(--navy-deep);
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 19px;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 14px rgba(242, 169, 59, .4)
}

.step h3 {
  margin: 14px 0 8px
}

.step p {
  color: var(--ink-soft);
  font-size: 15px
}

/* ==========================================================
   FEATURED WORKERS  (WP: CPT "workers" loop)
   ========================================================== */
.featured {
  background: var(--paper)
}

.pros {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  margin-top: 46px;
}

.pros>* {
  width: calc(25% - 16.5px);
  min-width: 260px;
}

.pro {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 20px;
  padding: 30px 24px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
}

.pro::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent-gradient, linear-gradient(135deg, var(--teal), var(--navy)));
  opacity: 0;
  transition: opacity 0.3s;
}

.pro:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  transform: translateY(-8px);
  border-color: transparent;
}

.pro:hover::before {
  opacity: 1;
}

.avatar {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--navy), #2E5A88);
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 28px;
  border: 4px solid #fff;
  box-shadow: 0 8px 20px rgba(46, 90, 136, 0.3);
  transition: transform 0.3s;
}

.pro:hover .avatar,
.pro:hover .shop-avatar {
  transform: scale(1.05);
}

.shop-avatar {
  width: 86px;
  height: 86px;
  border-radius: 18px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--navy), #2E5A88);
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 28px;
  border: 4px solid #fff;
  box-shadow: 0 8px 20px rgba(46, 90, 136, 0.3);
  transition: transform 0.3s;
}

.pro .trade {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 4px 0
}

.pro .area {
  font-size: 13.5px;
  color: var(--ink-soft)
}

.stars {
  color: var(--amber);
  font-size: 14px;
  letter-spacing: 2px;
  margin: 8px 0 4px
}

.stars small {
  color: var(--ink-soft);
  letter-spacing: 0;
  font-weight: 700
}

.verify {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 800;
  color: #1B8A4C;
  background: rgba(30, 190, 93, .1);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px
}

.pro-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 14px
}

/* ==========================================================
   TRUST / WHY US  (WP: section-trust)
   ========================================================== */
.trust .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center
}

.trust-photo {
  border-radius: var(--radius);
  aspect-ratio: 4/3.4;
  background: linear-gradient(150deg, #2E5A88, var(--navy-deep));
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden
}

.trust-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(122, 168, 214, .12) 1px, transparent 1px), linear-gradient(90deg, rgba(122, 168, 214, .12) 1px, transparent 1px);
  background-size: 40px 40px
}

.trust-badge {
  position: absolute;
  right: -16px;
  bottom: 30px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 22px;
  display: flex;
  gap: 12px;
  align-items: center;
  z-index: 2
}

.trust-badge b {
  font-family: var(--ff-display);
  font-size: 26px;
  color: var(--navy)
}

.trust-badge span {
  font-size: 12.5px;
  color: var(--ink-soft);
  max-width: 120px;
  line-height: 1.4
}

.ticks {
  list-style: none;
  display: grid;
  gap: 16px;
  margin-top: 26px
}

.ticks li {
  display: flex;
  gap: 14px
}

.tick-icon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: rgba(242, 169, 59, .16);
  display: grid;
  place-items: center;
  color: var(--amber-dk)
}

.ticks h3 {
  font-size: 16.5px
}

.ticks p {
  font-size: 14px;
  color: var(--ink-soft)
}

/* ==========================================================
   AREAS COVERED  (WP: section-areas)
   ========================================================== */
.areas {
  padding: 56px 0;
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line)
}

.area-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 26px
}

.atag {
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-soft);
  transition: .2s;
  background: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ff-body)
}

.atag:hover {
  border-color: var(--navy);
  color: var(--navy);
  background: rgba(22, 50, 79, .05);
  transform: translateY(-1px)
}

/* ==========================================================
   REGISTER CTA  (WP: section-cta)
   ========================================================== */
.cta {
  padding: 90px 0
}

.cta-box {
  background: linear-gradient(130deg, var(--navy), var(--navy-deep));
  border-radius: 22px;
  color: #fff;
  padding: 64px 56px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden
}

.cta-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(122, 168, 214, .1) 1px, transparent 1px), linear-gradient(90deg, rgba(122, 168, 214, .1) 1px, transparent 1px);
  background-size: 50px 50px
}

.cta-box>* {
  position: relative
}

.cta-box h2 {
  color: #fff
}

.cta-box p {
  color: #B9C8D6
}

.cta-box .urdu {
  color: var(--amber);
  font-size: 17px;
  margin-bottom: 8px
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 14px
}

/* ==========================================================
   FOOTER  (WP: footer.php)
   ========================================================== */
footer {
  background: #0A1B2C;
  color: #9FB2C3;
  padding: 70px 0 0
}

.foot {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px
}

.foot h4 {
  color: #fff;
  font-family: var(--ff-display);
  font-size: 16px;
  letter-spacing: .04em;
  margin-bottom: 18px
}

.foot ul {
  list-style: none;
  display: grid;
  gap: 10px;
  font-size: 14.5px
}

.foot a:hover {
  color: var(--amber)
}

.foot p {
  font-size: 14.5px
}

.footbar {
  border-top: 1px solid rgba(255, 255, 255, .1);
  margin-top: 54px;
  padding: 22px 0;
  font-size: 13.5px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width:450px) {
  .rv-lead {
    font-size: 15px;
  }
}

@media (max-width:1080px) {
  .cat-grid {
    grid-template-columns: repeat(3, 1fr)
  }



  .mat-grid,
  .pros {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media (max-width:900px) {

  .trust .wrap,
  .cta-box {
    grid-template-columns: 1fr
  }

  .steps-grid {
    grid-template-columns: 1fr
  }

  .search {
    grid-template-columns: 1fr;
    gap: 6px
  }

  .search .field {
    border-right: 0;
    border-bottom: 1px solid var(--line)
  }

  .cta-actions {
    flex-direction: row;
    flex-wrap: wrap
  }

  .trust-badge {
    right: 12px
  }
}

@media (max-width:680px) {
  section {
    padding: 60px 0
  }

  .menu,
  .nav-cta .btn-amber {
    display: none
  }

  .burger {
    display: block
  }

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

  .mat-grid,
  .pros {
    grid-template-columns: 1fr
  }

  .foot {
    grid-template-columns: 1fr
  }

}


@media (max-width:360px) {
  .hero h1 {
    font-size: 28px
  }

  .logo span:not(.mark) {
    font-size: 17px
  }
}

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

/* ---- Directory / registration overlays on tablets & phones ---- */
@media (max-width:768px) {
  .dir-nav {
    padding: 0 16px;
    height: 64px;
    gap: 8px
  }

  .dir-nav-links,
  .dir-subtitle {
    display: none
  }

  .dir-nav .logo {
    font-size: 16px;
    gap: 8px
  }

  .dir-nav .logo .mark {
    width: 32px;
    height: 32px;
    font-size: 14px
  }

  .dir-nav .reg-dropdown-btn {
    padding: 8px 12px;
    font-size: 12px
  }

  .dir-nav .reg-dropdown-menu {
    width: min(260px, calc(100vw - 32px));
    right: -16px
  }

  .dir-hd {
    padding: 14px 16px;
    gap: 10px
  }

  .dir-title {
    font-size: 15.5px
  }

  .dir-subtitle {
    margin-left: 0
  }

  .dir-body {
    padding: 26px 16px 60px
  }

  .cta-box {
    padding: 40px 24px
  }

  .hero-stats {
    gap: 26px 34px
  }

  /* keep form inputs at 16px so mobile browsers don't auto-zoom on focus */
  .form-control,
  .search select,
  .search input {
    font-size: 16px
  }
}

@media (max-width:480px) {
  .wrap {
    padding: 0 16px
  }

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

  .hero {
    padding: 64px 0 84px
  }

  .hero-inner {
    padding: 0
  }

  .cta-box {
    padding: 30px 18px
  }

  .reg-tab {
    padding: 12px 20px;
    font-size: 14px
  }

  .step-num {
    left: 20px
  }

  .trust-badge {
    right: 0;
    padding: 14px 16px
  }
}

/* ==========================================================
   DIRECTORY OVERLAY
   ========================================================== */
.dir-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  transform: translateX(100%);
  transition: transform .4s cubic-bezier(.4, 0, .2, 1);
  overflow-y: auto
}

.dir-overlay.open {
  transform: translateX(0)
}

.dir-hd {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 16px
}

.dir-hd.dark {
  background: rgba(12, 33, 54, .96);
  border-color: rgba(122, 168, 214, .2)
}

.dir-back {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 14px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--navy);
  padding: 8px 14px;
  border-radius: 8px;
  transition: .2s;
  font-family: var(--ff-body)
}

.dir-hd.dark .dir-back {
  color: #BFD0DF
}

.dir-back:hover {
  background: rgba(22, 50, 79, .08)
}

.dir-hd.dark .dir-back:hover {
  background: rgba(255, 255, 255, .1)
}

.dir-back svg {
  transition: .2s
}

.dir-back:hover svg {
  transform: translateX(-3px)
}

.dir-title {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 18px;
  color: var(--navy)
}

.dir-hd.dark .dir-title {
  color: #fff
}

.dir-subtitle {
  font-size: 13px;
  color: var(--ink-soft);
  margin-left: auto
}

.dir-hd.dark .dir-subtitle {
  color: #8FA6BA
}

/* Overlay full navbar */
.dir-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding: 0 24px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px
}

.dir-nav.dark {
  background: rgba(12, 33, 54, .96);
  border-color: rgba(122, 168, 214, .2)
}

.dir-nav .logo {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 20px;
  color: var(--navy);
  cursor: pointer;
  border: none;
  background: none
}

.dir-nav.dark .logo {
  color: #fff
}

.dir-nav .logo .mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--navy);
  display: grid;
  place-items: center;
  color: var(--amber);
  font-size: 17px
}

.dir-nav.dark .logo .mark {
  background: var(--amber);
  color: var(--navy-deep)
}

.dir-nav .logo small {
  display: block;
  font-family: var(--ff-body);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--teal);
  text-transform: uppercase
}

.dir-nav.dark .logo small {
  color: var(--amber)
}

.dir-nav-links {
  display: flex;
  gap: 28px;
  list-style: none
}

.dir-nav-links a,
.dir-nav-links button {
  font-weight: 700;
  font-size: 14.5px;
  position: relative;
  padding: 6px 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--navy);
  font-family: var(--ff-body);
  text-decoration: none
}

.dir-nav.dark .dir-nav-links a,
.dir-nav.dark .dir-nav-links button {
  color: #BFD0DF
}

.dir-nav-links a::after,
.dir-nav-links button::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2.5px;
  background: var(--amber);
  transition: .25s
}

.dir-nav-links a:hover::after,
.dir-nav-links button:hover::after {
  width: 100%
}

.dir-nav-cta {
  display: flex;
  gap: 10px;
  align-items: center
}

.dir-body {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 40px 24px 80px
}

.dir-filter-bar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.dir-nav.dark+.dir-filter-bar {
  background: var(--navy-deep);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.dir-filter-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}

.dir-filter-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 160px;
}

.dir-filter-field label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--ink-soft);
  text-transform: uppercase;
}

.dir-nav.dark+.dir-filter-bar .dir-filter-field label {
  color: #8FA6BA;
}

.dir-filter-field select {
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: 14px;
}

.dir-nav.dark+.dir-filter-bar .dir-filter-field select {
  background: #14304C;
  border-color: rgba(255, 255, 255, .15);
  color: #fff;
}

.dir-filter-reset {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 13px;
  font-family: var(--ff-body);
  cursor: pointer;
  font-weight: 700;
}

.dir-nav.dark+.dir-filter-bar .dir-filter-reset {
  color: #8FA6BA;
  border-color: rgba(255, 255, 255, .18);
}

.dir-filter-count {
  margin-left: auto;
  align-self: center;
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 700;
}

.dir-nav.dark+.dir-filter-bar .dir-filter-count {
  color: #8FA6BA;
}

.section-stats {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink-soft);
  margin: -6px 0 30px;
}

.section-stats b {
  color: var(--navy);
}

.materials .section-stats b {
  color: #fff;
}

.materials .section-stats {
  color: #B9C9D6;
}

.dir-section-title {
  font-family: var(--ff-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px
}

.dir-section-sub {
  color: var(--ink-soft);
  font-size: 14px;
  margin-bottom: 28px
}

.dir-pros {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px
}

.dir-pros>* {
  width: calc(25% - 16.5px);
  min-width: 260px;
}

@media(max-width:1080px) {
  .dir-pros {
    grid-template-columns: repeat(3, 1fr)
  }
}

@media(max-width:680px) {
  .dir-pros {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media(max-width:440px) {
  .dir-pros {
    grid-template-columns: 1fr
  }
}

/* shop card in pro style */
.shop-avatar {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 22px;
  border: 3px solid var(--amber)
}

.shop-verify {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--amber);
  background: rgba(242, 169, 59, .15);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px
}

/* Overlay dark/light backgrounds matching main sections */
#workerDir {
  background: var(--bg)
}

#shopDir {
  background: var(--navy-deep);
  background-image: linear-gradient(rgba(122, 168, 214, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(122, 168, 214, .08) 1px, transparent 1px);
  background-size: 60px 60px;
  color: #fff
}

#shopDir .dir-section-title {
  color: #fff
}

#shopDir .mat {
  background: #122B45;
  border-color: rgba(122, 168, 214, .2)
}

#shopDir .pro {
  background: #122B45;
  border-color: rgba(122, 168, 214, .2);
  color: #fff
}

#shopDir .pro h3 {
  color: #fff
}

#shopDir .pro .trade {
  color: var(--amber)
}

#shopDir .pro .area {
  color: #93A9BD
}

#shopDir .pro .stars {
  color: var(--amber)
}

#shopDir .pro .stars small {
  color: #93A9BD
}

/* ==========================================================
   REGISTRATION FORMS STYLING
   ========================================================== */
.reg-section {
  padding: 80px 0;
  background: var(--navy-deep);
  background-image: linear-gradient(rgba(122, 168, 214, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(122, 168, 214, .06) 1px, transparent 1px);
  background-size: 60px 60px;
  color: #fff
}

.reg-card {
  background: var(--navy);
  border: 1px solid rgba(122, 168, 214, .25);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  margin-top: 32px
}

.reg-tabs {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-bottom: 36px
}

.reg-tab {
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid rgba(122, 168, 214, .3);
  background: rgba(12, 33, 54, .7);
  color: #BFD0DF;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all .25s ease;
  display: flex;
  align-items: center;
  gap: 10px
}

.reg-tab:hover {
  border-color: var(--amber);
  color: #fff
}

.reg-tab.active {
  background: var(--amber);
  color: var(--navy-deep);
  border-color: var(--amber);
  box-shadow: 0 6px 20px rgba(242, 169, 59, .35)
}

.reg-form-panel {
  display: none
}

.reg-form-panel.active {
  display: block;
  animation: regFadeIn .3s ease
}

@keyframes regFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px)
  }

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

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

@media(max-width:680px) {
  .reg-grid {
    grid-template-columns: 1fr
  }

  .reg-card {
    padding: 24px 18px
  }

  .reg-tabs {
    flex-direction: column
  }
}

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

.form-group label {
  font-size: 13px;
  font-weight: 700;
  color: #BFD0DF;
  display: flex;
  align-items: center;
  gap: 6px
}

.form-group label span.req {
  color: var(--amber)
}

.form-control {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  background: #0C2136;
  border: 1px solid rgba(122, 168, 214, .3);
  color: #fff;
  font-family: var(--ff-body);
  font-size: 14px;
  transition: border-color .2s, box-shadow .2s;
  outline: none
}

.form-control:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(242, 169, 59, .2)
}

.form-control::placeholder {
  color: #5B7388
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23BFD0DF' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px
}

select.form-control option {
  background: #0C2136;
  color: #fff
}

.reg-submit-btn {
  grid-column: 1 / -1;
  margin-top: 12px;
  width: 100%;
  padding: 15px 30px;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px
}

.reg-success-msg {
  display: none;
  background: #F0FDF4;
  border: 1.5px solid #BBF7D0;
  color: #166534;
  padding: 24px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  font-weight: 500;
  text-align: left;
  line-height: 1.6;
  box-shadow: 0 10px 25px -5px rgba(22, 101, 52, 0.05);
  border-left: 5px solid #22C55E;
}

body.lang-ur .reg-success-msg {
  text-align: right;
  border-left: 1.5px solid #BBF7D0;
  border-right: 5px solid #22C55E;
}

.reg-success-msg h3 {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 16.5px;
  margin: 0 0 8px 0;
  color: #14532D;
  display: flex;
  align-items: center;
  gap: 8px;
}

.reg-success-msg p {
  font-size: 14px;
  margin: 0;
  color: #166534;
}

.id-badge-info {
  font-size: 12px;
  color: var(--amber);
  background: rgba(242, 169, 59, .12);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: monospace;
  font-weight: 700
}

/* ==========================================================
    REVIEW PAGE / STAR RATING
    ========================================================== */
.review-page {
  background: var(--bg)
}

.star-rating {
  display: inline-flex;
  gap: 10px
}

.star-rating .star {
  color: #C9D6E2;
  transition: color .15s, transform .15s
}

.star-rating .star.active {
  color: var(--amber)
}

.star-rating .star:hover {
  transform: translateY(-3px)
}

.alert {
  border-radius: 10px;
  padding: 14px 16px;
  font-weight: 500
}

.alert-success {
  background: #EFF7F0;
  border: 1.5px solid #BBF7D0;
  color: #14532D
}

.alert-error {
  background: #FFF1F2;
  border: 1.5px solid #FECDD3;
  color: #7F1D1D
}

/* ==========================================================
   REVIEW PAGE — FULL REDESIGN
========================================================== */

/* ---- Hero banner ---- */
.rv-hero {
  background: var(--navy-deep);
  background-image:
    linear-gradient(rgba(122, 168, 214, .12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 168, 214, .12) 1px, transparent 1px);
  background-size: 80px 80px;
  padding: 72px 0 64px;
  position: relative;
  overflow: hidden;
}

.rv-hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 48px;
  background: var(--bg);
  clip-path: ellipse(56% 100% at 50% 100%);
}

.rv-hero-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 0 24px;
}

.rv-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(242, 169, 59, .15);
  border: 1px solid rgba(242, 169, 59, .35);
  color: var(--amber);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.rv-hero h1 {
  color: #fff;
  font-size: clamp(24px, 6vw, 46px);
  font-family: var(--ff-display);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 14px;
}

.rv-hero h1 span {
  color: var(--amber);
}

.rv-lead {
  color: #B0C4D6;
  font-size: 17px;
  line-height: 1.65;
  max-width: 580px;
  margin: 0 auto 28px;
}

.rv-trust-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.rv-trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  color: #D7E5EF;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 999px;
}

.rv-trust-item svg {
  color: var(--amber);
  flex-shrink: 0;
}

/* ---- Two-column layout ---- */
.rv-section {
  padding: 60px 0 90px;
}

.rv-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 36px;
  align-items: start;
}

@media(max-width:900px) {
  .rv-layout {
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column-reverse;
    gap: 36px;
  }

  .rv-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    width: 100%;
  }

  .rv-form-wrap {
    width: 100%;
  }
}

@media(max-width:560px) {
  .rv-sidebar {
    grid-template-columns: 1fr;
  }
}

/* ---- Sidebar: How it works ---- */
.rv-how-card {
  background: var(--navy-deep);
  border-radius: var(--radius);
  padding: 28px 24px;
  margin-bottom: 20px;
}

.rv-how-title {
  font-family: var(--ff-display);
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(122, 168, 214, .2);
}

.rv-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.rv-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.rv-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--navy-deep);
  font-size: 12px;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.rv-step strong {
  display: block;
  color: #fff;
  font-size: 14px;
  margin-bottom: 3px;
}

.rv-step p {
  color: #8FA6BA;
  font-size: 12.5px;
  margin: 0;
  line-height: 1.5;
}

/* ---- Sidebar: Info cards ---- */
.rv-info-card {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}

.rv-info-card--amber {
  background: #FFFBF0;
  border-color: rgba(242, 169, 59, .3);
}

.rv-info-icon {
  font-size: 26px;
  margin-bottom: 10px;
}

.rv-info-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.rv-info-card p {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0;
}

.rv-guidelines {
  padding-left: 16px;
  margin: 0;
}

.rv-guidelines li {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 6px;
  line-height: 1.5;
}

/* ---- Form card ---- */
.rv-form-card {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(12, 33, 54, .08);
  overflow: hidden;
}

.rv-form-header {
  background: var(--navy);
  padding: 24px 32px;
  border-bottom: 3px solid var(--amber);
}

.rv-form-header h2 {
  font-family: var(--ff-display);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
}

.rv-form-header p {
  color: #8FA6BA;
  font-size: 13px;
  margin: 0;
}

.rv-form-header .req {
  color: var(--amber);
}

form#reviewForm {
  padding: 28px 32px;
}

/* ---- Flash / alert ---- */
.rv-flash {
  margin-bottom: 0;
}

.rv-flash:empty {
  display: none;
}

.rv-flash .alert {
  margin: 0 0 20px;
  border-radius: 10px;
}

/* ---- Field block ---- */
.rv-field-block {
  margin-bottom: 24px;
}

label.rv-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 800;
  color: var(--navy-deep);
  margin-bottom: 9px;
}

label.rv-label .req {
  color: #EF4444;
}

/* ---- Type cards ---- */
.rv-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.rv-type-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 16px;
  border: 2px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  transition: .2s;
  text-align: center;
  background: #F8FAFC;
}

.rv-type-card input[type="radio"] {
  display: none;
}

.rv-type-card:hover {
  border-color: var(--navy);
  background: #fff;
}

.rv-type-card.selected {
  border-color: var(--amber);
  background: #FFFBF0;
  box-shadow: 0 0 0 4px rgba(242, 169, 59, .12);
}

.rv-type-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(22, 50, 79, .08);
  display: grid;
  place-items: center;
  color: var(--navy);
  transition: .2s;
}

.rv-type-card.selected .rv-type-icon {
  background: var(--amber);
  color: var(--navy-deep);
}

.rv-type-card strong {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--navy);
}

.rv-type-card small {
  font-size: 11.5px;
  color: var(--ink-soft);
}

/* ---- Select & Input wrappers ---- */
.rv-select-wrap,
.rv-input-wrap {
  position: relative;
}

.rv-select-icon,
.rv-input-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-soft);
  pointer-events: none;
}

.rv-select,
.rv-input,
.rv-textarea {
  width: 100%;
  padding: 12px 14px 12px 40px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #F8FAFC;
  color: var(--navy-deep);
  font-family: var(--ff-body);
  font-size: 14.5px;
  font-weight: 500;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  appearance: none;
}

.rv-select::placeholder,
.rv-input::placeholder,
.rv-textarea::placeholder {
  color: var(--ink-soft);
  opacity: 0.8;
}

.rv-select:focus,
.rv-input:focus,
.rv-textarea:focus {
  border-color: var(--amber);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(242, 169, 59, .18);
}

.rv-select:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.rv-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235C6B7A' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 38px;
}

.rv-textarea {
  padding: 12px 14px;
  resize: vertical;
  min-height: 120px;
}

.rv-char-hint {
  font-size: 11.5px;
  color: var(--ink-soft);
  margin-top: 6px;
  text-align: right;
}

/* ---- Star rating ---- */
.rv-stars-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.rv-star-row {
  display: flex;
  gap: 6px;
}

.rv-star-row .star {
  font-size: 34px;
  color: #D8E3EC;
  cursor: pointer;
  transition: color .15s, transform .15s;
  line-height: 1;
  user-select: none;
}

.rv-star-row .star.active {
  color: var(--amber);
}

.rv-star-row .star:hover {
  transform: scale(1.2);
}

.rv-star-label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-soft);
  min-width: 70px;
}

/* ---- Submit button ---- */
.rv-submit-btn {
  width: 100%;
  padding: 15px 28px;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: var(--ff-display);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: .25s;
  margin-top: 8px;
}

.rv-submit-btn:hover {
  background: var(--navy-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(22, 50, 79, .3);
}

.rv-submit-btn:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}

@media(max-width:560px) {
  form#reviewForm {
    padding: 20px 18px;
  }

  .rv-form-header {
    padding: 20px 18px;
  }

  .rv-type-grid {
    grid-template-columns: 1fr;
  }

  .rv-stars-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* ==========================================================
   REGISTRATION FORMS — NEW PREMIUM CARD STYLE (rg-*)
========================================================== */

.rg-card {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 44px rgba(12, 33, 54, .09);
  padding: 36px 36px 40px;
}

@media(max-width:600px) {
  .rg-card {
    padding: 22px 18px 28px;
  }
}

.rg-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.rg-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
}

.rg-badge--teal {
  background: rgba(46, 139, 139, .1);
  color: var(--teal);
  border: 1px solid rgba(46, 139, 139, .25);
}

.rg-badge--amber {
  background: rgba(242, 169, 59, .12);
  color: #9A6800;
  border: 1px solid rgba(242, 169, 59, .3);
}

.rg-badge--green {
  background: rgba(34, 197, 94, .1);
  color: #14532D;
  border: 1px solid rgba(34, 197, 94, .25);
}

.rg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

.rg-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.rg-label .req {
  color: #EF4444;
}

.rg-input-wrap {
  position: relative;
}

.rg-control,
.rg-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #F8FAFC;
  color: var(--navy);
  font-family: var(--ff-body);
  font-size: 14.5px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.rg-control:focus,
.rg-input:focus {
  border-color: var(--amber);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(242, 169, 59, .18);
}

.rg-control::placeholder,
.rg-input::placeholder {
  color: #93A9BD;
}

.rg-select-wrap {
  position: relative;
}

.rg-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235C6B7A' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 38px;
  cursor: pointer;
}

.rg-select:disabled {
  opacity: .5;
  cursor: not-allowed;
  background-color: #EEF1F5;
}

/* ---- Location cascade ---- */
.rg-location-cascade {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.rg-cascade-step {
  flex: 1;
  min-width: 140px;
}

.rg-cascade-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.rg-cascade-label .req {
  color: #EF4444;
}

.rg-cascade-arrow {
  color: var(--line);
  flex-shrink: 0;
  margin-top: 22px;
}

/* When a step becomes active (not disabled), highlight its label */
.rg-cascade-step:has(select:not(:disabled)) .rg-cascade-label {
  color: var(--teal);
}

.rg-cascade-step:has(select:not([value=""])) .rg-cascade-label {
  color: var(--navy);
}

@media(max-width:600px) {
  .rg-location-cascade {
    flex-direction: column;
    gap: 14px;
  }

  .rg-cascade-arrow {
    display: none;
  }

  .rg-cascade-step {
    min-width: 100%;
  }
}

/* ---- Submit & note ---- */
.rg-submit-btn {
  width: 100%;
  padding: 15px 28px;
  font-size: 16px;
  font-family: var(--ff-display);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: .25s;
}

.btn-navy.rg-submit-btn:hover {
  box-shadow: 0 8px 24px rgba(22, 50, 79, .28);
}

.btn-amber.rg-submit-btn:hover {
  box-shadow: 0 8px 24px rgba(242, 169, 59, .3);
}

.rg-note {
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-top: 12px;
  margin-bottom: 0;
}

/* ==========================================================
   FAQ ACCORDION
========================================================== */
.faq-accordion-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(12, 33, 54, .03);
  transition: box-shadow .2s, border-color .2s;
}

.faq-item:hover {
  border-color: rgba(43, 122, 120, .3);
  box-shadow: 0 6px 20px rgba(12, 33, 54, .06);
}

.faq-item[open] {
  border-color: var(--amber);
  box-shadow: 0 6px 20px rgba(12, 33, 54, .08);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  font-family: var(--ff-display);
  font-size: 17.5px;
  font-weight: 700;
  color: var(--navy-deep);
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-icon {
  color: var(--teal);
  transition: transform .3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(43, 122, 120, .1);
}

.faq-item[open] .faq-icon {
  transform: rotate(180deg);
  background: var(--amber);
  color: var(--navy-deep);
}

.faq-answer {
  padding: 0 24px 24px;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.7;
}

.faq-answer p {
  margin: 0;
}

/* ==========================================================
   REGISTRATION: Create Account Optional Panel
========================================================== */
.rg-account-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}

.rg-account-divider::before,
.rg-account-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.rg-account-toggle-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 14px 18px;
  border: 2px dashed var(--teal);
  border-radius: 10px;
  background: transparent;
  color: var(--teal);
  font-size: 15px;
  font-weight: 700;
  font-family: var(--ff-display);
  cursor: pointer;
  transition: all .2s;
  justify-content: center;
}

.rg-account-toggle-btn:hover {
  background: rgba(43, 122, 120, .07);
}

.rg-account-toggle-btn.active {
  background: rgba(43, 122, 120, .1);
  border-style: solid;
}

.rg-account-panel {
  background: linear-gradient(135deg, rgba(43, 122, 120, .04), rgba(247, 168, 45, .04));
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 20px 22px;
  animation: panelSlideIn .25s ease;
}

@keyframes panelSlideIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

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

.rg-account-panel-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}

.rg-account-panel-header svg {
  color: var(--teal);
  flex-shrink: 0;
  margin-top: 2px;
}

.rg-account-panel-header strong {
  display: block;
  font-family: var(--ff-display);
  font-size: 15px;
  color: var(--navy-deep);
  margin-bottom: 4px;
}

.rg-account-panel-header p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* ===== FIND DROPDOWN MENU ===== */
.nav-dd-wrap {
  position: relative;
  display: inline-block;
}

.nav-dd-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.nav-dd-wrap:hover .nav-dd-menu,
.nav-dd-wrap.open .nav-dd-menu {
  display: block;
  animation: ddFadeIn 0.2s ease;
}

.nav-dd-wrap:hover .nav-dd-toggle svg,
.nav-dd-wrap.open .nav-dd-toggle svg {
  transform: rotate(180deg);
}

.nav-dd-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 14px);
  width: 280px;
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  padding: 16px;
  z-index: 1000;
}

/* Invisible bridge to prevent losing hover when mouse moves down */
.nav-dd-menu::after {
  content: "";
  position: absolute;
  top: -24px;
  left: 0;
  right: 0;
  height: 24px;
  background: transparent;
}

.nav-dd-item {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: none;
  background: none;
  border-radius: 10px;
  cursor: pointer;
  color: var(--navy-deep);
  text-decoration: none;
}

.nav-dd-item::after {
  display: none !important;
}

.gradient-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px !important;
  border-radius: 14px !important;
  color: var(--navy-deep) !important;
  background: transparent !important;
  margin-bottom: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  border: 1px solid transparent;
}

.gradient-item:hover {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.05);
  color: var(--navy-deep) !important;
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.gradient-item strong {
  color: inherit !important;
  font-size: 14.5px !important;
  font-weight: 600 !important;
  letter-spacing: 0.3px;
  transition: color 0.3s ease;
}

.gradient-item svg {
  color: var(--amber) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gradient-item:hover svg {
  transform: scale(1.15);
  filter: drop-shadow(0 2px 4px rgba(245, 158, 11, 0.3));
}

/* ===== SMART NAVBAR LIVE SEARCH ===== */
.nav-search-wrap {
  position: relative;
}

.nav-search-input-group {
  display: flex;
  align-items: center;
  background: #f1f5f9;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 4px 10px;
  transition: all 0.2s ease;
}

.nav-search-input-group:focus-within {
  background: #ffffff;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.nav-search-icon {
  margin-right: 8px;
  flex-shrink: 0;
}

.nav-search-input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 13.5px;
  width: 100%;
  color: var(--navy-deep);
  padding: 4px 0;
  font-family: inherit;
}

.nav-search-input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.nav-search-type-select {
  border: none;
  background: #e2e8f0;
  color: #334155;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 6px;
  border-radius: 6px;
  outline: none;
  cursor: pointer;
  margin-left: 6px;
}

.nav-search-results {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  min-width: 320px;
  background: #ffffff;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
  max-height: 380px;
  overflow-y: auto;
  z-index: 1000;
  padding: 8px;
}

.nav-search-results.active {
  display: block;
  animation: ddFadeIn 0.2s ease;
}

.live-search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--navy-deep);
  transition: background 0.15s ease;
}

.live-search-item:hover {
  background: #f8fafc;
}

.live-search-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--navy-deep);
}

.live-search-info {
  flex: 1;
  min-width: 0;
}

.live-search-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--navy-deep);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-search-meta {
  font-size: 12px;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-search-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-teal {
  background: rgba(13, 148, 136, 0.12);
  color: var(--teal);
}

.badge-amber {
  background: rgba(245, 158, 11, 0.15);
  color: #d97706;
}

@media (max-width: 1024px) {
  .nav-search-wrap {
    max-width: 100%;
    margin: 10px 0;
  }
}

/* ==========================================================
   PRODUCTION RESPONSIVENESS FIXES (HEADER & GLOBAL)
========================================================== */
html,
body {
  overflow-x: clip;
  width: 100%;
  max-width: 100vw;
}

img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.wrap {
  width: 100%;
  max-width: var(--wrap, 1200px);
  margin: 0 auto;
  padding: 0 5%;
  box-sizing: border-box;
}

.search {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.cat,
.mat,
.pro,
.step,
.rv-type-card,
.plan-card {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.hero {
  box-sizing: border-box;
}

/* Desktop scaling */
@media (min-width: 1280px) {
  .wrap {
    padding: 0;
  }

  h1 {
    font-size: clamp(3rem, 4vw, 4rem);
  }
}

/* Base Desktop Fixes for Header Buttons */
@media (min-width: 993px) {
  .desktop-hidden {
    display: none !important;
  }
}

/* Tablets Landscape & Small Desktops (820px - 1024px) */
@media (max-width: 1024px) {
  .search {
    grid-template-columns: 1fr 1fr;
  }

  .search .field:nth-child(2) {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .search .btn {
    grid-column: 1 / -1;
  }

  .hero h1 {
    font-size: 42px;
  }

  .rv-sidebar {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================
   1. HEADER & NAV — max-width: 992px
========================================================== */
@media (max-width: 992px) {
  header.site .nav {
    height: 78px;
    padding: 0 16px;
  }

  .logo {
    font-size: 18px;
    gap: 10px;
  }

  .header-logo-img {
    height: 56px;
  }

  .menu {
    display: none !important;
  }

  .burger {
    display: block !important;
  }

  .nav nav {
    position: static !important;
    transform: none !important;
    left: auto !important;
  }

  .nav-cta .auth-btns {
    gap: 6px;
  }

  .btn-login {
    padding: 7px 12px;
    font-size: 12.5px;
  }

  .reg-dropdown-btn {
    padding: 8px 14px;
    font-size: 12.5px;
  }

  /* --- RIGHT-SIDE DRAWER MENU --- */
  .mobile-only-li {
    display: none;
  }

  .desktop-only-flex {
    display: none !important;
  }

  /* Overlay backdrop */
  .menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 989;
    backdrop-filter: blur(2px);
  }

  .menu-overlay.open {
    display: block;
    animation: overlayFadeIn 0.25s ease;
  }

  /* Right-side drawer */
  .menu.open {
    display: flex !important;
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: auto !important;
    width: min(320px, 85vw);
    background: #fff;
    flex-direction: column;
    padding: 80px 24px 32px;
    gap: 0;
    border-left: 1px solid var(--line);
    border-radius: 24px 0 0 24px;
    box-shadow: -8px 0 40px rgba(12, 33, 54, 0.18);
    z-index: 990;
    overflow-y: auto;
    animation: drawerSlideIn 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .menu.open li {
    border-bottom: 1px solid var(--line);
    padding: 0;
    width: 100%;
  }

  .menu.open a,
  .menu.open .nav-dd-toggle {
    display: block;
    font-size: 15px;
    padding: 14px 4px;
    color: var(--navy);
    width: 100%;
    font-weight: 600;
  }

  /* Mobile-only items shown inside drawer */
  .menu.open .mobile-only-li {
    display: block;
  }

  .menu.open .mobile-only-li:not(.auth-li) a {
    padding: 10px 0;
  }

  .menu.open .auth-li {
    border: none !important;
    margin-top: 12px;
  }

  .topbar {
    padding: 6px 0;
    font-size: 12px;
  }

  .topbar .wrap {
    flex-direction: column;
    gap: 4px;
    text-align: center;
    justify-content: center;
  }
}

@keyframes drawerSlideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

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

@keyframes overlayFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes menuSlideDown {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }

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

/* ========================================
   SCROLL INDICATOR for card rows
   ======================================== */
.scroll-indicator-wrap {
  display: none;
  /* shown only on mobile via media query */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  margin-bottom: 24px;
}

.scroll-status-badge {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 5px 14px;
  border-radius: 20px;
  letter-spacing: 0.02em;
}

.scroll-dots-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.scroll-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  cursor: pointer;
}

.scroll-dot.active {
  width: 22px;
  border-radius: 4px;
  background: var(--amber);
}

@keyframes dotPulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

/* ==========================================================
   2-8, 12. TABLETS & MOBILE — max-width: 768px
========================================================== */
@media (max-width: 768px) {

  /* --- 2. HERO --- */
  .hero {
    padding: 40px 0 56px;
  }

  .hero h1 {
    font-size: clamp(24px, 7vw, 34px);
    line-height: 1.15;
  }

  .hero p {
    font-size: 14px;
  }

  .hero .urdu {
    font-size: 15px;
  }

  .hero-inner {
    padding: 0 4px;
  }

  /* --- Global smaller fonts on mobile ---
     RESPONSIVE CHANGE: clamp() floors instead of a single fixed px
     value, so text keeps shrinking gracefully down to 320px phones
     rather than staying flat from 768px all the way to 320px. */
  body {
    font-size: clamp(12px, 3.2vw, 12.5px);
  }

  p,
  li,
  td,
  th,
  a {
    font-size: clamp(11.5px, 3vw, 12px);
  }

  h2 {
    font-size: clamp(16px, 4.5vw, 19px);
  }

  h3 {
    font-size: clamp(13.5px, 4vw, 15px);
  }

  /* Mobile-only nav items shown when menu open (handled by .menu.open .mobile-only-li) */

  .search {
    grid-template-columns: 1fr;
    gap: 0;
    border-radius: 14px;
    padding: 10px;
  }

  .search .field {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 10px 12px;
  }

  .search .field:last-of-type {
    border-bottom: none;
  }

  .search select,
  .search input {
    font-size: 16px;
  }

  .search .btn {
    width: 100%;
    margin-top: 8px;
    padding: 14px;
    font-size: 15px;
    border-radius: 10px;
  }

  .chips {
    gap: 8px;
    margin-top: 16px;
  }

  .chip {
    padding: 7px 14px;
    font-size: 12.5px;
  }

  .hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 28px;
    justify-content: center;
    margin-top: 24px;
  }

  .hero-stats>div {
    flex: 1 1 40%;
    text-align: center;
  }

  .hero-stats b {
    font-size: 24px;
  }

  .hero-stats span {
    font-size: 11px;
  }

  /* --- 2b. AREAS COVERED - horizontal scroll strip on mobile --- */
  .areas,
  section.areas {
    padding: 36px 0 !important;
  }

  .area-tags {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    margin-top: 16px !important;
    padding-bottom: 8px !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .area-tags::-webkit-scrollbar {
    display: none;
  }

  .atag {
    flex-shrink: 0;
    padding: 8px 16px;
    font-size: 13px;
    white-space: nowrap;
  }

  /* --- 2c. HERO "Find Nearest" form — prevent select overflow --- */
  .nearby-box {
    padding: 14px 16px !important;
    border-radius: 12px !important;
  }

  .search-nearby {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .search-nearby .field {
    border-bottom: 1px solid var(--line) !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
  }

  .search-nearby .field:last-of-type {
    border-bottom: none !important;
  }

  .search-nearby select {
    max-width: 100%;
    font-size: 16px;
  }

  /* --- 3. WORKER CATEGORY CARDS .cat-grid --- */
  .cat-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
    overflow-x: unset !important;
    flex-wrap: unset !important;
    padding: 0 !important;
    margin: 20px 0 0 0 !important;
    width: 100% !important;
  }

  .cat {
    padding: 18px 12px;
  }

  .cat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }

  .cat h3 {
    font-size: 14px;
  }

  .cat p {
    font-size: 12px;
  }

  /* --- 4. MATERIAL SHOP CARDS .mat-grid --- */
  .mat-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    justify-content: flex-start !important;
    gap: 16px !important;
    margin: 24px 0 0 !important;
    padding: 0 0 12px 0 !important;
    width: 100% !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .mat-grid::-webkit-scrollbar {
    display: none;
  }

  .mat-grid>* {
    width: 220px !important;
    flex-shrink: 0 !important;
    min-width: unset !important;
    flex: none !important;
  }

  .pc-img-wrap {
    height: 120px !important;
  }

  .pc-body {
    padding: 16px 14px !important;
    gap: 12px !important;
  }

  .pc-title {
    font-size: 15px !important;
  }

  .pc-sub {
    font-size: 13px !important;
  }

  .pc-btn {
    padding: 8px 12px !important;
    font-size: 13px !important;
  }

  .mat-body {
    padding: 16px 18px;
  }

  .mat-body h3 {
    font-size: 15px;
  }

  /* --- 5. HOW IT WORKS .steps-grid --- */
  .steps-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 28px !important;
    overflow-x: unset !important;
    padding: 0 !important;
    margin: 36px 0 0 !important;
    width: 100% !important;
  }

  .step {
    padding: 28px 22px 22px;
  }

  .step-num {
    left: 20px;
    top: -16px;
    width: 38px;
    height: 38px;
    font-size: 16px;
  }

  /* --- 6. FEATURED WORKERS .pros --- */
  .pros {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    justify-content: flex-start !important;
    gap: 16px !important;
    margin: 24px 0 0 !important;
    padding: 0 0 12px 0 !important;
    width: 100% !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .pros::-webkit-scrollbar {
    display: none;
  }

  .pros>* {
    width: 280px !important;
    flex-shrink: 0 !important;
    min-width: unset !important;
    flex: none !important;
  }

  .pro {
    padding: 22px 18px;
  }

  .avatar,
  .shop-avatar {
    width: 72px;
    height: 72px;
    font-size: 22px;
  }

  .pro-actions {
    flex-direction: column;
    gap: 8px;
  }

  .pro-actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* --- 7. TRUST SECTION --- */
  .trust .wrap {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .trust-photo {
    height: 180px;
    aspect-ratio: unset;
    border-radius: 14px;
  }

  .trust-badge {
    position: relative;
    right: auto;
    bottom: auto;
    top: auto;
    margin: 12px auto 0;
    display: flex;
    max-width: 260px;
    padding: 12px 16px;
  }

  .trust-badge b {
    font-size: 20px;
  }

  /* --- 8. CTA BOX --- */
  .cta-box {
    display: grid;
    grid-template-columns: 1fr;
    padding: 32px 22px;
    gap: 24px;
    border-radius: 16px;
  }

  .cta-box h2 {
    font-size: clamp(20px, 5vw, 26px);
  }

  .cta-actions {
    flex-direction: column;
    gap: 10px;
  }

  .cta-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 14px;
  }

  /* --- 12. DIRECTORY OVERLAY --- */
  .dir-nav {
    padding: 0 14px;
    height: 60px;
  }

  .dir-nav-links,
  .dir-subtitle {
    display: none;
  }

  .dir-body {
    padding: 20px 14px 60px;
  }

  .dir-filter-inner {
    flex-direction: column;
    gap: 10px;
  }

  .dir-filter-field {
    min-width: 100%;
    width: 100%;
  }

  .dir-pros {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    overflow-x: unset !important;
  }

  .dir-pros>* {
    width: 100% !important;
  }

  /* --- 14. FIND PAGE CARDS compact on mobile --- */
  .find-hub {
    padding: 36px 0 56px !important;
    min-height: unset !important;
  }

  .find-search-box {
    margin-bottom: 28px !important;
  }

  .fs-input {
    padding: 14px 16px 14px 48px !important;
    font-size: 15px !important;
    border-radius: 12px !important;
  }

  .find-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    justify-content: flex-start !important;
    gap: 14px !important;
    padding: 4px 4px 16px 4px !important;
    margin-bottom: 8px !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .find-grid::-webkit-scrollbar {
    display: none;
  }

  .find-grid > * {
    width: 260px !important;
    flex-shrink: 0 !important;
    min-width: unset !important;
    flex: none !important;
  }

  .find-card {
    padding: 18px 16px !important;
    border-radius: 14px !important;
  }

  .fc-icon-wrap {
    width: 44px !important;
    height: 44px !important;
    border-radius: 12px !important;
    margin-bottom: 12px !important;
  }

  .fc-icon-wrap svg {
    width: 20px !important;
    height: 20px !important;
  }

  .fc-title {
    font-size: 14px !important;
    margin-bottom: 4px !important;
  }

  .fc-desc {
    font-size: 12px !important;
    padding-bottom: 12px !important;
  }

  .fc-arrow {
    font-size: 12px !important;
  }

  /* --- Hide desktop auth in nav-cta on mobile --- */
  .desktop-only-flex {
    display: none !important;
  }

  /* --- Scroll indicators visible on mobile --- */
  .scroll-indicator-wrap {
    display: flex;
  }
}

/* ==========================================================
   9-11, 13. GLOBAL & SECTION MOBILE FIXES — max-width: 640px
========================================================== */
@media (max-width: 640px) {

  /* --- 9. FOOTER --- */
  footer {
    padding: 40px 0 0;
  }

  .foot {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    text-align: left;
  }

  .foot>*:first-child {
    grid-column: span 2;
  }

  .foot ul {
    justify-content: flex-start;
  }

  .footbar {
    flex-direction: column;
    text-align: center;
    gap: 8px;
    padding: 14px 0;
    margin-top: 32px;
  }

  .foot-social,
  .social-icons {
    justify-content: flex-start;
  }

  .footer-logo-img {
    height: 52px !important;
  }

  /* --- 10. GLOBAL MOBILE FIXES --- */
  html,
  body {
    overflow-x: clip;
  }

  .wrap {
    padding: 0 16px;
  }

  section {
    padding: 36px 0;
  }

  h1 {
    font-size: clamp(20px, 6vw, 26px);
  }

  h2 {
    font-size: clamp(16px, 5vw, 20px);
  }

  /* Touch target standard min 44px */
  .btn,
  .chip,
  .atag,
  .lang-btn {
    min-height: 44px;
  }

  .btn {
    font-size: 14px;
  }

  /* Prevent iOS zoom on focus (min 16px font-size) */
  .form-control,
  .search select,
  .search input,
  .rg-control,
  .rg-input,
  .rv-select,
  .rv-input {
    font-size: 16px;
  }

  /* --- 11. REGISTRATION FORMS --- */
  .rg-grid,
  .reg-grid {
    grid-template-columns: 1fr;
  }

  .rg-card,
  .reg-card {
    padding: 20px 16px;
  }

  .reg-tabs {
    flex-direction: column;
    gap: 10px;
  }

  .reg-tab {
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
  }

  .rg-location-cascade {
    flex-direction: column;
  }

  .rg-cascade-arrow {
    display: none;
  }

  .rg-cascade-step {
    min-width: 100%;
  }

  /* --- 13. REVIEW PAGE --- */
  .rv-layout {
    grid-template-columns: 1fr;
  }

  .rv-sidebar {
    grid-template-columns: 1fr;
  }

  form#reviewForm {
    padding: 18px 16px;
  }

  .rv-form-header {
    padding: 18px 16px;
  }

  .rv-type-grid {
    grid-template-columns: 1fr;
  }

  .rv-stars-wrap {
    flex-direction: column;
    gap: 8px;
  }

  .rv-star-row .star {
    font-size: 28px;
  }
}

/* ==========================================================
   14. EXTRA SMALL PHONES — max-width: 390px
========================================================== */
@media (max-width: 390px) {
  .wrap {
    padding: 0 12px;
  }

  .hero h1 {
    font-size: 22px;
  }

  .hero p {
    font-size: 13.5px;
  }

  header.site .nav {
    height: 74px;
  }

  .header-logo-img {
    height: 56px;
  }
}

.btn {
  padding: 9px 14px;
  font-size: 12.5px;
}


/* ==========================================================
   LEGAL / TEXT PAGES
   ========================================================== */
.legal-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 20px;
  padding: 40px;
  text-align: left;
  box-shadow: 0 10px 30px rgba(12, 33, 54, 0.04), 0 1px 3px rgba(12, 33, 54, 0.02);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  animation: floatUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

@keyframes floatUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

.legal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--amber), var(--teal));
  opacity: 0.8;
}

.legal-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(12, 33, 54, 0.08), 0 2px 6px rgba(12, 33, 54, 0.04);
}

.legal-card h2 {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--navy-deep);
  margin-top: 36px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card p {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.legal-card p:last-child {
  margin-bottom: 0;
}

/* ==========================================================
   PLAN CARDS (Subscription Plans)
   ========================================================== */
.plan-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 20px;
  padding: 40px 30px;
  text-align: left;
  box-shadow: 0 10px 30px rgba(12, 33, 54, 0.04), 0 1px 3px rgba(12, 33, 54, 0.02);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  position: relative;
  overflow: visible;
  /* To allow step-num to pop out */
  display: flex;
  flex-direction: column;
  animation: floatUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(12, 33, 54, 0.08), 0 2px 6px rgba(12, 33, 54, 0.04);
  border-color: rgba(242, 169, 59, 0.4);
}

.plan-card .step-num {
  position: absolute;
  top: -20px;
  left: 30px;
  width: 44px;
  height: 44px;
  background: var(--amber);
  color: var(--navy-deep);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  font-family: var(--ff-display);
  box-shadow: 0 4px 12px rgba(242, 169, 59, 0.3);
  margin: 0;
}

.plan-card h3 {
  font-family: var(--ff-display);
  color: var(--navy-deep);
  font-size: 24px;
  font-weight: 800;
  margin: 16px 0 8px;
}

.plan-card .price {
  font-size: 38px;
  font-weight: 800;
  color: var(--navy-deep);
  margin: 0 0 12px;
  line-height: 1.1;
}

.plan-card .price small {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
}

.plan-card .desc {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.plan-card .ticks {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.plan-card .ticks li {
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14.5px;
  color: var(--ink);
}

.plan-card .ticks li:last-child {
  margin-bottom: 0;
}

.plan-card .ticks li .check {
  color: #10B981;
  /* Emerald green */
  font-weight: bold;
  font-size: 16px;
  margin-top: -1px;
}

@media (max-width: 640px) {
  .legal-card {
    padding: 24px 20px;
    border-radius: 16px;
  }

  .legal-card h2 {
    font-size: 17px;
  }

  .legal-card p {
    font-size: 13.5px;
  }

  .plan-card {
    padding: 32px 20px 24px;
    border-radius: 16px;
    margin-top: 12px;
  }

  .plan-card .step-num {
    left: 20px;
    top: -16px;
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .plan-card h3 {
    font-size: 20px;
  }

  .plan-card .price {
    font-size: 32px;
  }
}

/* Accessibility & Animation constraints */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================
   RESPONSIVE REFACTOR ADDENDUM
   Everything below is NEW, added on top of the original file.
   The original already carried an unusually complete set of
   breakpoints (1080/992/900/768/680/640/480/390/360). These
   additions fill the specific gaps that were still causing real
   problems on common device widths (iPhone SE 320–375, iPhone
   12-16 390–430, small Android 360–412) without touching desktop.
========================================================== */

/* ---- 1) Universal touch targets -----------------------------------
   Previously min-height:44px on .btn/.chip/.atag/.lang-btn only
   applied inside the max-width:640px query. Buttons between
   641–992px (large phones landscape, small tablets) could still be
   too short to tap comfortably. Extend the rule up through the
   whole "mobile" range (<=992px) and also cover form/nav controls
   that are tappable but weren't included in the original list. */
@media (max-width: 992px) {

  .btn,
  .chip,
  .atag,
  .lang-btn,
  .burger,
  .faq-question,
  .reg-tab,
  .dir-back,
  .rg-account-toggle-btn,
  .nav-dd-toggle,
  .menu a {
    min-height: var(--touch-min);
  }

  /* Icon-only / compact buttons need width too, not just height */
  .burger,
  .lang-btn {
    min-width: var(--touch-min);
  }

  select,
  input,
  textarea,
  button {
    min-height: var(--touch-min);
  }

  /* Star ratings are a common mis-tap target on touch screens —
     give each star a real hit area, not just its glyph size. */
  .star-rating .star,
  .rv-star-row .star {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    min-height: 32px;
  }
}

/* ---- 2) Large phones — 480px (iPhone 14/15/16, Pixel, Galaxy S) --- */
@media (max-width: 480px) {
  .mat-grid>* {
    width: 78vw !important;
    /* was a fixed 220px which could exceed the viewport on very
       narrow phones and left an awkward sliver of the next card */
    max-width: 300px !important;
  }

  .pros>* {
    width: 82vw !important;
    max-width: 320px !important;
  }

  .hero-stats {
    gap: 14px 20px;
  }

  .hero-stats b {
    font-size: 21px;
  }

  .cta-box h2,
  .rv-hero h1 {
    word-break: break-word;
  }

  .rg-badge-row {
    gap: 8px;
  }

  .rg-badge {
    font-size: 11px;
    padding: 4px 10px;
  }
}

/* ---- 3) Small phones — 414px (iPhone 11/XR width class) ----------- */
@media (max-width: 414px) {
  .search {
    padding: 8px;
  }

  .search .btn {
    font-size: 14px;
  }

  .cat-grid {
    gap: 10px;
  }

  .trust-badge {
    flex-direction: row;
    text-align: left;
    max-width: 100%;
  }

  .rv-form-header,
  form#reviewForm {
    padding-left: 14px;
    padding-right: 14px;
  }
}

/* ---- 4) Compact phones — 375px (iPhone SE 2/3, iPhone 12 mini) ---- */
@media (max-width: 375px) {
  .hero h1 {
    font-size: 24px;
  }

  .hero p {
    font-size: 13px;
  }

  .step-num,
  .plan-card .step-num {
    width: 34px;
    height: 34px;
    font-size: 14px;
  }

  .rv-type-icon {
    width: 44px;
    height: 44px;
  }

  .cat-icon {
    width: 42px;
    height: 42px;
  }

  .avatar,
  .shop-avatar {
    width: 60px;
    height: 60px;
    font-size: 18px;
  }

  /* Two-up badge/eyebrow rows can overflow at this width — allow wrap */
  .rv-trust-row,
  .rg-badge-row {
    row-gap: 8px;
  }
}

/* ---- 5) Smallest supported width — 320px (iPhone SE 1st gen) ------ */
@media (max-width: 320px) {
  .wrap {
    padding: 0 10px;
  }

  .hero h1 {
    font-size: 21px;
  }

  .logo {
    font-size: 15px;
  }

  .header-logo-img {
    height: 48px;
  }

  .cat-grid {
    grid-template-columns: 1fr;
  }

  .rv-star-row .star {
    font-size: 24px;
  }

  .footbar {
    font-size: 11.5px;
  }
}

/* ---- 6) Overflow safety net ---------------------------------------
   Long unbroken strings (emails, long area/category names, Urdu
   text without spaces at certain widths) could previously push a
   card wider than its grid track and trigger horizontal scroll.
   `word-wrap`/`overflow-wrap` was already added to a few classes in
   the "PRODUCTION RESPONSIVENESS FIXES" block above; extend the same
   protection to the remaining text-bearing cards and form elements. */
.mat-body,
.rv-info-card,
.legal-card,
.faq-answer,
.dir-section-sub,
.foot,
.rg-account-panel-header p {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Grids that use fixed pixel min-widths can force horizontal
   overflow below that pixel value; swap to a width that can never
   exceed the viewport while keeping the original look above 480px. */
@media (max-width: 480px) {

  .mat-grid>*,
  .pros>*,
  .dir-pros>* {
    min-width: 0 !important;
  }
}

/* ---- 7) Respect iOS safe areas on notched devices ------------------ */
.floating-radar {
  bottom: calc(30px + env(safe-area-inset-bottom, 0px));
  right: calc(30px + env(safe-area-inset-right, 0px));
}

@supports (padding: max(0px)) {
  .wrap {
    padding-left: max(16px, env(safe-area-inset-left, 16px));
    padding-right: max(16px, env(safe-area-inset-right, 16px));
  }
}

/* =========================================
   SELECT2 CUSTOMIZATION
   ========================================= */
.select2-container--default .select2-selection--multiple {
  background-color: var(--paper) !important;
  border: 1.5px solid var(--line) !important;
  border-radius: 12px !important;
  min-height: 48px !important;
  padding: 4px 8px !important;
  display: flex !important;
  align-items: center !important;
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
  border-color: var(--teal) !important;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1) !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
  background-color: var(--sand) !important;
  border: 1px solid var(--line) !important;
  border-radius: 8px !important;
  color: var(--ink) !important;
  padding: 4px 10px !important;
  margin-top: 4px !important;
  display: flex !important;
  flex-direction: row-reverse !important;
  align-items: center !important;
  font-size: 13.5px !important;
  gap: 8px !important;
  font-weight: 500 !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  color: var(--ink-soft) !important;
  border: none !important;
  font-size: 16px !important;
  margin: 0 !important;
  padding: 0 !important;
  position: static !important;
  background: transparent !important;
  line-height: 1 !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
  color: var(--amber) !important;
  background: transparent !important;
}

.select2-container .select2-search--inline .select2-search__field {
  margin-top: 5px !important;
  font-family: 'Outfit', sans-serif !important;
  font-size: 14px !important;
  color: var(--ink) !important;
}

/* =========================================
   ANIMATED CONTACT BUTTONS
   ========================================= */
.dash-contact-btns {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.dash-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  color: white !important;
}

.dash-contact-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: all 0.5s ease;
}

.dash-contact-btn:hover::before {
  left: 100%;
}

.dash-contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.dash-contact-btn.call {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}

.dash-contact-btn.whatsapp {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

.dash-contact-btn svg {
  width: 18px;
  height: 18px;
}