:root{
  --color-primary:     #1e3a8a;
  --color-primary-600: #16306a;
  --color-secondary:   #f59e0b;
  --color-accent:      #10b981;
  --color-bg:          #f9fafb;
  --color-surface:     #ffffff;
  --text-primary:      #0f1724;
  --text-secondary:    #4b5563;
  --muted:             #e5e7eb;
  --danger:            #dc2626;

  --radius: 12px;
  --page-max: 1200px;
  --card-max-width: 980px;

  --gap: 18px;
  --shadow: 0 10px 30px rgba(15,23,36,0.06);

  --input-height: 48px;
  --input-padding: 14px;
  --input-icon-left: 14px;
  --input-action-space: 110px;
  --control-transition: 180ms ease;

  --brand-accent: #1e3a8a;
}

/* -----------------------------------------------------------
 Reset & base
 ----------------------------------------------------------- */
* { box-sizing: border-box; }
html,body { height:100%; margin:0; padding:0; }
body{
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color:var(--text-primary);
  background: linear-gradient(180deg, var(--color-bg) 0%, #ffffff 100%);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.4;
  padding: 32px 16px;
}

/* simple .container fallback if not provided by framework */
.container { width:100%; max-width:1200px; margin:0 auto; padding:0 12px; }

/* -----------------------------------------------------------
 Layout wrappers
 ----------------------------------------------------------- */
.page-wrap{ display:flex; align-items:center; justify-content:center; min-height: calc(100vh - 64px); padding:24px 16px; }
.signup-section{ width:100%; display:block; }
.signup-container{ width:100%; max-width: var(--page-max); margin-inline:auto; display:flex; justify-content:center; gap:var(--gap); }

/* -----------------------------------------------------------
 Card
 ----------------------------------------------------------- */
.card{
  width:100%;
  max-width: min(var(--card-max-width), 960px);
  background: var(--color-surface);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  padding: 20px;
  overflow: visible;
}

/* OTP specific override (keeps card look but tightens for OTP) */
.otp-card {
  max-width: 520px;
  padding: 20px;
  margin: 0 auto;
  text-align: center;
}

/* Steps area */
.steps-top{
  border-radius: calc(var(--radius) - 6px);
  background: linear-gradient(90deg, rgba(30,58,138,0.05), rgba(22,48,106,0.03));
  padding: 10px 12px;
  margin-bottom:14px;
}
.steps-inline{ list-style:none; display:flex; gap:12px; padding:0; margin:0; overflow:auto; }
.steps-inline li{ display:flex; gap:10px; align-items:center; min-width:180px; color:var(--text-secondary); font-size:13px; }
.steps-inline .tick{ width:28px; height:28px; display:inline-grid; place-items:center; background:#ecf0ff; color:var(--color-primary); border-radius:8px; }

/* -----------------------------------------------------------
 Header & brand
 ----------------------------------------------------------- */
.card-header{ padding:6px 4px 18px 4px; border-bottom:1px solid rgba(15,23,36,0.04); margin-bottom:16px; text-align:center; }
.card-header h2{ font-size:22px; margin:0 0 6px 0; color:var(--text-primary); line-height:1.1; }
.card-header .card-sub{ margin:0; color:var(--text-secondary); font-size:13px; }

/* Brand (centered) */
.navbar-brand{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  text-decoration:none;
  color:var(--text-primary);
  font-weight:700;
  margin: 0 auto 18px;
  width:100%;
  max-width:420px;
}
.brand-badge{
  width:40px; height:40px; border-radius:8px;
  display:inline-grid; place-items:center; font-weight:800;
  color:#fff; background: linear-gradient(180deg, var(--color-primary), var(--color-primary-600));
  box-shadow:0 6px 18px rgba(30,58,138,0.12);
  flex-shrink:0; line-height:1; font-size:14px;
}
.navbar-brand .fw-semibold{ font-weight:700; color: var(--text-primary); }
.navbar-brand .brand-accent{ color: var(--brand-accent); }

/* -----------------------------------------------------------
 Role toggle & social buttons
 ----------------------------------------------------------- */
.role-toggle{ display:flex; gap:8px; margin:14px 0; justify-content:center; align-items:center; flex-wrap:wrap; }
.role-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(15,23,36,0.06);
  background:transparent;
  padding:8px 14px;
  border-radius:10px;
  font-size:14px;
  cursor:pointer;
  transition: transform var(--control-transition), box-shadow var(--control-transition), background var(--control-transition), color var(--control-transition);
  color:var(--text-secondary);
  min-width:120px;
  text-align:center;
  user-select:none;
  -webkit-tap-highlight-color: transparent;
  transform-origin:center;
  box-sizing:border-box;
}
.role-btn:hover:not(.active){ transform: translateY(-4px); border-color: rgba(30,58,138,0.12); background: rgba(30,58,138,0.04); color: var(--text-primary); box-shadow: 0 6px 18px rgba(22,48,106,0.06); }
.role-btn:active:not(.active){ transform: translateY(-1px); }
.role-btn.active, .role-btn[aria-pressed="true"], .role-btn:focus{ background: linear-gradient(180deg,var(--color-primary),var(--color-primary-600)); color:#fff; border-color:transparent; box-shadow: 0 6px 18px rgba(30,58,138,0.12); }

/* Social buttons */
.social-row{ display:flex; gap:10px; margin:8px 0 12px; justify-content:center; flex-wrap:wrap; }
.social{ display:flex; align-items:center; gap:10px; border-radius:10px; padding:10px 12px; font-weight:600; cursor:pointer; border:1px solid rgba(15,23,36,0.04); background:#fff; transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease; flex:0 0 220px; justify-content:center; user-select:none; box-sizing:border-box; }
.social .social-icon{ width:20px; height:20px; object-fit:contain; display:block; }
.social:hover{ transform: translateY(-4px); box-shadow: 0 10px 30px rgba(2,6,23,0.08); border-color: rgba(30,58,138,0.12); background: linear-gradient(180deg, rgba(30,58,138,0.04), rgba(30,58,138,0.02)); }
.social:active{ transform: translateY(-1px); }
@media (max-width:420px){ .social{ flex:1 1 100%; max-width:100%; } }

/* -----------------------------------------------------------
 Divider
 ----------------------------------------------------------- */
.divider{ display:flex; align-items:center; gap:12px; margin:16px 0; color:var(--text-secondary); font-size:13px; }
.divider::before, .divider::after{ content:""; height:1px; background: rgba(15,23,36,0.04); flex:1; }

/* -----------------------------------------------------------
 Form: panels, two-cols etc.
 ----------------------------------------------------------- */
form#employerSignupForm, form#signupForm{ width:100%; display:block; }
.two-cols{ display:grid; grid-template-columns:1fr; gap:12px; margin-bottom:12px; }
@media (min-width:720px){ .two-cols{ grid-template-columns: repeat(2,1fr); } }

/* -----------------------------------------------------------
 INPUTS, ICON ALIGNMENT (robust)
 ----------------------------------------------------------- */
.input-wrap{ position:relative; display:block; min-height: var(--input-height); padding-bottom: 0; box-sizing: border-box; }
.input-wrap.input-has-error { padding-bottom: 22px; }

/* inputs (exclude textarea here so textarea can be taller) */
.input-wrap input[type="text"],
.input-wrap input[type="email"],
.input-wrap input[type="password"],
.input-wrap input[type="tel"],
.input-wrap input[type="search"]{
  width:100%;
  height: var(--input-height);
  padding: 0 var(--input-padding) 0 calc(var(--input-icon-left) + 36px);
  border-radius:10px;
  border:1px solid rgba(15,23,36,0.08);
  outline:none;
  transition: border var(--control-transition), box-shadow var(--control-transition), color var(--control-transition);
  font-size:15px;
  color:var(--text-primary);
  background:#fff;
  box-sizing:border-box;
  line-height: 1.15;
  display:block;
  -webkit-appearance:none;
}

/* textarea: allow multiple lines and don't force single-line input height */
.input-wrap textarea{
  width:100%;
  height:auto !important;
  min-height: calc(var(--input-height) * 3);
  padding: 10px 12px;
  border-radius:10px;
  border:1px solid rgba(15,23,36,0.08);
  outline:none;
  font-size:15px;
  line-height:1.3;
  box-sizing:border-box;
  resize: vertical;
  display:block;
  background:#fff;
}

/* placeholder size + color */
.input-wrap input::placeholder,
.input-wrap textarea::placeholder{ font-size:15px; line-height:1.15; color: rgba(75,85,99,0.45); }

/* icon container occupying vertical center area of the *input* (not whole wrapper) */
.input-wrap .input-icon{
  position: absolute;
  left: var(--input-icon-left);
  top: 0;
  bottom: auto;
  height: var(--input-height);
  display: inline-grid;
  place-items: center;
  width: 28px;
  pointer-events: none;
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1;
}

/* force the icon children to be block-level (no baseline shift) */
.input-wrap .input-icon svg,
.input-wrap .input-icon img,
.input-wrap .input-icon i{
  display:block;
  max-height:20px;
  width:auto;
  height:auto;
}

/* --- Updated: anchor show/hide button to the input top area --- */
.input-wrap .show-pass{
  position: absolute;
  right: 10px;
  top: 0;
  bottom: auto;
  height: var(--input-height);
  padding: 0 8px;
  border-radius: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  font-weight: 600;
  color: var(--color-primary-600);
  transition: color var(--control-transition);
}
.input-wrap .show-pass:hover,
.input-wrap .show-pass:focus{ background:transparent; outline:none; box-shadow:none; }
.input-wrap .show-pass[aria-pressed="true"], .input-wrap .show-pass.active{ color: var(--danger); font-weight:700; }

/* input error/success states */
.input-error{ border-color: var(--danger) !important; box-shadow: 0 6px 18px rgba(220,38,38,0.06); }
.input-success{ border-color: var(--color-accent) !important; box-shadow: 0 6px 18px rgba(16,185,129,0.06); }

/* -----------------------------------------------------------
 Phone / country dropdown (cd-panel)
 ----------------------------------------------------------- */
.phone-wrap{ display:flex; gap:8px; align-items:center; }

.country-dropdown{ display:flex; align-items:center; gap:8px; background:#fff; border-radius:10px; border:1px solid rgba(15,23,36,0.06); padding:6px 8px; min-width:120px; height:var(--input-height); position:relative; box-sizing:border-box; }
.country-dropdown .cd-toggle{ display:flex; align-items:center; gap:8px; width:100%; background:transparent; border:none; cursor:pointer; color:var(--text-primary); font-weight:600; text-align:left; padding:0; height:var(--input-height); }

/* ========================= */
/* Phone & Country Dropdown Fix */
/* ========================= */
.phone-wrap .phone-input,
#emp_phone,
#emp_officePhone {
  height: var(--input-height);
  padding: 0 var(--input-padding) 0 calc(var(--input-icon-left) + 36px);
  font-size: 15px;
  line-height: 1.15;
  box-sizing: border-box;
  border: 1px solid rgba(15,23,36,0.08);
  border-radius: 10px;
}

.phone-wrap .phone-input::placeholder,
#emp_phone::placeholder,
#emp_officePhone::placeholder {
  font-size: 15px;
  line-height: 1.15;
  color: rgba(75,85,99,0.45);
}

.country-dropdown input[type="search"],
.country-dropdown input[type="text"],
.cd-search,
.cs-search {
  height: var(--input-height);
  min-height: var(--input-height);
  font-size: 15px;
  line-height: 1.15;
  padding: 0 var(--input-padding);
  border: 1px solid rgba(15,23,36,0.08);
  border-radius: 10px;
  box-sizing: border-box;
  display:block;
}

.country-dropdown {
  min-height: var(--input-height);
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

.cd-panel{ position:absolute; top: calc(100% + 8px); left:0; width:320px; max-width:90vw; background:#fff; border-radius:10px; box-shadow:0 10px 30px rgba(2,6,23,0.12); border:1px solid rgba(15,23,36,0.06); z-index:50; padding:12px; display:none; }
.cd-panel[aria-hidden="false"]{ display:block; }

.cd-search{ width:100%; height:var(--input-height); min-height:var(--input-height); border-radius:8px; border:1px solid rgba(15,23,36,0.06); padding:0 12px; margin-bottom:8px; box-sizing:border-box; font-size:15px; line-height:1.15; background:#fff; }

.cd-list{ max-height:calc(var(--input-height) * 5); overflow:auto; padding:0; margin:0; list-style:none; box-sizing:border-box; }
.cd-list li{ min-height: var(--input-height); display:flex; align-items:center; padding: 0 10px; border-radius:6px; cursor:pointer; font-size:14px; color:var(--text-primary); }
.cd-list li:hover{ background: rgba(30,58,138,0.04); }

/* -----------------------------------------------------------
 Password help & strength
 ----------------------------------------------------------- */
.pwd-help{ display:none; font-size:13px; margin:6px 0 12px; text-align:center; color: var(--danger); font-weight:600; transition: color 160ms ease, transform 160ms ease, opacity 160ms ease; }
.pwd-help.visible, .pwd-help[aria-hidden="false"]{ display:block; opacity:1; }
.pwd-help.valid{ color: var(--color-accent); font-weight:700; }
.pwd-strength{ display:flex; align-items:center; gap:12px; margin-bottom:12px; justify-content:center; }
.strength-bar{ display:flex; gap:6px; align-items:center; transition: all 220ms ease; }
.strength-bar .level{ width:60px; height:8px; background: rgba(15,23,36,0.06); border-radius:4px; transition: background 220ms ease, transform 180ms ease; transform-origin:center; }
.strength-bar .level.active{ background: linear-gradient(90deg,var(--color-primary),var(--color-primary-600)); transform: scaleY(1.06); }
.strength-bar.strength-1 .level:nth-child(-n+1), .strength-bar[data-strength="1"] .level:nth-child(-n+1){ background: linear-gradient(90deg, var(--danger), #ff8a8a); transform: scaleY(1.06); }
.strength-bar.strength-2 .level:nth-child(-n+2), .strength-bar[data-strength="2"] .level:nth-child(-n+2){ background: linear-gradient(90deg, var(--color-secondary), #f97316); transform: scaleY(1.06); }
.strength-bar.strength-3 .level:nth-child(-n+3), .strength-bar[data-strength="3"] .level:nth-child(-n+3){ background: linear-gradient(90deg, var(--color-accent), #059669); transform: scaleY(1.06); }

/* -----------------------------------------------------------
 ToS, actions, small text
 ----------------------------------------------------------- */
.tos{ display:flex; gap:8px; align-items:center; margin:6px 0 12px; font-size:14px; color:var(--text-secondary); justify-content:center; text-align:center; cursor:pointer; }
.tos input{ transform: translateY(2px); cursor:pointer; }
.form-actions{ margin-top:6px; display:flex; gap:12px; align-items:center; justify-content:center; }
.btn{ background: var(--muted); padding:10px 16px; border-radius:10px; border:none; cursor:pointer; font-weight:700; transition: transform var(--control-transition), box-shadow var(--control-transition), opacity var(--control-transition); }
.btn-primary{ background: linear-gradient(180deg,var(--color-primary),var(--color-primary-600)); color:#fff; box-shadow:0 8px 18px rgba(30,58,138,0.12); }
.btn-primary:hover:not([disabled]){ transform: translateY(-3px); box-shadow: 0 14px 36px rgba(22,48,106,0.12); }
.btn[disabled]{ opacity:0.6; cursor:not-allowed; transform:none; box-shadow:none; }

/* tiny text */
.tiny{ font-size:13px; color:var(--text-secondary); margin-top:10px; text-align:center; }
.tiny a{ text-decoration:none; color: var(--color-primary); font-weight:600; }

/* anchor links */
a{ text-decoration:none; color:var(--color-primary); }
a:hover{ color:var(--color-primary-600); }
a:focus{ outline: 3px solid rgba(30,58,138,0.08); border-radius:6px; }

/* -----------------------------------------------------------
 Modal — fixed top layer, clean backdrop
 ----------------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(2, 6, 23, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 10080;
  pointer-events: auto;
  padding: 18px;
}

.modal[aria-hidden="false"] {
  display: flex;
}

.modal-panel {
  width: min(100%, 520px);
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  background: #fff;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 24px 70px rgba(2, 6, 23, 0.28);
  position: relative;
  isolation: isolate;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--text-secondary);
  display: inline-grid;
  place-items: center;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.modal-close:hover,
.modal-close:focus {
  background: rgba(30, 58, 138, 0.1);
  color: var(--color-primary);
  transform: translateY(-1px);
  outline: none;
}
/* focus states */
input:focus, .cd-toggle:focus, .role-btn:focus, button:focus{ box-shadow: 0 4px 18px rgba(30,58,138,0.08); }

/* -----------------------------------------------------------
 Mobile-first scaffolding / responsiveness
 ----------------------------------------------------------- */
.signup-container{ width:100%; max-width:420px; margin:0 auto; padding:16px; }
.card{ padding:20px; border-radius:12px; background:var(--color-surface); box-shadow:0 2px 8px rgba(0,0,0,0.06); }
.steps-inline{ display:flex; flex-wrap:wrap; gap:8px; }
.steps-inline li{ flex:1 1 100%; min-width:140px; text-align:center; }

@media (min-width:480px){ .signup-container{ padding:20px; } .card{ padding:24px; border-radius:14px; } .steps-inline li{ flex:1 1 45%; min-width:160px; } }
@media (min-width:720px){ .signup-container{ max-width:600px; padding:24px; } .card{ padding:28px; border-radius:16px; } .steps-inline li{ flex:1 1 30%; min-width:180px; } }
@media (min-width:980px){ .signup-container{ max-width:760px; padding:28px; } .card{ padding:32px; border-radius:18px; } .steps-inline li{ flex:1 1 25%; min-width:200px; } }

/* -----------------------------------------------------------
 Custom select UI (re-usable)
 ----------------------------------------------------------- */
.custom-select{ display:inline-flex; align-items:center; gap:8px; background:#fff; border-radius:10px; border:1px solid rgba(15,23,36,0.06); padding:6px 8px; min-width:160px; height:var(--input-height); position:relative; box-sizing:border-box; }
.custom-select .cs-toggle{ display:flex; align-items:center; gap:8px; width:100%; background:transparent; border:none; cursor:pointer; color:var(--text-primary); font-weight:600; text-align:left; padding:0; }
.custom-select .cs-value{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.custom-select .cs-caret{ margin-left:auto; color:var(--text-secondary); }

.cs-panel{ position:absolute; top:calc(100% + 8px); left:0; width:320px; max-width:90vw; background:#fff; border-radius:10px; box-shadow:0 10px 30px rgba(2,6,23,0.12); border:1px solid rgba(15,23,36,0.06); z-index:60; padding:12px; display:none; }
.cs-panel[aria-hidden="false"]{ display:block; }
.cs-search{ width:100%; height:var(--input-height); min-height:var(--input-height); border-radius:8px; border:1px solid rgba(15,23,36,0.06); padding:0 12px; margin-bottom:8px; box-sizing:border-box; font-size:15px; line-height:1.15; background:#fff; }
.cs-list{ max-height:calc(var(--input-height) * 5); overflow:auto; padding:0; margin:0; list-style:none; }
.cs-item{ min-height:var(--input-height); padding:0 10px; border-radius:6px; cursor:pointer; font-size:14px; color:var(--text-primary); display:flex; justify-content:space-between; align-items:center; }
.cs-item:hover{ background: rgba(30,58,138,0.04); }
.cs-item.selected{ background: linear-gradient(90deg, rgba(30,58,138,0.06), rgba(30,58,138,0.03)); font-weight:700; }

select.js-select{ position:absolute !important; left:-9999px !important; width:1px !important; height:1px !important; overflow:hidden !important; }

/* -----------------------------------------------------------
 Top form alert (empFormAlert)
 ----------------------------------------------------------- */
.form-alert{
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  top: 16px;
  background: linear-gradient(90deg, #fff7f7, #fffaf9);
  border: 1px solid rgba(220,38,38,0.12);
  color: var(--danger);
  padding: 12px 16px;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(2,6,23,0.08);
  z-index: 140;
  display:inline-block;
  min-width: 280px;
  text-align:center;
  font-weight:700;
  opacity: 1;
}
.form-alert[aria-hidden="true"]{ display:none; }

/* -----------------------------------------------------------
 Footer - full viewport width and primary background
 ----------------------------------------------------------- */
.footer-bottom {
  width: 100%;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, var(--color-primary), var(--color-primary-600));
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
  border-radius: 0;
  position: relative;
  z-index: 100;
  padding: 32px 0;
  margin: 0;
  overflow: hidden;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.footer-left small { color: #ffffff; font-size: 13px; font-weight: 600; letter-spacing: 0.2px; line-height: 1.4; }
.footer-right { display: flex; align-items: center; gap: 16px; justify-content: flex-end; }
.footer-right a { color: rgba(255,255,255,0.95); text-decoration: none; font-weight: 600; font-size: 13px; }
.footer-right a:hover, .footer-right a:focus { text-decoration: none; opacity: 0.95; }
.footer-sep { color: rgba(255, 255, 255, 0.3); }
@media (max-width: 720px) {
  .footer-inner { flex-direction: column; gap: 10px; text-align: center; padding: 0 20px; }
  .footer-right { justify-content: center; }
}

/* -----------------------------------------------------------
 Accessibility helpers / errors
 ----------------------------------------------------------- */
.error-text{
  display:block;
  min-height:20px;
  margin-top:8px;
  font-size:13px;
  color: var(--danger);
  line-height:1.2;
  word-break:break-word;
  white-space:normal;
}

/* preserve input error border and offset */
.input-error{ border-color: var(--danger) !important; box-shadow: 0 6px 18px rgba(220,38,38,0.06); outline-offset:2px; }

/* === TEXTAREA: surgical fix (only for wrappers with .has-textarea) === */
.input-wrap.has-textarea {
  min-height: calc(var(--input-height) * 3);
  height: auto;
  display: block;
}
.input-wrap.has-textarea textarea {
  display: block;
  width: 100%;
  height: auto !important;
  min-height: calc(var(--input-height) * 3);
  max-height: 60vh;
  padding: 10px 12px;
  box-sizing: border-box;
  line-height: 1.3;
  resize: vertical;
  overflow: auto;
  border-radius: 10px;
  border: 1px solid rgba(15,23,36,0.08);
  background: #fff;
}

/* Make sure grid rows expand (so other things get pushed down) */
.two-cols { grid-auto-rows: auto; align-items: start; }

/* Ensure page container isn't clipping expanded content */
.card, .signup-container { overflow: visible; }

/* -----------------------------------------------------------
 Print
 ----------------------------------------------------------- */
@media print{
  body{ background:#fff; color:#000; }
  .card{ box-shadow:none; border:1px solid #ddd; }
  .social-row, .steps-top{ display:none; }
}

/* -----------------------------------------------------------
 Preloader, toast, success/danger form-alert
 ----------------------------------------------------------- */
/* Preloader */
.preloader{
  position:fixed;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background: linear-gradient(180deg, rgba(250,250,250,0.85), rgba(255,255,255,0.9));
  z-index:9999;
  transition: opacity 260ms ease, visibility 260ms ease;
}
.preloader[aria-hidden="true"]{ opacity:0; visibility:hidden; pointer-events:none; }
.preloader-panel{ text-align:center; padding:18px 20px; border-radius:12px; background: #fff; box-shadow:0 10px 40px rgba(2,6,23,0.12); display:inline-flex; gap:12px; align-items:center; }
.preloader .spinner{
  width:36px; height:36px; border-radius:50%;
  border:4px solid rgba(15,23,36,0.06); border-top-color: var(--color-primary); animation: spin 1s linear infinite;
}
@keyframes spin{ to { transform: rotate(360deg); } }
.preloader-text{ font-weight:700; color:var(--text-secondary); font-size:14px; }

.form-alert.success{
  background: linear-gradient(90deg, #f0fdf4, #f8fffb);
  border: 1px solid rgba(16,185,129,0.12);
  color: #059669;
}
.form-alert.error{
  background: linear-gradient(90deg, #fff7f7, #fffaf9);
  border: 1px solid rgba(220,38,38,0.12);
  color: var(--danger);
}

/* Toasts container (bottom-right) */
.toasts{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 2000;
  display:flex;
  flex-direction:column;
  gap:8px;
  align-items:flex-end;
}

/* Single toast */
.toast{
  min-width:220px;
  max-width:360px;
  display:flex;
  gap:10px;
  align-items:center;
  padding:10px 12px;
  border-radius:10px;
  box-shadow:0 8px 30px rgba(2,6,23,0.08);
  font-weight:700;
  color:#042a1b;
  background:#f0fdf4;
  border:1px solid rgba(16,185,129,0.08);
}
.toast.error{
  background: linear-gradient(90deg, #fff7f7, #fffaf9);
  color: #6b0b0b;
  border: 1px solid rgba(220,38,38,0.08);
}
.toast .toast-close{
  margin-left: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size:16px;
  opacity:0.8;
}

/* --- OTP MODAL OVERLAY — clean blocking layer --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  min-height: 100dvh;
  background: rgba(2, 6, 23, 0.66);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10090;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  padding: 18px;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* --- OTP CARD — clean centered card --- */
.otp-modal-card {
  width: min(100%, 460px);
  max-height: calc(100dvh - 36px);
  overflow-y: auto;
  background: #fff;
  padding: 28px 24px;
  border-radius: 20px;
  position: relative;
  text-align: center;
  box-shadow: 0 28px 80px rgba(2, 6, 23, 0.3);
  border: 1px solid rgba(15, 23, 42, 0.06);
  transform: translateY(14px) scale(0.98);
  transition: transform 220ms ease;
  isolation: isolate;
}

.modal-overlay.active .otp-modal-card {
  transform: translateY(0) scale(1);
}

.otp-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  line-height: 1;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.otp-close-btn:hover,
.otp-close-btn:focus {
  background: rgba(30, 58, 138, 0.1);
  color: var(--color-primary);
  transform: translateY(-1px);
  outline: none;
}

/* --- OTP PAGE HEADER (for .otp-card in page) --- */
.otp-header{
  display:flex;
  flex-direction:column;
  gap:10px;
  align-items:center;
  justify-content:center;
  margin-bottom: 10px;
  padding-bottom: 4px;
}
.otp-icon{
  width:72px;
  height:72px;
  border-radius:14px;
  display:inline-grid;
  place-items:center;
  background: linear-gradient(180deg,var(--color-primary),var(--color-primary-600));
  color:#fff;
  box-shadow: 0 10px 30px rgba(22,48,106,0.12);
  font-size:28px;
}
.otp-icon i{ font-size:28px; line-height:1; }
#otpTitle{ margin:0; font-size:20px; color:var(--text-primary); }
#otpSub{ margin:0; font-size:14px; color:var(--text-secondary); max-width: 95%; }

/* --- OTP INPUT BOXES --- */
/* group - ensures inputs are centered and remain in a single row */
.otp-input-group {
  display:flex;
  gap: 12px;
  justify-content:center;
  margin: 1.4rem 0;
  flex-wrap: nowrap;            /* enforce single horizontal row */
  overflow: hidden;             /* try to fit without scroll; adjusted widths below */
  -webkit-overflow-scrolling: touch;
  padding-inline: 6px;          /* small internal padding so calc uses full width */
}

/* Responsive sizing using calc so 6 inputs fit horizontally */
.otp-field {
  flex: 0 0 calc((100% - 60px) / 6);  /* 5 gaps * 12px = 60px subtracted */
  width: calc((100% - 60px) / 6);
  max-width: 64px;
  min-width: 36px;
  height: clamp(48px, 10vw, 64px);
  text-align: center;
  font-size: clamp(1.05rem, 3.6vw, 1.4rem);
  font-weight: 700;
  border: 2px solid rgba(15,23,36,0.12);
  border-radius: 10px;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
  -moz-appearance: textfield;
  appearance: none;
  caret-color: var(--color-primary);
  background: #fff;
  outline: none;
  box-sizing: border-box;
  padding: 4px;
}

/* remove number input spin controls if type changes to number in future */
.otp-field::-webkit-outer-spin-button,
.otp-field::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.otp-field:focus {
  border-color: var(--color-primary);
  box-shadow: 0 6px 20px rgba(30,58,138,0.08);
  transform: translateY(-2px);
  outline: none;
}

/* subtle hover for pointer devices */
.otp-field:hover { transform: translateY(-1px); }

/* accessibility: larger focus ring for keyboard users */
.otp-field:focus-visible {
  outline: 3px solid rgba(30,58,138,0.12);
  outline-offset: 3px;
}

/* error state for individual otp boxes */
.otp-field.input-error { border-color: var(--danger) !important; box-shadow: 0 6px 18px rgba(220,38,38,0.06); }

/* --- RESEND LINK & TIMER --- */
.resend-link {
  background: none;
  border: none;
  color: var(--color-primary);
  text-decoration: underline;
  cursor: pointer;
  font-weight: 600;
  padding: 0;
  font-size: 0.95rem;
}
.resend-link:disabled, .resend-link[aria-disabled="true"] {
  color: rgba(0,0,0,0.2);
  text-decoration: none;
  cursor: not-allowed;
  opacity: 0.6;
}

/* small timer styling */
#resendTimer {
  font-weight: 700;
  color: var(--danger);
  margin-left: 6px;
  font-size: 0.95rem;
}

/* --- OTP status/time expiry --- */
#codeExpiry { color: var(--text-secondary); font-size: 13px; text-align:center; margin-top:8px; }
#codeExpiry[data-expired="1"] { color: var(--danger); font-weight:700; }

/* --- RECOVERY FLOW --- */
.recovery-flow {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px dashed rgba(15,23,36,0.06);
  text-align: center;
}

/* .link-btn base */
.link-btn {
  background: none;
  border: none;
  color: var(--color-primary);
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  font-size: 0.9rem;
}
.link-btn:hover { text-decoration: none; opacity: 0.95; transform: translateY(-1px); }

/* small responsive refinement */
@media (max-width:420px){
  .toasts{ right: 10px; left: 10px; align-items:stretch; }
  .toast{ width:100%; justify-content:space-between; }

  /* stack form-actions so buttons are easy tap targets on mobile */
  .form-actions{ flex-direction: column; align-items: stretch; gap:10px; }
  .form-actions .btn{ width:100%; padding:12px 16px; font-size:16px; border-radius:12px; }

  /* reduce gap and force precise calc so all 6 inputs fit horizontally */
  .otp-input-group { gap: 8px; padding-inline: 6px; }
  .otp-field {
    flex: 0 0 calc((100% - 40px) / 6);  /* 5 gaps * 8px = 40px */
    width: calc((100% - 40px) / 6);
    min-width: 32px;
    max-width: 56px;
    height: clamp(50px, 9.5vw, 66px);
    font-size: 1.25rem;
  }

  /* if viewport is extremely small and browser can't fit them, allow a tiny horizontal scroll */
  .otp-input-group { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* slightly larger layout for tablets */
@media (min-width:720px){
  .otp-card { padding: 28px; }
  .otp-input-group { gap: 16px; }
  .otp-field { flex: 0 0 56px; width:56px; height:56px; font-size: 1.5rem; }
  .form-actions{ justify-content:center; gap:14px; }
  .form-actions .btn { min-width: 140px; }
}

/* Desktop polish */
@media (min-width:980px){
  .signup-container{ max-width:760px; padding:28px; }
  .otp-card{ max-width:480px; padding:32px; }
}

/* Make tiny links non-underlined and consistent */
.tiny a,
.link-btn,
#verifyExistingEmailBtn,
a.verify-existing-email {
  text-decoration: none !important;
  cursor: pointer;
  color: var(--color-primary);
}

/* resend link style (in otp UI) */
.resend-link,
.link-btn#resendOtp,
#resendOtp {
  text-decoration: none !important;
  cursor: pointer;
  font-weight: 600;
  background: none;
  border: none;
  padding: 0;
  color: var(--color-primary);
}

/* Visual subtle hover effect without underline */
.tiny a:hover,
.link-btn:hover,
.resend-link:hover {
  text-decoration: none !important;
  opacity: 0.9;
  transform: translateY(-1px);
}

/* Modal action spacing */
.modal-panel .modal-actions { display: flex; gap: 12px; justify-content: center; margin-top: 12px; }

/* Modal body inputs spacing */
.modal-body input[type="email"],
.modal-body input[type="text"],
.modal-body input[type="search"] {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(15,23,36,0.06);
  margin-top: 8px;
  box-sizing: border-box;
}

/* small tweak: OTP resend timer color and spacing */
#resendTimer { margin-left: 6px; font-weight: 700; color: var(--danger); }

/* make sure .link-btn doesn't show underline in certain browsers */
.link-btn, .link-btn:link, .link-btn:visited { text-decoration: none; }

/* Slightly increase modal padding for the small verify-existing input content */
.modal-panel { padding: 20px; }

/* keep the modal close button separated nicely */
.modal-close { margin-left: 6px; }

/* Ensure OTP input boxes same look (if using the signup css for otp page) */
.otp-input-group .otp-field { /* fallback */ }

/* OTP countdown and small spacing fallback */
#codeExpiry { margin-top:8px; }

/* Disabled verify button clearly visible */
.btn[disabled].btn-primary {
  background: linear-gradient(180deg, rgba(30,58,138,0.3), rgba(22,48,106,0.25));
  box-shadow: none;
  color: rgba(255,255,255,0.85);
  cursor: not-allowed;
  opacity: 0.8;
}

/* Success state used when OTP verified - optional helper */
.otp-success {
  background: linear-gradient(90deg, rgba(16,185,129,0.08), rgba(16,185,129,0.03));
  border: 1px solid rgba(16,185,129,0.12);
  color: #064e3b;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight:700;
  display:inline-block;
}

/* final accessibility reminder - focus ring for primary buttons */
.btn:focus-visible { outline: 3px solid rgba(30,58,138,0.12); outline-offset: 2px; border-radius: 10px; }
/* =========================================================
   EMPLOYER SIGNUP — FINAL DROPDOWN DOWNWARD UI FIX
   Phone code opens downward, stays compact, and scrolls internally.
   "Select your country" remains horizontal.
   Backend/API field names are not touched.
   ========================================================= */

html,
body {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  padding: 0 !important;
  background: linear-gradient(180deg, var(--color-bg) 0%, #ffffff 100%);
}

.page-wrap {
  width: 100%;
  padding: 24px 16px 32px !important;
  min-height: auto !important;
}

.navbar-brand {
  width: fit-content;
  margin: 24px auto 0;
}

.signup-section,
.signup-form-wrap {
  width: 100%;
}

.signup-container {
  width: 100% !important;
  max-width: 980px !important;
  padding: 0 !important;
}

.card {
  width: 100%;
  max-width: 960px !important;
  margin: 0 auto;
  overflow: visible !important;
}

.footer-bottom,
.site-footer,
footer[role="contentinfo"] {
  width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
}

/* Flag icons */
.flag-real {
  width: 24px;
  height: 18px;
  display: inline-block;
  flex: 0 0 24px;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.flag-fallback {
  width: 24px;
  height: 18px;
  display: inline-block;
  flex: 0 0 24px;
  border-radius: 3px;
  background: rgba(15, 23, 42, 0.08);
}

/* -------------------------
   Phone country code field
------------------------- */

.phone-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: visible !important;
}

#empCountryDropdown {
  position: relative !important;
  z-index: 5000 !important;
  display: flex !important;
  align-items: center !important;
  flex: 0 0 210px;
  min-width: 210px !important;
  height: var(--input-height) !important;
  padding: 0 10px !important;
  border: 1px solid rgba(15, 23, 36, 0.08) !important;
  border-radius: 10px !important;
  background: #fff !important;
  cursor: pointer !important;
  overflow: visible !important;
}

#empCountryDropdown .cd-toggle {
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--text-primary) !important;
  cursor: pointer !important;
}

#empCountryDropdown .cd-value {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.45rem !important;
  overflow: hidden !important;
}

#empCountryDropdown .selected-country-name {
  min-width: 0 !important;
  max-width: 92px;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

#empCountryDropdown .selected-country-code {
  flex: 0 0 auto !important;
  font-weight: 800 !important;
  color: var(--text-secondary) !important;
  white-space: nowrap !important;
}

#empCountryDropdown .cd-caret {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 22px !important;
  width: 22px !important;
  height: 22px !important;
  margin-left: auto !important;
  color: var(--color-primary) !important;
  font-size: 0.95rem !important;
  pointer-events: none !important;
}

/*
  Phone country code dropdown:
  Opens downward, but stays short and scrolls internally.
  It should not push the page down or reach the footer.
*/
#empCountryDropdown .cd-panel {
  display: none !important;
  position: absolute !important;
  top: calc(100% + 8px) !important;
  bottom: auto !important;
  left: 0 !important;
  width: 390px !important;
  max-width: calc(100vw - 32px) !important;
  max-height: 265px !important;
  z-index: 99999 !important;
  padding: 8px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  background: #fff !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12) !important;
  overflow: hidden !important;
}

#empCountryDropdown.open .cd-panel,
#empCountryDropdown .cd-panel[aria-hidden="false"] {
  display: block !important;
}

#empCountryDropdown .cd-search {
  width: 100% !important;
  height: 40px !important;
  min-height: 40px !important;
  margin: 0 0 8px !important;
  padding: 0 12px !important;
  border: 1px solid rgba(15, 23, 36, 0.08) !important;
  border-radius: 10px !important;
  font-size: 15px !important;
  background: #fff !important;
}

#empCountryDropdown .cd-list {
  display: block !important;
  max-height: 205px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  overscroll-behavior: contain !important;
  touch-action: pan-y !important;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
  -webkit-overflow-scrolling: touch !important;
}

#empCountryDropdown .cd-list .cd-item {
  display: grid !important;
  grid-template-columns: 28px minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 0.6rem !important;
  min-height: 44px !important;
  padding: 8px 10px !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  user-select: none !important;
}

#empCountryDropdown .cd-list .cd-item:hover,
#empCountryDropdown .cd-list .cd-item:focus {
  background: rgba(30, 58, 138, 0.06) !important;
  outline: none !important;
}

#empCountryDropdown .cd-list .cd-item[hidden] {
  display: none !important;
}

#empCountryDropdown .cd-list .cd-item .label {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

#empCountryDropdown .cd-list .cd-item .code {
  font-weight: 800 !important;
  color: var(--text-secondary) !important;
  white-space: nowrap !important;
}

/* -------------------------
   Custom selects
   Position, industry, company size, country, state.
------------------------- */

.custom-select {
  position: relative !important;
  width: 100% !important;
  min-width: 0 !important;
  overflow: visible !important;
}

.custom-select .cs-toggle {
  width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.custom-select .cs-value {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.45rem !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  text-align: left !important;
  writing-mode: horizontal-tb !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  line-height: 1.2 !important;
}

.custom-select .cs-caret {
  flex: 0 0 auto !important;
  margin-left: 8px !important;
}

/* Main fix for the second-step country select placeholder */
#emp_country + .custom-select-country {
  width: 100% !important;
  min-width: 0 !important;
}

#emp_country + .custom-select-country .cs-toggle {
  width: 100% !important;
  min-width: 0 !important;
}

#emp_country + .custom-select-country .cs-value {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 0.45rem !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  white-space: nowrap !important;
  writing-mode: horizontal-tb !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  transform: none !important;
  text-align: left !important;
  line-height: 1.2 !important;
}

#emp_country + .custom-select-country .cs-value,
#emp_country + .custom-select-country .cs-value .label,
#emp_country + .custom-select-country .selected-country-name {
  font-size: 15px !important;
  font-weight: 600 !important;
}

#emp_country + .custom-select-country .cs-value .label,
#emp_country + .custom-select-country .selected-country-name {
  display: inline-block !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  writing-mode: horizontal-tb !important;
}

#emp_country + .custom-select-country .fi {
  flex: 0 0 24px !important;
}

.custom-select-country .cs-item {
  display: grid !important;
  grid-template-columns: 28px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 0.6rem !important;
}

/* Custom select panels should open downward but stay compact */
.cs-panel {
  top: calc(100% + 8px) !important;
  bottom: auto !important;
  width: 100% !important;
  max-width: 100% !important;
  max-height: 265px !important;
  overflow: hidden !important;
  z-index: 99990 !important;
}

.cs-list {
  max-height: 205px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  overscroll-behavior: contain !important;
  touch-action: pan-y !important;
  -webkit-overflow-scrolling: touch !important;
}

/* -------------------------
   Mobile
------------------------- */

@media (max-width: 640px) {
  .page-wrap {
    padding: 18px 12px 28px !important;
  }

  .navbar-brand {
    margin-top: 18px !important;
  }

  .card {
    padding: 16px !important;
    border-radius: 16px !important;
  }

  .phone-wrap {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  #empCountryDropdown {
    width: 100% !important;
    min-width: 0 !important;
    flex: none !important;
  }

  #empCountryDropdown .selected-country-name {
    max-width: none !important;
  }

  /*
    Mobile:
    Still opens downward, but compact.
    It scrolls internally and does not stretch to the footer.
  */
  #empCountryDropdown .cd-panel {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    bottom: auto !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: 260px !important;
    padding: 8px !important;
    border-radius: 14px !important;
    z-index: 999999 !important;
  }

  #empCountryDropdown .cd-search {
    height: 40px !important;
    min-height: 40px !important;
    border-radius: 11px !important;
    margin-bottom: 8px !important;
  }

  #empCountryDropdown .cd-list {
    max-height: 200px !important;
    overflow-y: auto !important;
    touch-action: pan-y !important;
    -webkit-overflow-scrolling: touch !important;
  }

  #empCountryDropdown .cd-list .cd-item {
    min-height: 44px !important;
    padding: 8px 10px !important;
    border-radius: 10px !important;
  }

  #emp_phone,
  #emp_officePhone,
  .phone-wrap .phone-input {
    width: 100% !important;
    padding-left: var(--input-padding) !important;
  }

  .custom-select,
  .custom-select .cs-toggle {
    width: 100% !important;
    min-width: 0 !important;
  }

  .cs-panel {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: 260px !important;
    overflow: hidden !important;
    z-index: 99990 !important;
  }

  .cs-list {
    max-height: 200px !important;
    overflow-y: auto !important;
    touch-action: pan-y !important;
    -webkit-overflow-scrolling: touch !important;
  }

  #emp_country + .custom-select-country .cs-value {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    white-space: nowrap !important;
    writing-mode: horizontal-tb !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
  }
}

