@font-face {
  font-family: 'Somar';
  src: url('assets/fonts/somar.ttf');
  font-display: swap;
}
@font-face {
  font-family: 'DroidArabic';
  src: url('assets/fonts/droid-sans.ttf');
  font-display: swap;
}

:root {
  --gold1: #c6a15b;
  --gold2: #8c6a29;
  --bg: #f9f7f2;
  --card: #fff;
  --text: #2e2410;
  --muted: #7b6b45;
  --shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

* { box-sizing: border-box; }

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  direction: rtl;
  font-family: 'DroidArabic', sans-serif;
  background: linear-gradient(180deg, #fbfaf6 0%, var(--bg) 100%);
  color: var(--text);
}

.nm-app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 100%;
  margin: 0;
  padding: 0 0 84px;
}

.nm-summary {
  padding: 0;
}

.nm-header {
  background: linear-gradient(135deg, var(--gold2), var(--gold1));
  color: #fff;
  width: 100%;
  margin: 0 0 14px;
  padding: 34px 22px 28px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-bottom-left-radius: 32px;
  border-bottom-right-radius: 32px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  position: relative;
}
.ask-brand {
  display: grid;
  gap: 18px;
  max-width: none;
  margin: 0;
  text-align: center;
  position: relative;
}
.nm-kicker {
  display: none;
}
.ask-brand-text h1 {
  margin: 0 0 8px;
  font-family: 'Somar';
  font-size: 32px;
}
.ask-brand-text p {
  max-width: 620px;
  margin: 0 auto;
  font-size: 15px;
  color: #fdf6e5;
  opacity: 0.95;
  line-height: 1.9;
}
.ask-logo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: #fff;
  padding: 10px;
  object-fit: contain;
  order: -1;
  margin: 4px 0 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}
.nm-header .ask-logo {
  display: none;
}
.nm-content {
  flex: 1;
  padding: 28px 20px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.nm-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.nm-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  font-size: 17px;
  font-weight: 700;
  border: 1px solid #e4d6b8;
  border-radius: 16px;
  background: linear-gradient(145deg, #ffffff, #f7f1e4);
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
   font-family: 'Somar', sans-serif;
   font-size: 18px;
}


.nm-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nm-option:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}
.nm-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold1), var(--gold2));
  color: #fff;
  font-family: 'Somar';
  font-size: 16px;
  flex-shrink: 0;
  box-shadow: 0 6px 12px rgba(0,0,0,0.08);
}
.nm-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(198,161,91,0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold2);
  font-size: 20px;
  flex-shrink: 0;
}
.nm-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: right;
}
.nm-title {
  font-size: 17px;
  line-height: 1.6;
}
.nm-option.active {
  border-color: var(--gold2);
  box-shadow: 0 12px 22px rgba(0,0,0,0.14);
}
.nm-arrow {
  color: var(--gold2);
}

