/* ==========================================================================
   EgyHosting — صفحة «تواصل معنا» 2026  (contact.tpl)
   كل الكلاسات تبدأ بـ ehk- لتجنّب أي تعارض مع bootstrap / main.css / custom.css
   وبقية ملفات الصفحات. يُحمَّل من contact.tpl وحده، فكل قاعدة هنا خاصة بهذه الصفحة.
   الاتجاه: خصائص منطقية (inline-start/end) فتعمل في RTL وLTR بلا نسختين.
   التصميم = النموذج المعتمد: preview/contact-mockup/contact-mockup.html
   ========================================================================== */

.ehk {
  --red: #d11e2b;  --red-d: #b3141f;
  --blue: #0088cc; --blue-d: #005f90; --blue-s: #e8f5fc;
  --green-d: #0b7a3b; --green-s: #e6f6ed; --wa: #25d366; --wa-d: #1da851;
  --amber: #a36100; --amber-s: #fff4de;
  --red-s: #fdeced;
  --ink: #0f2438;  --ink2: #34495e;
  --muted: #566b7f; --line: #e4ebf2; --bg: #f5f8fb;
  --r: 16px; --r-lg: 24px;
  --sh: 0 6px 24px rgba(15, 36, 56, .08);
  font-family: 'Cairo', sans-serif;
  color: var(--ink);
  line-height: 1.7;
  font-size: 16px;
}
.ehk *, .ehk *::before, .ehk *::after { box-sizing: border-box; }
.ehk a { text-decoration: none; }
.ehk bdi { unicode-bidi: isolate; }
.ehk h1, .ehk h2 { font-family: 'Cairo', sans-serif; letter-spacing: 0; color: var(--ink); }
.ehk-c { max-width: 1180px; margin: 0 auto; padding: 0 18px; }

/* نفس نمط «عن الشركة» و«العروض»: الأقسام بعرض الشاشة، ويُخفى عنوان الهيدر
   العام (الهيرو يحمل H1)، وتُصفَّر هوامش #main-body وmain-content (خطوط بيضاء
   ومسافة 60px قبل الفوتر — مقيسة في الصفحتين). */
.ehk-bleed { margin-inline: calc(50% - 50vw); }
body { overflow-x: clip; }
#main-body .header-lined { display: none; }
#header.whmcs-not-index-template { margin-bottom: 0; background-color: #050b1a; }
section#main-body { padding-top: 0; padding-bottom: 0; background-color: #0b1f33; }
#main-body .main-content { padding-top: 0; margin-bottom: 0; min-height: 0; }

