﻿@charset "utf-8";
.muted a {
    color: inherit;
    text-decoration: none;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 16px;
}

.program-card-box {
    background: #fff;
    border: 1px solid rgba(15,23,42,.08);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    min-height: 220px;
    box-shadow: 0 6px 18px rgba(15,23,42,.05);
}

    .program-card-box h3 {
        margin: 0 0 8px;
        font-size: 1.05rem;
        line-height: 1.5;
    }

    .program-card-box p {
        margin: 0;
        color: #475569;
        line-height: 1.7;
        flex: 1;
    }

.program-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.center-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 22px;
    flex-wrap: wrap;
}

@media (max-width: 992px) {
    .programs-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
}

@media (max-width: 640px) {
    .programs-grid {
        grid-template-columns: 1fr;
    }
}
/* خط عربي واضح + fallbacks لمنع مشاكل العرض */
:root{
  --bg:#f4f7fb;
  --card:#ffffff;
  --line:#e5e7eb;
  --text:#0f172a;
  --muted:#64748b;
  --primary:#2563eb;
  --primary-2:#0ea5e9;
  --success:#22c55e;
  --dark:#0f172a;
  --radius:18px;
  --shadow:0 12px 28px rgba(15,23,42,.08);
}
*{box-sizing:border-box}
html,body{
  margin:0;padding:0;
  font-family:"Cairo","Tahoma","Segoe UI",Arial,sans-serif;
  background:var(--bg); color:var(--text);
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
}
body{line-height:1.75}
img{max-width:100%;display:block}
a{text-decoration:none;color:inherit}
button,input,select,textarea{font:inherit}
.container{width:min(1140px,92%);margin-inline:auto}