.nm-summary-content {
  flex: 1;
  padding: 30px 20px 50px;
  max-width: 1100px;
  margin: 0 auto;
}
.nm-summary-card {
  background: #fff;
  border: 1px solid #e4d6b8;
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 28px;
  line-height: 2;
  color: #2e2410;
}
.nm-summary-intro {
  margin: 0 0 18px;
  font-size: 16px;
  text-align: justify;
}
.nm-steps-shell {
  width: 100%;
  max-width: 100%;
  margin: 0;
}
.nm-steps-content {
  max-width: 720px;
  margin: 0 auto;
}
.nm-steps-cards {
  display: grid;
  gap: 14px;
}
.nm-step-card {
  background: #fff;
  border: 1px solid #e4d6b8;
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 18px 18px 20px;
  line-height: 1.9;
}
.nm-step-card h3 {
  margin: 0 0 10px;
  color: var(--gold2);
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nm-step-card p {
  margin: 0;
  font-size: 15px;
}
.nm-steps-faq {
  margin-top: 18px;
}
.nm-steps-note {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.9;
}
.nm-question-call {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}
.nm-ask-btn-solid {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--gold1), var(--gold2));
  color: #fff;
  padding: 12px 18px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  font-weight: 800;
  box-shadow: 0 10px 20px rgba(0,0,0,0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
}
.nm-ask-btn-solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(0,0,0,0.15);
}
.nm-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff9ed;
  border: 1px solid #f0e3c8;
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #8c6a29;
  box-shadow: 0 8px 16px rgba(0,0,0,0.05);
  margin-bottom: 16px;
}
.nm-topbar i { font-size: 18px; }
.nm-question-box {
  margin-top: 26px;
  background: #fff;
  border: 1px solid #e4d6b8;
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 18px 18px 26px;
}
.nm-next-step {
  text-align: center;
}
.nm-next-copy {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.8;
}
.nm-transfer {
  margin: 10px 0 14px;
}
.nm-transfer--center {
  display: flex;
  justify-content: center;
}
.nm-transfer-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(198,161,91,0.12);
  border: 1px solid rgba(140,106,41,0.22);
  color: var(--gold2);
  text-decoration: none;
  font-family: 'Somar';
}
.nm-question-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: var(--gold2);
  margin-bottom: 10px;
}
.nm-question-title i { font-size: 18px; }
.nm-quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.nm-quick {
  background: #fff8e6;
  border: 1px solid #ecdcb6;
  border-radius: 12px;
  padding: 12px;
  text-align: right;
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.nm-quick:hover {
  transform: translateY(-2px);
  border-color: var(--gold2);
  box-shadow: 0 10px 18px rgba(0,0,0,0.08);
}
.nm-points {
  margin: 0 0 22px;
  padding-right: 20px;
  display: grid;
  gap: 10px;
  list-style: disc;
}
.nm-points strong { color: var(--gold2); }

@media (max-width: 520px) {
  .nm-app {
    padding: 0 0 84px;
  }
  .nm-header {
    margin: 0 0 12px;
  }
  .nm-brand {
    align-items: flex-start;
    flex-direction: column;
  }
  .back-home {
    position: static;
    margin-bottom: 10px;
  }
  .ask-brand {
    gap: 18px;
  }
  .ask-brand-text {
    text-align: center;
  }
  .ask-logo {
    width: 76px;
    height: 76px;
  }
  .ask-brand-text h1 {
    font-size: 24px;
  }
  .ask-brand-text p {
    font-size: 14px;
  }
  .nm-content,
  .nm-summary-content,
  .nm-steps-content {
    padding: 20px 14px 36px;
  }
  .nm-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .nm-option {
    padding: 14px 12px;
  }
  .nm-number {
    width: 32px;
    height: 32px;
    font-size: 15px;
  }
  .nm-icon {
    width: 40px;
    height: 40px;
  }
  .nm-title {
    font-size: 16px;
  }
  .nm-summary-card {
    padding: 22px;
  }
}

/* عناصر الإدخال العامة (تغطي أغلب النماذج) */
input[type="text"],
input[type="email"],
input[type="search"],
input[type="tel"],
textarea,
select {
  width: 100%;
  max-width: 100%;
  font-family: inherit;
  font-size: 16px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #e4d6b8;
  box-sizing: border-box;
}

/* لمنع تمدد textarea */
textarea {
  resize: vertical;
  min-height: 100px;
}

/* صندوق السؤال */
.nm-question-box {
  margin-top: 26px;
  background: #fff;
  border: 1px solid #e4d6b8;
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 18px 18px 26px;
  max-width: 100%;
}

/* =========================
   تجاوب للجوال
   ========================= */
@media (max-width: 520px) {
  .nm-app {
    padding: 0 0 84px;
  }

  .nm-header {
    margin: 0 0 12px;
    padding: 28px 16px 22px;
    border-bottom-left-radius: 28px;
    border-bottom-right-radius: 28px;
  }

  .ask-brand {
    text-align: center;
    gap: 18px;
  }

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

  .ask-logo {
    width: 70px;
    height: 70px;
  }

  .ask-brand-text h1 {
    font-size: 22px;
  }

  .ask-brand-text p {
    font-size: 14px;
  }

  .nm-content,
  .nm-summary-content,
  .nm-steps-content {
    padding: 16px 10px 30px;
  }

  /* شبكة البطاقات عمود واحد على الشاشات الصغيرة */
  .nm-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .nm-option {
    padding: 12px 10px;
    font-size: 15px;
  }

  .nm-number {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }

  .nm-icon {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }

  .nm-title {
    font-size: 15px;
  }

  .nm-summary-card {
    padding: 18px 14px;
  }

  /* صندوق السؤال ومربعات النص */
  .nm-question-box {
    padding: 14px 12px 20px;
    margin-top: 18px;
  }

  .nm-question-title {
    font-size: 14px;
  }

  .nm-quick-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .nm-quick {
    padding: 10px;
    font-size: 14px;
  }

  input[type="text"],
  input[type="email"],
  input[type="search"],
  input[type="tel"],
  textarea,
  select {
    font-size: 15px;
    padding: 9px 10px;
  }
}
