/* =========================================================
   RAprime — Form pages enhancement
   - Custom <select> dropdown styling
   - Responsive improvements for contact / meeting / analysis pages
   - Shared auth layout (user-login / user-register)
   ========================================================= */

/* ============================================================
   SHARED FIELD STYLES (used by auth pages — opt-in)
   The existing form pages keep their own inline copies for now.
   ============================================================ */
.auth-field-row{
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-bottom: 16px;
}
.auth-field-row.single{ grid-template-columns: 1fr; }
@media (max-width: 560px){ .auth-field-row{ grid-template-columns: 1fr; } }

.auth-field label{
  display:block; font-size: 13px; font-weight: 600;
  color: var(--text-2); margin-bottom: 8px;
}
.auth-field label .req{ color: #ef4760; margin-left: 2px; }
.auth-field label .opt{ color: var(--text-soft); font-weight: 500; margin-left: 4px; font-size: 11.5px; }

.auth-field .field-wrap{
  position: relative;
  display:flex; align-items:center;
  background: var(--bg-soft);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  transition: border-color .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}
.auth-field .field-wrap:hover{ border-color: var(--line-2); }
.auth-field .field-wrap:focus-within{
  border-color: var(--brand-2); background:#fff;
  box-shadow: 0 0 0 4px rgba(14,55,137,.10);
}
.auth-field .field-wrap i.field-icon{
  width:44px; display:grid; place-items:center;
  color: var(--text-soft); font-size: 15px;
  pointer-events:none;
  transition: color .25s var(--ease);
}
.auth-field .field-wrap:focus-within i.field-icon{ color: var(--brand-2); }
.auth-field input, .auth-field select{
  flex:1; background: transparent; border: 0; outline: 0;
  padding: 14px 14px 14px 0; font: inherit; font-size: 14.5px;
  color: var(--text); width: 100%; font-family: inherit;
}
.auth-field input::placeholder{ color: var(--text-soft); }
.auth-field select{
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%238a93a8' d='M5 6L0 0h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 36px; cursor: pointer;
}

/* Password reveal button (lives at the END of the field-wrap) */
.pwd-toggle{
  width: 42px; align-self: stretch;
  display:grid; place-items:center;
  background: transparent; border: 0;
  color: var(--text-soft);
  font-size: 14px;
  cursor: pointer;
  transition: color .2s var(--ease);
}
.pwd-toggle:hover{ color: var(--brand-2); }

/* Phone field with country prefix */
.phone-prefix{
  align-self: stretch;
  display:inline-flex; align-items:center; gap: 6px;
  padding: 0 10px 0 14px;
  font-size: 13.5px; font-weight: 700;
  color: var(--text-2);
  border-right: 1px solid var(--line);
  background: rgba(14,55,137,.04);
}
.phone-prefix .flag-emoji{ font-size: 16px; }
html[dir="rtl"] .phone-prefix{ border-right: 0; border-left: 1px solid var(--line); padding: 0 14px 0 10px; }

/* Selectable country dial-code dropdown (replaces the fixed prefix) */
.phone-code{
  align-self: stretch;
  flex: 0 0 auto;
  max-width: 165px;
  padding: 0 8px;
  font-size: 13px; font-weight: 700;
  color: var(--text-2);
  border: 0; border-right: 1px solid var(--line);
  background: rgba(14,55,137,.04);
  cursor: pointer; outline: none;
  appearance: none; -webkit-appearance: none;
}
.phone-code:focus{ color: var(--brand-2); }
.field-wrap:has(.phone-code) .field-icon{ display:none; }
html[dir="rtl"] .phone-code{ border-right: 0; border-left: 1px solid var(--line); text-align: right; }

/* Submit button (auth) */
.auth-submit{
  width: 100%;
  padding: 14px 22px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  color: #fff; font-weight: 700; font-size: 15px;
  display: inline-flex; align-items:center; justify-content:center; gap:10px;
  cursor: pointer; position: relative; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  box-shadow: 0 10px 28px rgba(14,55,137,.30);
  border: 0;
  font-family: inherit;
}
.auth-submit::after{
  content:""; position:absolute; inset:0;
  background: linear-gradient(120deg, transparent 35%, rgba(255,255,255,.25), transparent 65%);
  transform: translateX(-120%);
  transition: transform .8s var(--ease-out);
}
.auth-submit:hover{ transform: translateY(-3px); box-shadow: 0 14px 36px rgba(14,55,137,.4); }
.auth-submit:hover::after{ transform: translateX(120%); }
.auth-submit:disabled{ opacity:.7; cursor: not-allowed; transform:none; }

/* Consent row */
.auth-consent{
  display:flex; align-items:flex-start; gap:10px;
  margin: 14px 0 22px;
  font-size: 13px; color: var(--text-mute);
  line-height: 1.5;
}
.auth-consent input[type="checkbox"]{
  width:18px; height:18px; flex-shrink:0;
  accent-color: var(--brand-2);
  margin-top:1px; cursor:pointer;
}
.auth-consent a{ color: var(--brand-2); font-weight:600; text-decoration: underline; }

/* Success / error banners */
.auth-msg{
  display: none;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 13.5px; font-weight: 600;
  margin-bottom: 16px;
  align-items: center; gap: 10px;
  border: 1.5px solid;
}
.auth-msg.show{ display: flex; }
.auth-msg.success{
  background: linear-gradient(135deg, rgba(26,188,136,.10), rgba(26,188,136,.04));
  border-color: rgba(26,188,136,.35);
  color: #0f7a55;
}
.auth-msg.success i{ color:#1abc88; font-size: 17px; }
.auth-msg.error{
  background: linear-gradient(135deg, rgba(239,71,96,.10), rgba(239,71,96,.04));
  border-color: rgba(239,71,96,.35);
  color: #c2185b;
}
.auth-msg.error i{ color:#ef4760; font-size: 17px; }

/* ============================================================
   AUTH PAGE LAYOUT (login / register)
   Split-screen: brand panel + form card
   ============================================================ */

.auth-page{
  position: relative;
  min-height: calc(100vh - 84px);
  background: var(--bg);
  display: flex;
  align-items: stretch;
  overflow: hidden;
  isolation: isolate;
}
.auth-page::before{
  content:""; position: absolute; inset: 0;
  background:
    radial-gradient(800px 460px at 5% 10%, rgba(14,55,137,.05), transparent 60%),
    radial-gradient(800px 460px at 95% 90%, rgba(26,188,136,.06), transparent 60%);
  z-index: -1;
}

.auth-grid{
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  width: 100%;
  min-height: calc(100vh - 84px);
}
@media (max-width: 980px){
  .auth-grid{ grid-template-columns: 1fr; min-height: 0; }
}

/* ---- Brand Panel (left, dark) ---- */
.auth-brand{
  position: relative;
  background: linear-gradient(135deg, #030641 0%, #0e3789 55%, #2950bd 100%);
  color: #fff;
  padding: 60px 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  isolation: isolate;
}
.auth-brand::before{
  content:""; position:absolute; inset:0;
  background:
    radial-gradient(720px 480px at 90% 10%, rgba(74,144,255,.22), transparent 60%),
    radial-gradient(620px 440px at 10% 95%, rgba(26,188,136,.18), transparent 60%);
  z-index:-1;
}
.auth-brand::after{
  content:""; position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  z-index:-1;
}
@media (max-width: 1100px){ .auth-brand{ padding: 48px 44px; } }
@media (max-width: 980px){
  .auth-brand{ padding: 50px 32px 36px; min-height: 320px; }
}
@media (max-width: 560px){ .auth-brand{ padding: 38px 22px 30px; min-height: 260px; } }

.auth-brand-head{ position: relative; z-index: 1; }
.auth-eyebrow{
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  font-size: 11.5px; font-weight: 700;
  letter-spacing: .6px; text-transform: uppercase;
  color: #cfe1ff;
  backdrop-filter: blur(10px);
  margin-bottom: 18px;
}
.auth-brand h2{
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 800; line-height: 1.15; letter-spacing: -.6px;
  margin: 0 0 14px;
}
.auth-brand h2 .grad{
  background: linear-gradient(90deg,#7ec0ff,#1abc88,#7ec0ff);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shineText 4s linear infinite;
}
@keyframes shineText{ to{ background-position: 200% 0; } }
.auth-brand p.lead{
  font-size: 15px; color: rgba(255,255,255,.75); line-height: 1.6;
  margin: 0; max-width: 480px;
}

/* Benefit list */
.auth-benefits{
  position: relative; z-index: 1;
  list-style: none; padding: 0; margin: 30px 0;
  display: flex; flex-direction: column; gap: 14px;
}
.auth-benefits li{
  display:flex; align-items:flex-start; gap: 12px;
  font-size: 14px; color: rgba(255,255,255,.92);
  line-height: 1.45;
}
.auth-benefits li .b-ic{
  width: 34px; height: 34px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 10px;
  display:grid; place-items:center;
  color: #6cf2bf;
  font-size: 13px;
  flex-shrink: 0;
}
.auth-benefits li strong{ display:block; color:#fff; font-weight: 700; }
.auth-benefits li span.b-sub{ color: rgba(255,255,255,.65); font-size: 12.5px; }
@media (max-width: 980px){ .auth-benefits{ display: none; } }

/* Testimonial / Stats card */
.auth-testimonial{
  position: relative; z-index: 1;
  margin-top: auto;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  padding: 22px;
  backdrop-filter: blur(8px);
}
.auth-testimonial .stars{ color: #f5b73c; font-size: 13px; margin-bottom: 8px; }
.auth-testimonial .quote{
  font-size: 14px; color: rgba(255,255,255,.92);
  line-height: 1.55; margin: 0 0 14px;
  font-weight: 500;
}
.auth-testimonial .who{ display: flex; align-items: center; gap: 12px; }
.auth-testimonial .av{
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--brand-3), #4f8cff);
  border-radius: 50%;
  display:grid; place-items:center;
  color: #fff; font-weight: 800; font-size: 14px;
  border: 2px solid rgba(255,255,255,.15);
}
.auth-testimonial .who .nm{ font-size: 13px; font-weight: 700; color: #fff; }
.auth-testimonial .who .ro{ font-size: 11.5px; color: rgba(255,255,255,.65); }
@media (max-width: 980px){ .auth-testimonial{ display: none; } }

/* Decorative floating cards on brand panel */
.auth-floating{
  position: absolute;
  background: rgba(255,255,255,.96);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 16px 40px rgba(0,0,0,.25);
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700;
  color: var(--text);
  z-index: 2;
  animation: floatBlock 6s ease-in-out infinite;
}
.auth-floating .af-ic{
  width: 32px; height: 32px;
  border-radius: 10px;
  display:grid; place-items:center;
  color:#fff; font-size: 13px;
}
@keyframes floatBlock{
  0%,100%{ transform: translateY(0); }
  50%{ transform: translateY(-10px); }
}
@media (max-width: 980px){ .auth-floating{ display: none; } }

/* ---- Form Panel (right, light) ---- */
.auth-form-wrap{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 48px;
  background: var(--bg);
}
@media (max-width: 1100px){ .auth-form-wrap{ padding: 48px 32px; } }
@media (max-width: 720px){ .auth-form-wrap{ padding: 36px 18px; } }
@media (max-width: 480px){ .auth-form-wrap{ padding: 28px 14px; } }

.auth-card{
  width: 100%;
  max-width: 440px;
}
.auth-card .auth-head{ margin-bottom: 26px; }
.auth-card .auth-title{
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 800;
  color: var(--text);
  margin: 0 0 8px;
  letter-spacing: -.4px;
}
.auth-card .auth-sub{
  font-size: 14.5px; color: var(--text-mute); margin: 0;
  line-height: 1.55;
}
.auth-card .auth-sub a{ color: var(--brand-2); font-weight: 700; text-decoration: none; }
.auth-card .auth-sub a:hover{ text-decoration: underline; }

/* Remember + Forgot row */
.auth-options{
  display: flex; justify-content: space-between; align-items: center;
  margin: 4px 0 20px;
  font-size: 13px;
}
.auth-options .remember{
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text-mute); cursor: pointer;
}
.auth-options .remember input{
  width: 16px; height: 16px;
  accent-color: var(--brand-2);
  cursor: pointer;
}
.auth-options a.forgot{
  color: var(--brand-2); font-weight: 700; text-decoration: none;
}
.auth-options a.forgot:hover{ text-decoration: underline; }

/* Divider with text */
.auth-divider{
  display: flex; align-items: center; gap: 14px;
  margin: 26px 0 22px;
  color: var(--text-soft);
  font-size: 12px; font-weight: 600;
  letter-spacing: .5px; text-transform: uppercase;
}
.auth-divider::before,
.auth-divider::after{
  content: ""; flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

/* Social buttons */
.auth-social{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}
.social-btn{
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 12px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  color: var(--text-2);
  font-weight: 600; font-size: 13.5px;
  cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease);
  text-decoration: none;
}
.social-btn:hover{
  transform: translateY(-2px);
  border-color: var(--line-2);
  background: var(--bg-soft);
}
.social-btn i{ font-size: 16px; }
.social-btn.google i{ color: #ea4335; }
.social-btn.apple i{ color: #000; }
.social-btn.facebook i{ color: #1877f2; }
@media (max-width: 380px){
  .auth-social{ grid-template-columns: 1fr; }
  .social-btn{ padding: 12px 16px; }
}

.auth-footer-link{
  text-align: center;
  font-size: 14px;
  color: var(--text-mute);
  margin: 4px 0 0;
}
.auth-footer-link a{ color: var(--brand-2); font-weight: 700; text-decoration: none; }
.auth-footer-link a:hover{ text-decoration: underline; }

/* Trust strip below form */
.auth-trust-strip{
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 14px 22px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 12px; color: var(--text-soft);
}
.auth-trust-strip .ts-item{
  display: inline-flex; align-items: center; gap: 6px;
}
.auth-trust-strip .ts-item i{ color: #1abc88; font-size: 11px; }

/* ============================================================
   REGISTER PAGE — account type cards + password strength
   ============================================================ */
.acct-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}
.acct-grid.acct-grid-2{
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.acct-grid.acct-grid-2 .acct-card{ padding: 20px 14px; }
.acct-grid.acct-grid-2 .ac-ic{ width: 44px; height: 44px; font-size: 17px; margin-bottom: 10px; }
.acct-grid.acct-grid-2 .ac-nm{ font-size: 14px; }
.acct-grid.acct-grid-2 .ac-sub{ font-size: 12px; margin-top: 3px; }
.acct-card{
  position: relative;
  background: var(--bg-soft);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  transition: all .25s var(--ease);
}
.acct-card:hover{ border-color: var(--brand-2); }
.acct-card input{ position:absolute; opacity:0; pointer-events:none; }
.acct-card.selected{
  background: linear-gradient(135deg, rgba(14,55,137,.08), rgba(41,80,189,.05));
  border-color: var(--brand-2);
  box-shadow: 0 6px 16px rgba(14,55,137,.12);
}
.acct-card .ac-ic{
  width: 36px; height: 36px;
  margin: 0 auto 8px;
  background: linear-gradient(135deg, var(--brand-2), var(--brand-3));
  color: #fff;
  border-radius: 10px;
  display:grid; place-items:center;
  font-size: 14px;
  transition: transform .25s var(--ease);
}
.acct-card.demo .ac-ic{ background: linear-gradient(135deg, #1abc88, #0d8a5f); }
.acct-card.islamic .ac-ic{ background: linear-gradient(135deg, #f5b73c, #d4901c); }
.acct-card.selected .ac-ic{ transform: scale(1.06); }
.acct-card .ac-nm{ font-size: 13px; font-weight: 800; color: var(--text); }
.acct-card .ac-sub{ font-size: 11px; color: var(--text-mute); margin-top: 2px; }

/* Password strength meter */
.pwd-strength{
  margin-top: 8px;
  display: flex; flex-direction: column; gap: 6px;
}
.pwd-bars{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}
.pwd-bar{
  height: 4px;
  background: var(--line);
  border-radius: 999px;
  transition: background .25s var(--ease);
}
.pwd-bar.weak{ background: #ef4760; }
.pwd-bar.medium{ background: #f5b73c; }
.pwd-bar.strong{ background: #1abc88; }
.pwd-label{
  display: flex; justify-content: space-between;
  font-size: 11.5px; font-weight: 600;
  color: var(--text-soft);
}
.pwd-label .lvl{ color: var(--text-mute); }
.pwd-label .lvl.weak{ color: #ef4760; }
.pwd-label .lvl.medium{ color: #d4901c; }
.pwd-label .lvl.strong{ color: #1abc88; }

/* ============================================================
   AUTH RESPONSIVE
   ============================================================ */
@media (max-width: 720px){
  .auth-brand h2{ font-size: clamp(24px, 7vw, 32px) !important; }
  .auth-brand p.lead{ font-size: 14px !important; }
  .auth-card .auth-title{ font-size: clamp(22px, 6.5vw, 28px) !important; }
  .auth-card .auth-sub{ font-size: 14px !important; }
  .auth-options{ font-size: 12.5px !important; }
  .auth-social{ grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 480px){
  .acct-grid{ gap: 8px; }
  .acct-card{ padding: 14px 8px; }
  .acct-card .ac-nm{ font-size: 12px; }
  .acct-card .ac-sub{ font-size: 10.5px; }
}


/* ============================================================
   CUSTOM SELECT
   The native <select> is visually hidden but kept for form
   submission and accessibility. JS adds a styled trigger +
   panel inside the same .field-wrap.
   ============================================================ */

.field-wrap.cs-wrap{ position: relative; }

/* Hide native select but keep it accessible */
.field-wrap select.cs-native{
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  opacity: 0;
  pointer-events: none;
  z-index: -1;
  /* clip out the default arrow image inherited from inline css */
  background-image: none !important;
}

/* Custom trigger button (looks like the input) */
.cs-trigger{
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: transparent;
  border: 0;
  padding: 14px 14px 14px 0;
  cursor: pointer;
  font: inherit;
  font-size: 14.5px;
  color: var(--text);
  text-align: left;
  width: 100%;
  outline: 0;
}
html[dir="rtl"] .cs-trigger{ text-align: right; }

.cs-trigger .cs-value{
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cs-trigger .cs-value.is-placeholder{
  color: var(--text-soft);
  font-weight: 500;
}
.cs-trigger .cs-chev{
  font-size: 11px;
  color: var(--text-soft);
  transition: transform .25s var(--ease), color .25s var(--ease);
  flex-shrink: 0;
}
.field-wrap.cs-wrap.is-open .cs-trigger .cs-chev{
  transform: rotate(180deg);
  color: var(--brand-2);
}
.field-wrap.cs-wrap.is-open{
  border-color: var(--brand-2);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(14,55,137,.10);
}
.field-wrap.cs-wrap.is-open i.field-icon{ color: var(--brand-2); }

/* The dropdown panel */
.cs-panel{
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow:
    0 24px 60px -16px rgba(10,20,40,.22),
    0 8px 20px rgba(10,20,40,.08),
    inset 0 1px 0 rgba(255,255,255,.6);
  z-index: 80;
  max-height: 280px;
  overflow-y: auto;
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(.98);
  transform-origin: top center;
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s linear;
}
.field-wrap.cs-wrap.is-open .cs-panel{
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
/* Open upward variant (set by JS when near viewport bottom) */
.field-wrap.cs-wrap.cs-up .cs-panel{
  top: auto;
  bottom: calc(100% + 8px);
  transform-origin: bottom center;
}

.cs-option{
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--text-2);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background .15s var(--ease), color .15s var(--ease), padding-left .15s var(--ease);
  font-weight: 500;
  position: relative;
  line-height: 1.35;
}
.cs-option:hover,
.cs-option.is-active{
  background: var(--bg-soft);
  color: var(--brand-2);
}
.cs-option.is-selected{
  background: linear-gradient(135deg, rgba(14,55,137,.10), rgba(41,80,189,.06));
  color: var(--brand-2);
  font-weight: 700;
}
.cs-option.is-selected::after{
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-left: auto;
  font-size: 11px;
  color: var(--brand-2);
}
html[dir="rtl"] .cs-option.is-selected::after{ margin-left: 0; margin-right: auto; }

.cs-option.is-placeholder{
  color: var(--text-soft);
  font-style: italic;
  font-weight: 500;
}

/* Scrollbar styling for the panel */
.cs-panel::-webkit-scrollbar{ width: 6px; }
.cs-panel::-webkit-scrollbar-track{ background: transparent; }
.cs-panel::-webkit-scrollbar-thumb{
  background: var(--line-2);
  border-radius: 3px;
}
.cs-panel::-webkit-scrollbar-thumb:hover{ background: var(--text-soft); }

/* ============================================================
   RESPONSIVE IMPROVEMENTS
   Pulls in fixes for contact-us, meeting-request, analysis-request
   ============================================================ */

/* ---- Tablet / small laptop ---- */
@media (max-width: 980px){
  .contact-hero,
  .mr-hero,
  .ar-hero{
    padding: 60px 0 50px !important;
  }
  .ch-title,
  .mr-title,
  .ar-title{
    font-size: clamp(30px, 6vw, 46px) !important;
  }
  .form-card,
  .mr-form-card,
  .ar-form-card{
    padding: 32px 28px;
  }
}

/* ---- Mobile ---- */
@media (max-width: 720px){
  /* Section vertical rhythm */
  .contact-hero,
  .mr-hero,
  .ar-hero{
    padding: 44px 0 36px !important;
  }
  .qc-section,
  .mt-section,
  .at-section{
    padding: 44px 0 20px !important;
  }
  .form-section,
  .mr-form-section,
  .ar-form-section{
    padding: 30px 0 50px !important;
  }
  .map-section{ padding: 0 0 50px !important; }
  .faq-section,
  .proc-section{ padding: 50px 0 !important; }
  .cta-strip{ padding: 40px 0 !important; }

  /* Titles & subs */
  .ch-title,
  .mr-title,
  .ar-title{
    font-size: clamp(26px, 7.5vw, 38px) !important;
    line-height: 1.15 !important;
  }
  .ch-sub,
  .mr-sub,
  .ar-sub{ font-size: 14.5px !important; }

  /* Form cards */
  .form-card,
  .mr-form-card,
  .ar-form-card{
    padding: 24px 18px !important;
    border-radius: 18px !important;
  }
  .form-title{ font-size: 22px !important; }

  /* Form rows always stack */
  .field-row{ grid-template-columns: 1fr !important; gap: 14px !important; margin-bottom: 14px !important; }

  /* Hero stat cards smaller */
  .ch-stats{ gap: 10px !important; margin-top: 26px !important; }
  .ch-stat{ padding: 14px 10px !important; border-radius: 14px !important; }
  .ch-stat .num{ font-size: 19px !important; }
  .ch-stat .lab{ font-size: 11px !important; }

  /* Quick contact cards */
  .qc-card{ padding: 22px 16px !important; }
  .qc-icon{ width: 54px !important; height: 54px !important; font-size: 20px !important; }

  /* Meeting / analysis type cards */
  .mt-card, .at-card{ padding: 22px 18px !important; border-radius: 18px !important; }

  /* Side cards */
  .info-card, .experts-card, .what-card{
    padding: 24px 20px !important;
    border-radius: 20px !important;
  }
  .response-card, .summary-card, .sample-card{
    padding: 20px !important;
    border-radius: 18px !important;
  }

  /* Form action button full width on mobile */
  .form-actions{ flex-direction: column !important; }
  .form-actions .btn-submit,
  .form-actions .btn-secondary{ width: 100% !important; flex: none !important; }

  /* Map */
  .map-card iframe{ height: 320px !important; }
  .map-overlay{
    position: static !important;
    max-width: none !important;
    border-radius: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    background: #fff !important;
    backdrop-filter: none !important;
  }

  /* CTA band */
  .cta-band{ padding: 30px 22px !important; border-radius: 22px !important; gap: 18px !important; }
  .cta-band h3{ font-size: clamp(20px, 6vw, 26px) !important; }
  .cta-band p{ font-size: 14px !important; }

  /* Meeting calendar illustration */
  .mr-illu{ height: auto !important; min-height: 0 !important; padding: 0 !important; }
  .mr-cal{ width: 100% !important; max-width: 320px !important; margin: 0 auto !important; }
  .mr-badge-card.b1, .mr-badge-card.b2{ display: none !important; }

  /* Analysis chart card */
  .ar-illu{ min-height: 0 !important; }
  .ar-chart-card{ max-width: 100% !important; }
  .ar-float-badge.b1, .ar-float-badge.b2{ display: none !important; }

  /* Process timeline tweaks */
  .proc-step{ padding: 20px 16px !important; }
  .proc-num{ width: 52px !important; height: 52px !important; font-size: 19px !important; }

  /* FAQ */
  .faq-q{ padding: 16px 18px !important; font-size: 14.5px !important; }
  .faq-q .q-icon{ width: 32px !important; height: 32px !important; font-size: 13px !important; }
  .faq-a-inner{ padding: 0 18px 18px 64px !important; font-size: 13.5px !important; }
  html[dir="rtl"] .faq-a-inner{ padding: 0 64px 18px 18px !important; }

  /* Form steps row tighten */
  .form-step{ gap: 8px !important; margin-bottom: 16px !important; }
  .form-step .lbl{ font-size: 11.5px !important; }

  /* Instrument chips and selectors */
  .inst-chip{ font-size: 12.5px !important; padding: 8px 12px !important; }
  .inst-chip .ic{ width: 16px !important; height: 16px !important; font-size: 7px !important; }

  /* Slot grid */
  .slot-grid{ grid-template-columns: repeat(2, 1fr) !important; gap: 8px !important; }
  .slot-chip{ padding: 11px 6px !important; font-size: 13px !important; }

  /* Duration / delivery chips full-width stack */
  .duration-row .dur-chip,
  .del-row .del-chip{ flex-basis: 100% !important; }

  /* Style chips - 2 cols */
  .style-grid{ grid-template-columns: repeat(2, 1fr) !important; }

  /* Hero trust pills tighter */
  .mr-trust, .ar-trust{ font-size: 11.5px !important; padding: 6px 12px !important; }

  /* Custom select panel — slightly bigger touch targets */
  .cs-option{ padding: 13px 14px !important; font-size: 14.5px !important; }
  .cs-panel{ max-height: 240px !important; }
}

/* ---- Small phone ---- */
@media (max-width: 480px){
  .container{ padding: 0 16px !important; }

  .form-card,
  .mr-form-card,
  .ar-form-card{ padding: 22px 14px !important; }

  .ch-stats{ grid-template-columns: repeat(2, 1fr) !important; }

  .qc-grid{ grid-template-columns: 1fr !important; gap: 14px !important; }

  /* Hide ticker on very small screens (it overflows the status bar) */
  .statusbar .market-ticker{ display: none !important; }

  /* Tighten status bar */
  .status-left, .status-right{ font-size: 11px !important; }
  .status-divider{ display: none !important; }

  /* Footer tweaks */
  .newsletter{ padding: 22px 16px !important; }
  .newsletter h3{ font-size: 20px !important; }
  .footer-main{ padding: 30px 16px !important; gap: 24px !important; }
  .sub-footer{ flex-direction: column !important; gap: 10px !important; text-align: center !important; }

  /* Smaller hero badges */
  .ch-eyebrow, .mr-eyebrow, .ar-eyebrow{
    font-size: 10.5px !important;
    padding: 7px 14px !important;
  }

  /* Smaller faq icon column */
  .faq-a-inner{ padding: 0 18px 18px 18px !important; }
  html[dir="rtl"] .faq-a-inner{ padding: 0 18px 18px 18px !important; }

  /* Field labels a bit smaller */
  .field label{ font-size: 12.5px !important; }

  /* Title gradient lines don't get too cramped */
  .ch-title br, .mr-title br, .ar-title br{ display: none; }
}
