/* Shared form styling for the new landing pages (Step B only). */
.lead-wrap{
  width: 100%;
  max-width: min(520px, 100%);
  margin: 0 auto;
  box-sizing: border-box;
}
.lead-card{
  width: 100%;
  max-width: min(520px, 100%);
  margin: 0 auto;
  box-sizing: border-box;
  border: 1px solid rgba(0,59,113,0.15);
  border-radius: clamp(14px, 3.5vw, 18px);
  box-shadow: 0 14px 40px rgba(0,59,113,0.10);
  background:#fff;
}
.lead-card .form-label{
  font-size: clamp(0.875rem, 2.8vw, 1rem);
}
.lead-card .form-control,
.lead-card .form-select,
.lead-card textarea{
  border-radius: 14px;
  /* ≥16px يقلّل تكبير Safari/iOS عند التركيز */
  font-size: max(16px, 0.9375rem);
}
.lead-card .form-control:not(textarea),
.lead-card .form-select{
  min-height: 44px;
}
.lead-card .form-control,
.lead-card textarea,
.lead-card .form-select{
  direction: rtl;
  text-align: right;
  max-width: 100%;
}

/* Hide the dropdown arrow for fixed type selects */
.lead-card .fixed-select{
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: none !important;
  padding-left: 12px;
}
.lead-card .fixed-select::-ms-expand{
  display:none;
}
.lead-card textarea{
  min-height: clamp(108px, 28vw, 140px);
  resize: vertical;
}
.lead-card .btn{
  min-height: 44px;
  font-size: clamp(0.95rem, 2.6vw, 1.05rem);
}
.lead-help{
  display:flex;
  justify-content:space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px 10px;
  font-size: clamp(0.8125rem, 2.5vw, 0.85rem);
  color:#6b7a90;
}
.lead-help > *{
  min-width: 0;
}
.hp{
  position:absolute !important;
  left:-9999px !important;
  width:1px !important;
  height:1px !important;
  opacity:0 !important;
}
.lead-kv{
  background: rgba(255,255,255,0.70);
  border: 1px solid rgba(0,59,113,0.14);
  border-radius: 16px;
  padding: 10px 12px;
  margin-bottom: 12px;
  color:#003B71;
  font-weight: 700;
}
.lead-kv-head{
  display:flex;
  align-items:center;
  gap: 10px;
}
.lead-kv-icon{
  width: clamp(38px, 10vw, 44px);
  height: clamp(38px, 10vw, 44px);
  object-fit: contain;
  flex: 0 0 auto;
}
.lead-kv-text{
  min-width: 0;
}
.lead-kv-title{
  font-weight: 700;
  color:#003B71;
  line-height: 1.2;
}
.lead-desc{
  margin-top: 6px;
  margin-bottom: 0;
  color:#5b6a80;
  font-weight: 400;
}

.lead-ack-wrap{
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch; /* نفس عرض عمود الحقول داخل البطاقة */
}
.lead-ack-wrap .form-check{
  /* Bootstrap RTL يضيف padding + float على المربّع فيخرج عن محاذاة الحقول */
  display: flex;
  align-items: center;
  gap: 10px;
  flex-direction: row;
  width: 100%;
  margin: 0;
  padding: 0 !important;
  padding-inline: 0 !important;
  min-height: 44px;
  box-sizing: border-box;
  float: none;
}
.lead-ack-wrap .form-check-input{
  float: none !important;
  margin: 0 !important;
  margin-top: 0;
  flex-shrink: 0;
  position: static;
  width: 1.25rem;
  height: 1.25rem;
  min-width: 22px;
  min-height: 22px;
  border-radius: 6px;
  border-color: rgba(0,59,113,0.35);
}
.lead-ack-wrap .form-check-input:checked{
  background-color: #0d9488;
  border-color: #0d9488;
}
.lead-ack-wrap .form-check-label{
  color: #003B71;
  cursor: pointer;
  line-height: 1.45;
  font-size: clamp(0.875rem, 2.6vw, 1rem);
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
}
.ack-read-feedback{
  margin-top: 6px;
  font-size: clamp(0.8125rem, 2.4vw, 0.875rem);
  color: #b42318;
  max-width: 100%;
  overflow-wrap: anywhere;
}

/* محتوى توعوي تحت النموذج: لا يخرج عن عرض الشاشة */
.lead-wrap .after-submit{
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: anywhere;
}

/* إرشاد جودة فوق النموذج (صفحات الجهات) */
.lead-quality-hint{
  max-width: min(520px, 100%);
  margin: 0 auto clamp(0.75rem, 2vw, 1rem);
  padding: clamp(12px, 3vw, 16px) clamp(14px, 3.5vw, 18px);
  border-radius: clamp(14px, 3.5vw, 18px);
  border: 1px solid rgba(13, 71, 161, 0.18);
  background: linear-gradient(165deg, #ffffff 0%, #f4f8fc 100%);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  box-sizing: border-box;
}
.lead-quality-hint__title{
  font-weight: 800;
  font-size: clamp(0.9rem, 2.6vw, 1rem);
  color: #0d47a1;
  margin-bottom: 0.5rem;
}
.lead-quality-hint__list{
  margin: 0;
  padding: 0 1.1rem 0 0;
  font-size: clamp(0.8125rem, 2.4vw, 0.9rem);
  line-height: 1.55;
  color: #475569;
}
.lead-quality-hint__list li{
  margin: 0.35rem 0;
}

@media (max-width: 360px){
  .lead-card .form-control,
  .lead-card .form-select,
  .lead-card textarea{
    border-radius: 12px;
  }
}