@media (max-width: 420px) {
  .page-wrap {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .card {
    padding: 14px !important;
  }

  .steps-inline li {
    text-align: left !important;
  }

  #empCountryDropdown .cd-panel {
    max-height: 245px !important;
  }

  #empCountryDropdown .cd-list {
    max-height: 185px !important;
  }

  .cs-panel {
    max-height: 245px !important;
  }

  .cs-list {
    max-height: 185px !important;
  }
}
/* =========================================================
   EMPLOYER SIGNUP — COUNTRY PLACEHOLDER CONSISTENCY FIX
   ========================================================= */

/* Selected field display: same visual weight as other custom select placeholders */
#emp_country + .custom-select-country .cs-value,
#emp_country + .custom-select-country .cs-value .label,
#emp_country + .custom-select-country .selected-country-name {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--text-primary) !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  writing-mode: horizontal-tb !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
}

/* First item inside the country dropdown list: "Select your country" */
#emp_country + .custom-select-country .cs-list .cs-item:first-child {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  grid-template-columns: none !important;
  gap: 0 !important;
  min-height: 44px !important;
  padding: 8px 12px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--text-primary) !important;
  white-space: nowrap !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
}

/* Keep selected placeholder consistent, not extra bold */
#emp_country + .custom-select-country .cs-list .cs-item:first-child.selected {
  font-weight: 600 !important;
  background: linear-gradient(90deg, rgba(30,58,138,0.06), rgba(30,58,138,0.03)) !important;
}

