/* أزرار الخدمة فوق بنر الهيرو + صفحات النماذج */

body.homepage .hero-service-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin: 0 0 12px;
  z-index: 5;
  direction: rtl !important;
}

/* صف مضغوط: استشارة · خفض التكاليف · حلول نايوش (RTL: الاستشارة يمينًا) */
body.homepage .hero-service-actions-compact {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: stretch;
  gap: 8px;
  width: 100%;
  direction: rtl !important;
}

body.homepage .hero-service-actions-alerts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  direction: rtl !important;
}

body.homepage .hero-service-actions .hero-service-consult,
body.homepage .hero-service-actions .hero-service-cost,
body.homepage .hero-service-actions .hero-service-solutions {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.88);
  background: #0b0b0b;
  color: #fff;
  font-family: 'Cairo', 'Tajawal', sans-serif;
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
  box-sizing: border-box;
  transition: background-color 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
}

body.homepage .hero-service-actions .hero-service-consult i,
body.homepage .hero-service-actions .hero-service-cost i,
body.homepage .hero-service-actions .hero-service-solutions i {
  font-size: 12px;
  flex-shrink: 0;
  opacity: 0.95;
}

body.homepage .hero-service-actions .hero-service-consult:hover,
body.homepage .hero-service-actions .hero-service-cost:hover,
body.homepage .hero-service-actions .hero-service-solutions:hover,
body.homepage .hero-service-actions .hero-service-consult:focus-visible,
body.homepage .hero-service-actions .hero-service-cost:focus-visible,
body.homepage .hero-service-actions .hero-service-solutions:focus-visible {
  background: #1a1a1a;
  border-color: #fff;
  color: #fff;
  outline: none;
}

body.homepage .hero-service-actions .hero-service-suggest,
body.homepage .hero-service-actions .hero-service-complaint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 12px 14px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #ff2d2d, #b10011);
  color: #fff;
  font-family: 'Cairo', 'Tajawal', sans-serif;
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(177, 0, 17, 0.35);
}

body.homepage .hero-service-actions .hero-service-suggest:hover,
body.homepage .hero-service-actions .hero-service-complaint:hover,
body.homepage .hero-service-actions .hero-service-suggest:focus-visible,
body.homepage .hero-service-actions .hero-service-complaint:focus-visible {
  filter: brightness(1.06);
  color: #fff;
}

.hub-service-form {
  display: grid;
  gap: 10px;
}

.hub-service-form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  color: #1f2937;
}

.hub-service-form input,
.hub-service-form select,
.hub-service-form textarea {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 11px 12px;
  font: inherit;
  font-weight: 700;
  box-sizing: border-box;
  background: #fff;
}

.hub-service-form textarea {
  min-height: 100px;
  resize: vertical;
}

.hub-service-form .btn {
  justify-self: start;
  margin-top: 4px;
}

.hub-service-feedback {
  margin: 8px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #ecfdf5;
  color: #065f46;
  font-weight: 800;
  font-size: 13px;
}

.hub-service-empty {
  color: #6b7280;
  font-weight: 700;
}

.hub-service-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.hub-attach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 2px 0 4px;
}

.hub-attach-grid [data-hub-attach-status],
.hub-attach-grid [data-hub-attach-preview] {
  grid-column: 1 / -1;
}

.hub-attach-status {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  color: #065f46;
}

.hub-attach-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.hub-attach-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #111827;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.hub-attach-preview img,
.hub-attach-preview video {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 12px;
  background: #0f172a;
}

.hub-support-form .hub-attach-grid {
  margin-top: 2px;
}

.ns-detail-request {
  margin: 8px 0 22px;
  padding: 20px 18px;
  background: #fff;
  border: 1px solid #ececf1;
  border-radius: 18px;
  border-top: 3px solid var(--brand-red, #d70000);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.ns-detail-request h2 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 900;
  color: #111827;
}

.ns-detail-request > p {
  margin: 0 0 14px;
  color: #4b5563;
  font-size: 14px;
  font-weight: 600;
}

@media (max-width: 900px) {
  body.homepage .hero-service-actions .hero-service-consult,
  body.homepage .hero-service-actions .hero-service-cost,
  body.homepage .hero-service-actions .hero-service-solutions {
    font-size: 12px;
    padding: 8px 8px;
    gap: 5px;
  }
}

@media (max-width: 700px) {
  .hub-service-grid-2,
  .hub-attach-grid {
    grid-template-columns: 1fr;
  }

  body.homepage .hero-service-actions {
    gap: 8px;
  }

  body.homepage .hero-service-actions-compact {
    gap: 6px;
  }

  body.homepage .hero-service-actions .hero-service-consult,
  body.homepage .hero-service-actions .hero-service-cost,
  body.homepage .hero-service-actions .hero-service-solutions {
    font-size: 11.5px;
    min-height: 38px;
    padding: 7px 6px;
    border-radius: 9px;
    white-space: normal;
  }

  body.homepage .hero-service-actions .hero-service-suggest,
  body.homepage .hero-service-actions .hero-service-complaint {
    font-size: 14px;
    min-height: 46px;
  }
}

/* شاشات ضيقة جدًا: لفّ الصف بدل تصغير خط مفرط أو سكرول أفقي */
@media (max-width: 380px) {
  body.homepage .hero-service-actions-compact {
    flex-wrap: wrap;
  }

  body.homepage .hero-service-actions .hero-service-consult,
  body.homepage .hero-service-actions .hero-service-cost,
  body.homepage .hero-service-actions .hero-service-solutions {
    flex: 1 1 calc(50% - 4px);
    font-size: 12px;
    white-space: nowrap;
  }
}
