/* =========================
   MOWFAQ Hostinger Landing
   Arabic-first (RTL)
   ========================= */

:root{
  --bg1:#1b76d1;
  --bg2:#0f57c9;
  --panel:rgba(255,255,255,.14);

  --surface-solid:#ffffff;
  --text-on-dark:#ffffff;
  --text-muted-on-dark:rgba(255,255,255,.78);

  --text:#0f172a;
  --label:#1e293b;
  --placeholder:#64748b;

  --border:#e2e8f0;
  --focus:#1d4ed8;

  --primary:#f59e0b; /* CTA */
  --primary-hover:#ea580c;

  --shadow:0 10px 30px rgba(0,0,0,.12);
  --radius:18px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Kufi Arabic", "Noto Sans Arabic", Arial, sans-serif;
  direction: rtl;
  color: var(--text);
  background: radial-gradient(1200px 700px at 15% 15%, #2fd3c8 0%, transparent 55%),
              radial-gradient(900px 600px at 85% 25%, #3aa6ff 0%, transparent 55%),
              linear-gradient(135deg, var(--bg1), var(--bg2));
  min-height:100vh;
}

/* ====== Header ====== */
.topbar{
  position:relative;
  max-width: 1140px;
  margin: 0 auto;
  padding: 18px 18px 0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
}

/* LOGO FIX (no distortion) */
.brand-logo{
  width:44px;
  height:44px;
  display:block;
  object-fit:contain;
  image-rendering:auto;
}

.lang-switch{
  display:flex;
  align-items:center;
  gap:8px;
}

.lang-pill{
  display:inline-flex;
  gap:8px;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.22);
  color: var(--text-on-dark);
  text-decoration:none;
  font-weight:600;
  font-size:12px;
  backdrop-filter: blur(8px);
}

.lang-pill a{
  color: var(--text-on-dark);
  text-decoration:none;
  opacity:.9;
}
.lang-pill a.active{opacity:1; text-decoration: underline;}
.lang-pill a:hover{opacity:1}

/* Optional: page switcher (customer/provider) */
.page-switch{
  appearance:none;
  border-radius:999px;
  padding:8px 12px;
  border:1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.14);
  color: var(--text-on-dark);
  font-weight:700;
  font-size:12px;
  outline:none;
}

/* ====== Layout ====== */
.shell{
  max-width: 1140px;
  margin: 0 auto;
  padding: 22px 18px 26px;
}

.hero{
  text-align:center;
  color: var(--text-on-dark);
  margin-top: 10px;
}

.hero h1{
  margin: 0 0 8px;
  font-size: 38px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: .2px;
}

.hero p{
  margin: 0 auto;
  max-width: 720px;
  opacity: .9;
  font-size: 14px;
  line-height: 1.8;
}

.stage-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin: 10px auto 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 700;
}

/* main two-column */
.main{
  margin-top: 22px;
  display:grid;
  grid-template-columns: 1fr 520px;
  gap: 18px;
  align-items:start;
}

/* info panel (blue) */
.info-panel{
  background: var(--panel);
  border:1px solid rgba(255,255,255,.18);
  border-radius: var(--radius);
  padding: 18px;
  color: var(--text-on-dark);
  backdrop-filter: blur(10px);
}

.info-panel h3{
  margin:0 0 10px;
  font-size: 14px;
  opacity: .95;
}
.info-panel ul{
  margin: 0;
  padding: 0 18px 0 0;
  line-height: 1.9;
  font-size: 13px;
}
.info-panel li{margin:6px 0}
.info-panel .muted{
  margin-top: 12px;
  opacity:.9;
  font-size: 12px;
  line-height: 1.8;
}
.info-panel .backlink{
  display:inline-block;
  margin-top: 12px;
  color: var(--text-on-dark);
  opacity:.9;
  text-decoration:none;
  font-weight:700;
}
.info-panel .backlink:hover{opacity:1}

/* form card (solid white) */
.form-card{
  background: var(--surface-solid);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px; /* increased padding (fix cramped feel) */
}

.form-card h2{
  margin: 0 0 16px;
  font-size: 22px; /* stronger hierarchy */
  font-weight: 800;
  color: var(--text);
  text-align:right;
}

.field{
  margin-bottom: 14px;
}

.label{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--label);
  margin-bottom: 8px;
}

.label .optional{
  font-weight: 700;
  color:#94a3b8; /* de-emphasize (اختياري) */
  font-size: 12px;
}

input, select, textarea{
  width:100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 12px 12px;
  font-size: 14px;
  outline:none;
  background: #fff; /* outlined style */
  color: var(--text);
}

textarea{min-height: 96px; resize: vertical}

input::placeholder, textarea::placeholder{
  color: var(--placeholder);
  opacity: 1;
}

input:focus, select:focus, textarea:focus{
  border-color: var(--focus);
  box-shadow: 0 0 0 4px rgba(29,78,216,.12);
}

.btn-primary{
  width:100%;
  border:0;
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--primary);
  color: #111827;
  font-weight: 900;
  cursor:pointer;
  transition: .15s ease;
  margin-top: 8px;
}
.btn-primary:hover{background: var(--primary-hover); color:#fff}

.form-hint{
  margin-top: 10px;
  font-size: 12px;
  color:#334155;
  line-height: 1.7;
}

/* ====== Footer ====== */
.footer{
  max-width:1140px;
  margin: 14px auto 0;
  padding: 0 18px 18px;
  color: rgba(255,255,255,.85);
  font-size: 12px;
  display:flex;
  justify-content:center;
  gap:8px;
}

/* ====== Responsive ====== */
@media (max-width: 980px){
  .main{
    grid-template-columns: 1fr;
  }

  /* Mobile rule: show form FIRST, info SECOND */
  .form-card{order: 1;}
  .info-panel{order: 2;}

  .hero h1{font-size: 30px;}
  .form-card{padding: 28px;}
}

@media (max-width: 520px){
  .topbar{padding: 16px 14px 0;}
  .shell{padding: 18px 14px 22px;}
  .brand-logo{width:40px;height:40px;}
}