/* ── أزرار ───────────────────────────────────────────────────────────── */
.ehk-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 24px; border-radius: 999px;
  font-weight: 700; font-size: 16px; line-height: 1.2;
  border: 1.5px solid transparent; cursor: pointer; font-family: inherit;
  transition: background-color .15s, border-color .15s, color .15s;
}
.ehk-btn svg { width: 20px; height: 20px; flex: none; fill: currentColor; }
.ehk .ehk-btn--wa { background: var(--wa); color: #fff; }
.ehk .ehk-btn--wa:hover, .ehk .ehk-btn--wa:focus { background: var(--wa-d); color: #fff; }
.ehk .ehk-btn--ghost { border-color: rgba(255, 255, 255, .6); color: #fff; }
.ehk .ehk-btn--ghost:hover, .ehk .ehk-btn--ghost:focus { background: rgba(255, 255, 255, .1); color: #fff; }
/* #0077b3 لا #0088cc: الأبيض على الثاني تباينه 3.9 (دون 4.5) */
.ehk .ehk-btn--blue { background: #0077b3; color: #fff; }
.ehk .ehk-btn--blue:hover, .ehk .ehk-btn--blue:focus { background: var(--blue-d); color: #fff; }
.ehk .ehk-btn--line { border-color: var(--line); color: var(--ink); background: #fff; }
.ehk .ehk-btn--line:hover, .ehk .ehk-btn--line:focus { border-color: var(--blue); color: var(--blue-d); }
.ehk-btn--block { width: 100%; min-height: 46px; font-size: 15px; }

/* ── ① الهيرو ────────────────────────────────────────────────────────── */
.ehk-hero {
  color: #fff;
  background: linear-gradient(180deg, #0b1f33 0%, #0f2438 100%);
  border-top: 1px solid rgba(255, 255, 255, .06);
}
.ehk-hero .ehk-c { padding: 44px 18px 76px; }
.ehk-crumb { font-size: 14px; color: #b9cde0; margin-bottom: 18px; }
.ehk-crumb a { color: #fff; }
.ehk-crumb span { margin-inline: 8px; opacity: .6; }
.ehk-hero h1 {
  font-size: 44px; line-height: 1.25; margin: 0 0 12px; font-weight: 900;
  color: #fff; text-wrap: balance;
}
.ehk-hero p { font-size: 18px; color: #d6e4f0; margin: 0 0 24px; max-width: 700px; }
.ehk-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.ehk-hours {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  margin: 22px 0 0; padding: 0; list-style: none;
  font-size: 14px; color: #cfe0ee;
}
.ehk-hours li { display: inline-flex; align-items: center; gap: 8px; }
.ehk-hours li::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: #35d27a; box-shadow: 0 0 0 4px rgba(53, 210, 122, .2);
}

/* ── ② بطاقات الغرض ─────────────────────────────────────────────────── */
/* القسم أبيض صريح: خلفية #main-body داكنة (بلون الهيرو)، والبطاقات تعلو الهيرو بهامش سالب */
.ehk-routes-wrap { background: #fff; padding-bottom: 8px; }
.ehk-routes {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  position: relative; top: -34px; margin-bottom: -34px;
}
.ehk-route {
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-lg);
  padding: 22px 20px; box-shadow: var(--sh);
  display: flex; flex-direction: column;
}
.ehk-route__ic {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 12px;
}
.ehk-route__ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ehk-ic--blue  { background: var(--blue-s);  color: var(--blue-d); }
.ehk-ic--green { background: var(--green-s); color: var(--green-d); }
.ehk-ic--red   { background: var(--red-s);   color: var(--red); }
.ehk-ic--amber { background: var(--amber-s); color: var(--amber); }
.ehk-route h2 { margin: 0 0 6px; font-size: 18px; line-height: 1.4; font-weight: 800; }
.ehk-route p { margin: 0 0 14px; color: var(--muted); font-size: 14px; flex: 1; }
.ehk-eta {
  align-self: flex-start; margin-bottom: 14px;
  font-size: 13px; font-weight: 700; color: var(--green-d);
  background: var(--green-s); border-radius: 8px; padding: 2px 10px;
}
.ehk-eta--mail { color: var(--ink2); background: var(--bg); }
.ehk .ehk-alt {
  display: block; text-align: center; margin-top: 10px;
  font-size: 13px; font-weight: 700; color: var(--blue-d);
}
.ehk .ehk-alt:hover { text-decoration: underline; }

/* ── ③ النموذج + المقرّ ─────────────────────────────────────────────── */
.ehk-sec { padding: 56px 0 64px; background: #fff; }
.ehk-sec--bg { background: var(--bg); }
.ehk-grid2 { display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; align-items: start; }
.ehk-card {
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-lg);
  padding: 28px; box-shadow: var(--sh);
}
.ehk-card h2 { font-size: 24px; line-height: 1.35; margin: 0 0 4px; font-weight: 800; }
.ehk-lead { color: var(--muted); margin: 0 0 20px; font-size: 14px; }

.ehk-form { display: grid; gap: 14px; }
.ehk-form label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.ehk-form input[type="text"],
.ehk-form input[type="email"],
.ehk-form input[type="tel"],
.ehk-form select,
.ehk-form textarea {
  display: block; width: 100%; height: auto;
  font: inherit; font-size: 15px; line-height: 1.5; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 14px;
  background: #fff; box-shadow: none;
}
.ehk-form input:focus, .ehk-form select:focus, .ehk-form textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 136, 204, .15);
}
/* البريد والهاتف يُكتبان LTR، فيُحاذيان لجهة بداية الصفحة كبقية الحقول */
html[dir="rtl"] .ehk-form input[type="email"],
html[dir="rtl"] .ehk-form input[type="tel"] { text-align: right; }
.ehk-form input::placeholder { color: #9aabbb; }
/* «(اختياري)» بجوار عنوان حقل التليفون (v1.52) */
.ehk-opt { font-weight: 400; color: var(--muted); font-size: 13px; }
.ehk-form textarea { min-height: 140px; resize: vertical; }
.ehk-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ehk-hint { font-size: 12.5px; color: var(--muted); margin: 4px 0 0; }
.ehk-captcha { overflow-x: auto; }
.ehk-captcha .form-group { margin-bottom: 0; }
.ehk .ehk-submit {
  width: 100%; min-height: 52px; border: 0; border-radius: 999px;
  background: var(--red); color: #fff;
  font-family: inherit; font-weight: 800; font-size: 16px;
}
.ehk .ehk-submit:hover, .ehk .ehk-submit:focus { background: var(--red-d); color: #fff; }
.ehk .alert { border-radius: 12px; margin: 0 0 16px; }

.ehk-office ul { margin: 0; padding: 0; list-style: none; }
.ehk-office li {
  display: flex; gap: 12px; padding: 12px 0;
  border-bottom: 1px dashed var(--line); font-size: 15px;
}
.ehk-office li:last-child { border-bottom: 0; }
.ehk-office li > svg {
  width: 20px; height: 20px; flex: none; margin-top: 3px;
  fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.ehk-office li b { display: block; }
.ehk-office small { display: block; color: var(--muted); font-size: 13px; }
.ehk .ehk-office a { color: var(--blue-d); font-weight: 700; }
.ehk .ehk-office a:hover { text-decoration: underline; }

.ehk-map {
  margin-top: 16px; min-height: 170px; border-radius: var(--r);
  background: linear-gradient(135deg, #e8f5fc, #f5f8fb);
  border: 1.5px solid var(--line);
  display: grid; place-items: center; align-content: center; gap: 8px;
  text-align: center; padding: 16px;
}
.ehk-map p { margin: 0; color: var(--muted); font-size: 14px; }
.ehk-map .ehk-btn { min-height: 42px; font-size: 14px; }
.ehk-map.is-loaded { padding: 0; display: block; overflow: hidden; }
.ehk-map iframe { display: block; width: 100%; height: 300px; border: 0; }

/* ── ④ أسئلة ─────────────────────────────────────────────────────────── */
.ehk-h2c { text-align: center; font-size: 30px; line-height: 1.35; margin: 0 0 28px; font-weight: 800; }
.ehk-faq { max-width: 820px; margin: 0 auto; }
.ehk-faq details {
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--r);
  margin-bottom: 10px; padding: 0 20px;
}
.ehk-faq summary {
  cursor: pointer; font-weight: 700; padding: 15px 0; list-style: none;
  display: flex; justify-content: space-between; gap: 12px;
}
.ehk-faq summary::-webkit-details-marker { display: none; }
.ehk-faq summary::after { content: '+'; color: var(--blue); font-weight: 900; font-size: 22px; line-height: 1; }
.ehk-faq details[open] summary::after { content: '\2212'; }
.ehk-faq p { margin: 0 0 15px; color: var(--ink2); }

/* ── الشاشات الأصغر ─────────────────────────────────────────────────── */
@media (max-width: 991px) {
  .ehk-routes { grid-template-columns: 1fr 1fr; }
  .ehk-grid2 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ehk-hero .ehk-c { padding: 28px 16px 60px; }
  .ehk-hero h1 { font-size: 32px; }
  .ehk-hero p { font-size: 16px; }
  .ehk-ctas .ehk-btn { flex: 1; padding: 0 12px; white-space: nowrap; font-size: 15px; }
  .ehk-c { padding: 0 16px; }
  .ehk-routes { grid-template-columns: 1fr; top: -26px; margin-bottom: -26px; }
  .ehk-sec { padding: 40px 0 48px; }
  .ehk-row2 { grid-template-columns: 1fr; }
  .ehk-card { padding: 20px; }
  .ehk-h2c { font-size: 24px; }
}

