/* Copied from old project: public_html/pages/css/page-2.css */
/* Only change: ready.png path points to this /assets folder. */

/* RESET */
*{
  box-sizing:border-box;
  margin:0;
  padding:0;
}

/* ===== خلفية مثل compensation: بيضاء + نقش ready.png مكرر ===== */
.page2-body{
  font-family:'Tajawal',sans-serif;
  color:#003B71;
  line-height:1.6;
  min-height:100vh;
  background:#fff;
  position:relative;
  overflow-x:hidden;
  box-sizing:border-box;
}
/* طبقة الخلفية (نقش ready.png) تملأ الصفحة تحت كل شيء - مثل compensation */
.page2-body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  background:#fff url('./ready.png') repeat;
  background-size:150px auto;
  pointer-events:none;
}

/* ===== القسم العلوي مثل compensation ===== */
.hero-header{
  color:#fff;
  position:relative;
  z-index:1;
  padding:1rem 0.75rem 1rem;
  overflow:hidden;
  min-height:160px;
}
.hero-inner{
  position:relative;
  z-index:1;
  display:flex;
  justify-content:center;
  align-items:center;
  height:100%;
  padding:10px 12px;
}
.hero-bg{
  position:absolute;
  inset:0;
  background:#1A4081;
  z-index:0;
}
.hero-dots{
  position:absolute;
  inset:0;
  background-image:radial-gradient(rgba(255,255,255,.45) 1.5px, transparent 1.5px);
  background-size:12px 12px;
  opacity:.9;
  pointer-events:none;
  z-index:0;
  mask-image:linear-gradient(to right, black 0%, rgba(0,0,0,.4) 15%, transparent 25%);
  -webkit-mask-image:linear-gradient(to right, black 0%, rgba(0,0,0,.4) 15%, transparent 25%);
  mask-size:100% 100%;
  -webkit-mask-size:100% 100%;
}
.hero-wave{
  display:block;
  width:100%;
  height:100px;
  line-height:0;
  pointer-events:none;
  z-index:2;
  position:relative;
  background:transparent;
  margin-top:-50px;
}
.page2-main{
  position:relative;
  z-index:1;
}

/* بلوك الهيئة: شعار + نص كوحدة واحدة في المنتصف فوق "اختر نوع البلاغ" */
.page2-paci-brand{
  display:flex;
  justify-content:center;
  align-items:center;
  padding:0 1rem 0.5rem;
  margin:0 auto 0;
  text-align:center;
}
.page2-paci-inner{
  display:inline-flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:0.25rem 0.5rem;
  direction:rtl;
}
.page2-paci-logo{
  width:clamp(70px, 18vw, 100px);
  height:auto;
  max-height:100px;
  object-fit:contain;
  flex-shrink:0;
}
.page2-paci-text{
  text-align:right;
}
.page2-paci-ar{
  font-size:clamp(1rem, 2.2vw + 0.5rem, 1.25rem);
  font-weight:700;
  color:#003B71;
  margin-bottom:0.2rem;
}
.page2-paci-en{
  font-size:clamp(0.8rem, 1.6vw + 0.4rem, 0.95rem);
  font-weight:600;
  color:#1A4081;
}

/* When the brand block is inside the blue header, ensure readable colors */
.hero-header .page2-paci-ar{
  color:#fff;
  text-shadow:0 1px 2px rgba(0,0,0,.35);
}
.hero-header .page2-paci-en{
  color:#e6f0ff;
  text-shadow:0 1px 2px rgba(0,0,0,.30);
}

/* ===== Main ===== */
.page2-main .row{
  align-items:stretch;
}
.page2-main .row > [class*="col-"]{
  display:flex;
}
.page2-main .row .option-card{
  width:100%;
  min-height:120px;
}
.main-header{
  font-size:24px;
  font-weight:700;
  color:#003B71;
  margin:0 0 25px 0;
}

/* البطاقات الأربع: نفس الحجم والأبعاد */
.option-card{
  background-color:#fff;
  border:2px solid #003B71;
  border-radius:100px;
  padding:20px 20px 20px 20px;
  min-height:100px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  text-align:right;
  color:inherit;
  overflow:hidden;
  transition:all 0.3s;
  box-shadow:0 2px 8px rgba(0,59,113,0.08);
  position:relative;
}

.option-card:hover{
  background-color:#e0e6ee;
  transform:translateY(-3px);
}

.option-card h2{
  padding-right:72px;
  text-align:right;
  font-size:1.125rem;
  line-height:1.35;
  color:#003B71;
  font-weight:700;
  margin:0 0 6px 0;
}

.option-card p{
  font-size:0.9375rem;
  line-height:1.4;
  color:#555;
  padding-right:72px;
  text-align:right;
  margin:0;
}

/* الأيقونات: نفس الحجم والموضع لكل البطاقات */
.option-card .icon-img{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  right:24px;
  width:56px;
  height:56px;
  object-fit:contain;
}

