html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* تنسيق نموذج التواصل */
.form-label {
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-control,
.form-select {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  background-color: #f8f9fa;
}

.form-control:focus,
.form-select:focus {
  border-color: #28a745;
  box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.input-group-text {
  background-color: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 8px 0 0 8px;
}

.btn-success {
  background-color: #28a745;
  border: none;
  padding: 0.75rem 2rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-success:hover {
  background-color: #218838;
  transform: translateY(-1px);
}

.alert-success {
  background-color: #d4edda;
  border-color: #c3e6cb;
  color: #155724;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
}

/* تنسيق القوائم المنسدلة */
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: left 0.75rem center;
  background-size: 16px 12px;
}

/* تنسيق الرسائل التحذيرية */
.text-danger {
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: block;
}

/* تنسيق للشاشات الصغيرة */
@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }

  .btn-success {
    width: 100%;
  }
}

.lazy-img {
  background: #e0e0e0;
  min-height: 100px;
  display: block;
}

#chatbot-container {
  position: fixed;
  bottom: 24px;
  left: 90px;
  z-index: 9999;
  direction: rtl;
}

#chatbot-fab {
  background: #ffffff;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  font-size: 2rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

#chatbot-box {
  width: 320px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.2);
  margin-bottom: 12px;
  direction: rtl;
  overflow: hidden;
}

#chatbot-header {
  background: #009688;
  color: #fff;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#chatbot-messages {
  max-height: 200px;
  overflow-y: auto;
  padding: 12px;
}

.msg.bot {
  background: #f1f1f1;
  margin-bottom: 8px;
  padding: 8px;
  border-radius: 8px;
  text-align: right;
}

.msg.user {
  background: #e0f7fa;
  margin-bottom: 8px;
  padding: 8px;
  border-radius: 8px;
  text-align: left;
}

#chatbot-options {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#chatbot-options button {
  background: #eee;
  border: none;
  border-radius: 6px;
  padding: 8px;
  cursor: pointer;
  text-align: right;
}

#chatbot-close {
  background: #eee;
  color: #333;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  margin-right: 4px;
}

#chatbot-close:hover {
  background: #e57373;
  color: #fff;
}

.hero-section {
  background: url('/images/Rectangle 1441.png') center/cover no-repeat;
  min-height: 400px;
  position: relative;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  background: rgba(0, 0, 0, 0.4);
  position: absolute;
  inset: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: bold;
}

.hero-content p {
  font-size: 1.2rem;
}

.section-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
}

.feature-box {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  min-height: 180px;
}

.clients img {
  max-height: 40px;
  margin: 0 1.5rem 1.5rem 0;
  opacity: 0.8;
}

.footer {
  background: #222;
  color: #fff;
  padding: 2rem 0 1rem 0;
}

.footer a {
  color: #fff;
}

.footer .logo {
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 2px;
}

.btn-custom {
  background: #6d726a;
  color: #fff;
  border-radius: 25px;
  padding: 0.5rem 2rem;
}

.gallery img {
  border-radius: 10px;
  width: 100%;
  height: 140px;
  object-fit: cover;
}

/* تحسين شكل القائمة العلوية */
.navbar-nav {
  gap: 2.2rem;
  align-items: center;
  margin: 0 auto;
}

.navbar-nav .nav-link {
  font-size: 0.70rem;
  color: #222 !important;
  font-weight: 500;
  padding: 0.7rem 0.7rem !important;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #6d726a !important;
}

.navbar .dropdown-toggle::after {
  display: none;
}

.navbar-nav .dropdown-toggle .fa-caret-down {
  margin-right: 0.35em;
  margin-left: 0.15em;
  font-size: 1em;
  color: #888;
  transition: transform 0.2s;
}

.navbar-nav .dropdown.show .dropdown-toggle .fa-caret-down {
  transform: rotate(180deg);
  color: #6d726a;
}

.navbar .dropdown-menu {
  text-align: right;
  min-width: 180px;
  border-radius: 10px;
  font-size: 1rem;
  margin-top: 0.5rem;
}

.navbar .dropdown-item {
  padding: 0.5rem 1.2rem;
}

.navbar .logo {
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 2px;
  color: #222 !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media(max-width: 991px) {
  .navbar-nav {
    gap: 0.5rem;
  }

  .navbar-nav .nav-link {
    font-size: 1rem;
    padding: 0.5rem 0.5rem !important;
  }
}

@media(max-width: 767px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.3rem;
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}