/* القواعد العامة */
* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --bg-950: #f8fafc;
  --bg-900: #f1f5f9;
  --bg-800: #e2e8f0;
  --bg-hero: #111827;
  --bg-hero-alt: #0b1120;
  --bg-accent: rgba(250, 204, 21, 0.18);
  --bg-accent-strong: #facc15;
  --bg-border: rgba(15, 23, 42, 0.08);
  --text-main: #1f2937;
  --text-muted: #424e60;
  --text-soft: #334155;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.12);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --transition: 0.25s ease;
  --font-base: "Cairo", system-ui, -apple-system, "Segoe UI", sans-serif;
}

::selection {
  background: rgba(250, 204, 21, 0.3);
  color: #171717;
}

body {
  margin: 0;
  font-family: var(--font-base);
  background: var(--bg-950);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
}

body, h1, h2, h3, h4, p {
  direction: rtl;
  text-align: right;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
}

.wrap {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.bg-frame {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.bg-primary {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #ffffff, var(--bg-900) 45%, var(--bg-800));
}

.bg-grid {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image: radial-gradient(rgba(15, 23, 42, 0.16) 1px, transparent 1px);
  background-size: 22px 22px;
}

.bg-top,
.bg-bottom {
  position: absolute;
  left: 0;
  right: 0;
  height: 260px;
}

.bg-top {
  top: 0;
  background: linear-gradient(180deg, rgba(250, 204, 21, 0.22), transparent);
}

.bg-bottom {
  bottom: 0;
  background: linear-gradient(0deg, rgba(250, 204, 21, 0.18), transparent);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: transform var(--transition), background-color var(--transition), box-shadow var(--transition);
  min-width: 350px;
  align-items: center;
  justify-content: center;
}

.btn i {
  font-size: 16px;
}

.btn-primary {
  background: var(--bg-accent-strong);
  color: #111827;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
  font-weight: bold;
}

.btn-primary:hover {
  background: #fcd34d;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.72);
  color: var(--text-soft);
  border-color: rgba(15, 23, 42, 0.12);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.9);
}

.section-head {
  margin-bottom: 18px;
}

.section-note {
  color: var(--text-muted);
  font-size: 13px;
}

.section-title {
  font-size: 30px;
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.4px;
  text-align: center;
}

.section-subtitle {
  margin: 12px auto 0;
  font-size: 15px;
  color: var(--text-muted);
  max-width: 520px;
  text-align: center;
}

.text-center {
  text-align: center;
}

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  color: var(--text-soft);
  white-space: nowrap;
}

input,
button {
  font-family: inherit;
}

input {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.18);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: #000;
  padding: 12px 14px;
  font-size: 16px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

input::placeholder {
  color: #444;
}

input:focus {
  outline: none;
  border-color: rgba(250, 204, 21, 0.55);
  box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.25);
}

.form-result {
  display: none;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
}

.form-result.is-error {
  display: block;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.form-result.is-success {
  display: block;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.32);
  color: #86efac;
}

@media (max-width: 768px) {
  .btn {
    width: 100%;
    justify-content: center;
  }
}



form#leadForm .btn-primary {
  min-width: auto;
}
span#subform {
  cursor: pointer;
}


.form-title {
  align-items: center;
  border-right: 3px solid #fff;
  display: flex;
  font-size: 1.3rem;
  font-weight: 600;
  gap: 15px;
  justify-content: flex-start;
  line-height: 1.5em;
  margin-bottom: 25px;
  padding-right: 15px;
}
.popubleadform {
  align-items: center;
  display: none;
  inset: 0;
  justify-content: center;
  position: fixed;
  z-index: 999
}

.popubleadform.active {
  display: flex
}

.headflx.popubform {
  background: #fff;
  max-width: 450px;
  padding: 20px;
  position: relative;
  z-index: 9999
}

.headflx.popubform form#popubform {
  grid-template-columns: 1fr
}

.headflx.popubform input {
  border: 1px solid #b9beca;
  border-radius: 2px
}

.headflx.popubform .form-title {
  border-right: 3px solid #292e32;
  color: #292e32
}

span.closepop {
  cursor: pointer;
  font-size: 25px;
  height: 40px;
  left: 20px;
  position: absolute;
  top: 10px;
  width: 40px
}

.popubleadformover,span.closepop {
  align-items: center;
  display: flex;
  justify-content: center
}

.popubleadformover {
  background: rgba(0,0,0,.49);
  inset: 0;
  position: fixed;
  z-index: 9
}


.cusinpput label {
  display: none;
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: 5px;
}
.headflx.popubform input {
  border: 1px solid #b9beca;
  border-radius: 2px;
}
.contact_us input {
  font-size: 16px;
}
.cusinpput input {
  direction: rtl;
}
.contact_us .submit {
  background-color: #292e32;
  border: 0;
  border-radius: 5px;
  color: #fff;
  cursor: pointer;
  font-size: 20px;
  line-height: 40px;
  max-width: 200px;
  padding: 3px 25px;
  transition: .5s;
}

.contact_us form {
  display: grid;
  gap: 15px;
  grid-template-columns: 1fr;
}


.popubleadform .container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.popubleadform .container .headflx.popubform {
    width: 450px;
}






.flx-thx {
    display: flex
;
cursor: pointer;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: radial-gradient(circle, #3d464e 0%, #000000 140%);
    font-size: 40px;
    font-weight: bold;
    color: #fff;
    position: fixed;
    inset: 0;
    z-index: 9999999999;
}

.flx-thx {
    flex-direction: column;
    gap: 20px;
    padding: 0 10px;
}
.flx-thx div {
    line-height: 1.5em;
}
.flx-thx span {
    line-height: 1.5em;
    font-size: 20px;
}
.flx-thx span.close {
    position: fixed;
    right: 20px;
    top: 20px;
    font-size: 100px;
    line-height: 1em;
}
.flx-thx * {
    text-align: center;
}

.flx-thx.active {
    display: flex;
}
.flx-thx h1 {
    margin-top: 0 !important;
}