.topbar{
  position:sticky; top:0; z-index:40;
  background:rgba(255,255,255,.92);
  border-bottom:1px solid var(--line);
  backdrop-filter:blur(8px);
}
.topbar-inner{
  display:flex; align-items:center; justify-content:space-between;
  gap:12px; min-height:70px;
}
.brand{display:flex; align-items:center; gap:10px}
.logo{
  width:40px;height:40px;border-radius:12px;display:grid;place-items:center;
  color:#fff;font-weight:800;
  background:linear-gradient(135deg,var(--primary-2),var(--primary));
  box-shadow:0 8px 18px rgba(37,99,235,.25);
}
.brand-title{display:block;font-weight:800;line-height:1.1}
.brand-sub{display:block;color:var(--muted);font-size:12px;line-height:1.1;margin-top:2px}
.nav{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.nav a{
  padding:8px 12px;border-radius:12px;border:1px solid transparent;
}
.nav a:hover{background:#f8fafc;border-color:var(--line)}
.lang-btn{
  border:1px solid var(--line); background:#fff; cursor:pointer;
  border-radius:12px; padding:9px 12px; font-weight:700;
}

.hero{
  background:linear-gradient(135deg,#0f172a,#1e293b);
  color:#fff; padding:42px 0 28px;
}
.hero h1{margin:0 0 10px;font-size:34px;line-height:1.35}
.hero-sub{margin:0;color:#d1d5db;max-width:760px}
.hero-badge{
  display:inline-flex; align-items:center; gap:8px;
  margin-bottom:12px; padding:6px 12px; border-radius:999px;
  background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.16);
  font-size:13px; font-weight:700;
}
.hero-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:16px;align-items:start}
.hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}
.hero-card,.video-card{
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  border-radius:20px; padding:14px;
  box-shadow:0 12px 30px rgba(0,0,0,.15);
}
.hero-card h3,.video-card h3{margin:0 0 10px}
.cards-list{display:grid;gap:10px}
.product-card{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  background:#fff;color:#0f172a;border-radius:14px;border:1px solid #e5e7eb;padding:12px;
}
.product-card strong{display:block}
.product-card span{display:block;color:#64748b;font-size:12px}
.product-card .arrow{font-weight:800;color:#2563eb}
.video-wrap{
  border-radius:14px; overflow:hidden; border:1px solid rgba(255,255,255,.14); background:#000;
}
.video-wrap iframe{width:100%;aspect-ratio:16/9;border:0;display:block}
.tags-row{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}
.tag{
  display:inline-flex;align-items:center;justify-content:center;
  background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.14);
  color:#e5e7eb; border-radius:999px; padding:7px 11px; font-size:12px; font-weight:700;
}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:11px 15px; border-radius:14px; border:1px solid transparent;
  cursor:pointer; font-weight:800;
}
.btn-primary{background:linear-gradient(135deg,var(--success),#16a34a);color:#fff}
.btn-secondary{background:#fff;color:#111827;border-color:#e5e7eb}
.btn-ghost{background:transparent;color:#fff;border-color:rgba(255,255,255,.22)}

.section{padding:28px 0}
.section.alt{background:#fff;border-top:1px solid #eef2f7;border-bottom:1px solid #eef2f7}
.section-title{text-align:center;margin-bottom:14px}
.section-title h2{margin:0 0 4px;font-size:28px;line-height:1.35}
.section-title p{margin:0;color:var(--muted)}
.grid{display:grid;gap:12px}
.grid-3{grid-template-columns:repeat(3,1fr)}
.feature-box{
  background:var(--card); border:1px solid var(--line); border-radius:16px;
  padding:14px; box-shadow:var(--shadow);
}
.feature-box h3{margin:0 0 6px;font-size:18px}
.feature-box p{margin:0;color:#475569}

.shots-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.shot{
  background:#fff;border:1px solid var(--line);border-radius:16px;
  overflow:hidden;box-shadow:var(--shadow)
}
.shot img{
  width:100%;aspect-ratio:16/10;object-fit:cover;background:#e2e8f0;
}
.shot span{
  display:block;padding:10px 12px;font-weight:700;font-size:14px
}

.request-box{
  background:#fff; border:1px solid var(--line); border-radius:20px;
  box-shadow:var(--shadow); padding:16px;
  display:grid; grid-template-columns:1fr 1fr; gap:14px;
}
.form-card{
  background:#f8fafc; border:1px solid #e5e7eb; border-radius:16px; padding:14px;
}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.field{display:flex;flex-direction:column;gap:6px}
.field.full{grid-column:1/-1}
.field label{font-size:13px;font-weight:700;color:#475569}
.field input,.field select,.field textarea{
  border:1px solid #dbe3ee;background:#fff;border-radius:12px;padding:11px 12px;outline:none;
}
.field input:focus,.field select:focus,.field textarea:focus{
  border-color:#93c5fd;box-shadow:0 0 0 4px rgba(59,130,246,.12);
}
.form-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}

.check-list{margin:10px 0 0;padding:0;list-style:none;display:grid;gap:8px}
.check-list li{
  background:#eff6ff;border:1px solid #dbeafe;border-radius:12px;padding:9px 11px;
  color:#1e3a8a;font-weight:600;
}
.check-list li::before{content:"✓ ";font-weight:800}
.muted{color:var(--muted);margin:0}
.mt-12{margin-top:12px}.mt-16{margin-top:16px}

/*.products-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.product-select{
  text-align:start;border:1px solid var(--line);background:#fff;cursor:pointer;
  border-radius:16px;padding:12px;box-shadow:var(--shadow);
}
.product-select strong{display:block;font-size:15px}
.product-select span{display:block;color:var(--muted);font-size:12px}
.product-select.active{border:2px solid var(--primary)}*/

.footer{
  margin-top:10px; border-top:1px solid var(--line); background:#fff;
}
.footer-inner{
  min-height:62px; display:flex; align-items:center; justify-content:space-between;
  gap:12px; color:#64748b; font-size:14px;
}
.footer-links{display:flex;gap:10px;flex-wrap:wrap}
.footer-links a:hover{color:#111827}

.sticky-wa{
  position:fixed; inset-inline-start:14px; bottom:14px; z-index:50;
  background:linear-gradient(135deg,#22c55e,#16a34a); color:#fff;
  border-radius:999px; padding:11px 14px; font-weight:800;
  box-shadow:0 12px 28px rgba(34,197,94,.35);
}

@media (max-width:1000px){
  .hero-grid{grid-template-columns:1fr}
  .grid-3{grid-template-columns:1fr 1fr}
  .shots-grid{grid-template-columns:1fr 1fr}
  .products-grid{grid-template-columns:1fr 1fr}
  .request-box{grid-template-columns:1fr}
}
@media (max-width:640px){
  .topbar-inner{min-height:auto;padding:10px 0;align-items:flex-start}
  .nav{width:100%}
  .nav a,.lang-btn{flex:1 1 auto;text-align:center}
  .hero h1{font-size:26px}
  .grid-3,.shots-grid,.products-grid{grid-template-columns:1fr}
  .form-grid{grid-template-columns:1fr}
  .hero-actions,.form-actions{flex-direction:column}
  .btn{width:100%}
  .footer-inner{flex-direction:column;justify-content:center;padding:10px 0}
}

/* ================================
   RequestTrial - Product Selector
   ================================ */

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 12px;
}

.product-select {
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid rgba(15,23,42,.10);
    background: #fff;
    border-radius: 16px;
    padding: 14px 14px 12px;
    text-align: right; /* لأن الموقع RTL */
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 104px;
    box-shadow: 0 4px 14px rgba(15,23,42,.04);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background-color .18s ease;
}

    .product-select strong {
        display: block;
        margin: 0;
        font-size: 1rem;
        line-height: 1.5;
        color: #0f172a;
        font-weight: 700;
    }

    .product-select span {
        display: block;
        margin: 0;
        color: #64748b;
        font-size: .9rem;
        line-height: 1.55;
    }

    /* Hover */
    .product-select:hover {
        transform: translateY(-2px);
        border-color: rgba(37,99,235,.35);
        box-shadow: 0 10px 22px rgba(15,23,42,.08);
        background: #fcfdff;
    }

    /* Keyboard focus */
    .product-select:focus {
        outline: none;
    }

    .product-select:focus-visible {
        outline: none;
        border-color: #2563eb;
        box-shadow: 0 0 0 4px rgba(37,99,235,.12), 0 10px 22px rgba(15,23,42,.08);
    }

    /* Active (selected) */
    .product-select.active {
        border-color: #2563eb;
        background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
        box-shadow: 0 0 0 1px rgba(37,99,235,.15) inset, 0 12px 24px rgba(37,99,235,.10);
    }

        .product-select.active strong {
            color: #1d4ed8;
        }

        .product-select.active span {
            color: #334155;
        }

        /* علامة اختيار بسيطة */
        .product-select.active::after {
            content: "✓";
            position: absolute;
            top: 10px;
            left: 12px; /* في RTL هتظهر شمال الكارت */
            width: 22px;
            height: 22px;
            border-radius: 999px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: .8rem;
            font-weight: 700;
            color: #fff;
            background: #2563eb;
            box-shadow: 0 4px 12px rgba(37,99,235,.28);
        }

/* لازم position relative عشان علامة الصح */
.product-select {
    position: relative;
}

/* لو الصفحة تتحول EN (LTR) ممكن نخلي المحاذاة تلقائيًا */
html[dir="ltr"] .product-select {
    text-align: left;
}

    html[dir="ltr"] .product-select.active::after {
        left: auto;
        right: 12px;
    }

/* مسافات مساعدة لو غير موجودة عندك */
.mt-12 {
    margin-top: 12px;
}

.mt-16 {
    margin-top: 16px;
}

/* Responsive */
@media (max-width: 1100px) {
    .products-grid {
        grid-template-columns: repeat(3, minmax(0,1fr));
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
        gap: 10px;
    }

    .product-select {
        min-height: 96px;
        padding: 12px;
        border-radius: 14px;
    }

        .product-select strong {
            font-size: .95rem;
        }

        .product-select span {
            font-size: .85rem;
        }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-select {
        min-height: auto;
    }
}
/* اسم البرنامج المختار تحت "البرنامج المختار" */
.selected-product-name {
    margin: 0;
    color: #1d4ed8; /*  #2563eb   */
    font-weight: 700;
    line-height: 1.7;
}
.feature-box .selected-product-name {
    color: #1d4ed8;
    font-weight: 700;
}
/* وميض/تمييز مؤقت لصندوق بيانات الطلب */
.request-box.flash-focus {
    animation: requestBoxPulse 1s ease;
}

@keyframes requestBoxPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37,99,235,.00);
        border-color: rgba(37,99,235,.10);
    }

    30% {
        box-shadow: 0 0 0 6px rgba(37,99,235,.10);
        border-color: rgba(37,99,235,.35);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37,99,235,.00);
        border-color: rgba(37,99,235,.10);
    }
}

/* ================================
   Screens Gallery Lightbox
   ================================ */

.shots-grid .shot {
    cursor: zoom-in;
    position: relative;
}

    .shots-grid .shot img {
        transition: transform .22s ease, box-shadow .22s ease, opacity .22s ease;
        display: block;
        width: 100%;
        height: auto;
        border-radius: 12px;
    }

    .shots-grid .shot:hover img {
        transform: translateY(-2px) scale(1.01);
        box-shadow: 0 12px 24px rgba(15,23,42,.12);
    }

/* طبقة العرض */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}

    .lightbox.open {
        display: block;
    }

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2,6,23,.78);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity .22s ease;
}

.lightbox.open .lightbox-backdrop {
    opacity: 1;
}

.lightbox-dialog {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    pointer-events: none; /* عشان الأزرار فقط تستقبل */
}

.lightbox-frame,
.lightbox-footer,
.lightbox-close,
.lightbox-nav {
    pointer-events: auto;
}

/* الإطار الكبير */
.lightbox-frame {
    width: min(1100px, 92vw);
    height: min(78vh, 760px);
    background: #0b1220;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.03) inset;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transform: translateY(14px) scale(.98);
    opacity: 0;
}

.lightbox.open .lightbox-frame {
    animation: lbFloatIn .28s ease forwards;
}

@keyframes lbFloatIn {
    0% {
        transform: translateY(16px) scale(.98);
        opacity: 0;
    }

    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.lightbox-frame img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

/* أزرار التنقل */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(15,23,42,.65);
    color: #fff;
    font-size: 30px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color .18s ease, transform .18s ease;
    backdrop-filter: blur(4px);
}

    .lightbox-nav:hover {
        background: rgba(30,41,59,.85);
    }

    .lightbox-nav.prev {
        left: max(12px, calc(50% - 620px));
    }

    .lightbox-nav.next {
        right: max(12px, calc(50% - 620px));
    }

/* زر الإغلاق */
.lightbox-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.20);
    background: rgba(15,23,42,.70);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    transition: background-color .18s ease, transform .18s ease;
}

    .lightbox-close:hover {
        background: rgba(30,41,59,.90);
        transform: scale(1.03);
    }