/* ===== Info block (UI only) ===== */
.info-card{
  background:#fff;
  border:2px solid rgba(0,59,113,0.22);
  border-radius:40px;
  padding:18px 18px;
  margin: 18px auto 0;
  box-shadow:0 2px 8px rgba(0,59,113,0.06);
  max-width: 720px;
}
.info-title{
  margin: 0 0 12px 0;
  font-size: 1.1rem;
  font-weight: 700;
  color:#003B71;
  text-align:right;
}
.info-section{
  padding: 10px 0;
  border-top: 1px solid rgba(0,59,113,0.10);
}
.info-section:first-of-type{
  border-top: 0;
  padding-top: 0;
}
.info-subtitle{
  margin: 0 0 8px 0;
  font-size: 1rem;
  font-weight: 700;
  color:#1A4081;
}
.info-list{
  margin: 0;
  padding-right: 18px;
  padding-left: 0;
  list-style: disc;
  color:#334155;
  line-height: 1.55;
}
.info-list li{
  margin: 6px 0;
}

/* Small "About" trigger */
.about-row{
  display:flex;
  justify-content:flex-end;
  margin-top: 10px;
}
.about-btn{
  appearance:none;
  border: 1px solid rgba(0,59,113,0.22);
  background: rgba(255,255,255,0.70);
  color:#1A4081;
  font-weight:700;
  font-size: 0.88rem;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.about-btn:active{
  transform: translateY(1px);
}

.safe-note{
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 18px;
  border: 1px solid rgba(17, 24, 39, 0.14);
  background: rgba(255,255,255,0.75);
  color: rgba(17, 24, 39, 0.72); /* سكني */
  font-weight: 700; /* عريض */
  font-size: 0.92rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.lock-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color: rgba(17, 24, 39, 0.72);
}
.lock-icon svg{
  display:block;
  fill: currentColor;
}

/* ===== Bottom Sheet / Modal ===== */
.sheet-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 9999;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  padding: 12px 12px max(12px, env(safe-area-inset-bottom));
}
.sheet{
  width: min(620px, 100%);
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(0,59,113,0.16);
  border-radius: 22px 22px 16px 16px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.25);
  position: relative;
  max-height: min(78vh, 620px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateY(10px);
}
.sheet-body{
  padding: 16px 14px 14px;
}
.sheet-title{
  margin: 4px 0 10px;
  font-size: 1.05rem;
  font-weight: 700;
  color:#003B71;
}
.sheet-section{
  padding: 10px 0;
  border-top: 1px solid rgba(0,59,113,0.10);
}
.sheet-section:first-of-type{
  border-top: 0;
  padding-top: 0;
}
.sheet-subtitle{
  margin: 0 0 6px 0;
  font-size: 0.98rem;
  font-weight: 700;
  color:#1A4081;
}
.sheet-text{
  margin: 0;
  color:#334155;
  line-height: 1.6;
}
.sheet-close{
  position:absolute;
  top: 10px;
  left: 10px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(0,59,113,0.18);
  background: rgba(255,255,255,0.9);
  color:#003B71;
  font-size: 22px;
  line-height: 34px;
  font-weight: 700;
  cursor:pointer;
}
.sheet-close:active{
  transform: translateY(1px);
}

@media (max-width:768px){
  .hero-wave{ height:80px; margin-top:-40px; }
  .page2-paci-brand{ padding:0.75rem 1rem 1rem; }
  .page2-paci-inner{ gap:0.75rem; }
  .page2-paci-logo{ width:85px; max-height:85px; }
  .page2-paci-ar{ font-size:1.05rem; }
  .page2-paci-en{ font-size:0.88rem; }
}
@media (max-width:576px){
  .hero-wave{ height:70px; margin-top:-35px; }
  .page2-paci-brand{ padding:0.6rem 0.75rem 0.9rem; }
  .page2-paci-inner{ flex-direction:column; gap:0.5rem; }
  .page2-paci-text{ text-align:center; }
  .page2-paci-logo{ width:75px; max-height:75px; }
  .page2-paci-ar{ font-size:0.98rem; }
  .page2-paci-en{ font-size:0.82rem; }
}
@media (max-width:425px){
  .hero-wave{ height:60px; margin-top:-30px; }
  .page2-paci-logo{ width:68px; max-height:68px; }
  .page2-paci-ar{ font-size:0.9rem; }
  .page2-paci-en{ font-size:0.75rem; }
  .option-card .icon-img{
    height:50px;
    width:50px;
  }
  .info-card{
    border-radius:32px;
    padding: 14px 14px;
  }
  .safe-note{
    border-radius: 16px;
    font-size: 0.9rem;
  }
}

/* New: 2-step flow helpers (kept minimal and scoped) */
#leadFormStep[hidden]{ display:none !important; }
#selectStep[hidden]{ display:none !important; }