/* Text inside the placeholder option */
#emp_country + .custom-select-country .cs-list .cs-item:first-child .label {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  word-break: normal !important;
  text-align: left !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  color: var(--text-primary) !important;
}

/* Other country items should match the same weight */
#emp_country + .custom-select-country .cs-list .cs-item:not(:first-child) {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--text-primary) !important;
}

/* Remove flag space from only the placeholder option */
#emp_country + .custom-select-country .cs-list .cs-item:first-child .fi,
#emp_country + .custom-select-country .cs-list .cs-item:first-child .flag-real,
#emp_country + .custom-select-country .cs-list .cs-item:first-child .flag-fallback {
  display: none !important;
}
/* =========================================================
   GOOGLE AUTH BUTTON SLOT — EMPLOYER SIGNUP
   ========================================================= */

.google-auth-row {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 8px 0 12px;
}

.google-auth-slot {
  min-height: 44px;
  min-width: 280px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.google-auth-slot > div {
  max-width: 100%;
}
/* =========================================================
   OTP POPUP MOBILE FIX
   Prevents the background page from visually fighting the modal.
   ========================================================= */

@media (max-width: 480px) {
  .modal,
  .modal-overlay {
    padding: 14px;
    align-items: center;
  }

  .modal-panel,
  .otp-modal-card {
    width: 100%;
    max-height: calc(100dvh - 28px);
    border-radius: 18px;
    padding: 24px 16px 20px;
  }

  .otp-header {
    margin-top: 8px;
  }

  .otp-icon {
    width: 62px;
    height: 62px;
    font-size: 24px;
    border-radius: 14px;
  }

  #otpTitle {
    font-size: 18px;
  }

  #otpSub {
    font-size: 13px;
    line-height: 1.45;
  }
}