/* التذييل */
.lightbox-footer {
    width: min(1100px, 92vw);
    margin-top: 10px;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: rgba(15,23,42,.45);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    padding: 10px 12px;
    backdrop-filter: blur(4px);
}

.lightbox-caption {
    font-weight: 600;
    line-height: 1.5;
}

.lightbox-counter {
    color: #cbd5e1;
    font-size: .92rem;
    white-space: nowrap;
}

/* تحسين للموبايل */
@media (max-width: 768px) {
    .lightbox-dialog {
        padding: 10px;
    }

    .lightbox-frame {
        width: 96vw;
        height: 68vh;
        border-radius: 14px;
    }

    .lightbox-footer {
        width: 96vw;
        padding: 8px 10px;
        border-radius: 12px;
        font-size: .92rem;
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 26px;
    }

        .lightbox-nav.prev {
            left: 8px;
        }

        .lightbox-nav.next {
            right: 8px;
        }

    .lightbox-close {
        top: 8px;
        right: 8px;
        width: 38px;
        height: 38px;
        font-size: 24px;
    }
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}

    .lightbox.open {
        display: block;
    }

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2,6,23,.78);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity .22s ease;
}

.lightbox.open .lightbox-backdrop {
    opacity: 1;
}

.lightbox-dialog {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    pointer-events: none;
}

/* ✅ الوضع الأفضل: منتصف الصفحة */
.lightbox.centered .lightbox-dialog {
    justify-content: center;
}

.lightbox-frame,
.lightbox-footer,
.lightbox-close,
.lightbox-nav {
    pointer-events: auto;
}

.lightbox-frame {
    width: min(1100px, 92vw);
    height: min(78vh, 760px);
    background: #0b1220;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0,0,0,.45);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transform: translateY(14px) scale(.98);
    opacity: 0;
}

.lightbox.open .lightbox-frame {
    animation: lbFloatIn .28s ease forwards;
}

@keyframes lbFloatIn {
    from {
        transform: translateY(16px) scale(.98);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.lightbox-frame img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(15,23,42,.65);
    color: #fff;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(4px);
}

    .lightbox-nav.prev {
        left: max(12px, calc(50% - 620px));
    }

    .lightbox-nav.next {
        right: max(12px, calc(50% - 620px));
    }

.lightbox-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.20);
    background: rgba(15,23,42,.70);
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-footer {
    width: min(1100px, 92vw);
    margin-top: 10px;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: rgba(15,23,42,.45);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    padding: 10px 12px;
    backdrop-filter: blur(4px);
}

/* موبايل */
@media (max-width: 768px) {
    .lightbox-dialog {
        padding: 10px;
    }

    .lightbox-frame {
        width: 96vw;
        height: 68vh;
        border-radius: 14px;
    }

    .lightbox-footer {
        width: 96vw;
        font-size: .92rem;
    }

    .lightbox-nav.prev {
        left: 8px;
    }

    .lightbox-nav.next {
        right: 8px;
    }
}

/* لا تطبق ستايل textbox على أزرار ASP.NET */
.form-grid input[type="submit"],
.form-grid input[type="button"] {
    width: auto;
    padding: 0;
    border: 0;
    background: transparent;
}