body {
  font-family: 'Segoe UI', sans-serif;
  background: #fefbf6;
  color: #222;
  text-align: center;
  padding: 20px;
  margin: 0;
  
}

.header-title h1 {
    font-size: 20px !important;
  color: #aa6e0e;
  margin-bottom: 0;
}

.header-title h2 {
  font-size: 24px;
  color: #8b6b00;
  margin-top: 0;
}

.subtext {
  font-size: 25px;
  color: #555;
  margin-bottom: 10px;
}

.form-container {
 width: 90%;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  margin: 0 auto 30px;
}

input, select, textarea {
  width: 100%;
  margin: 10px 0;
  padding: 20px;
  font-size: 28px;
  border-radius: 12px;
  border: 2px solid #8b6b00;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  box-sizing: border-box;
  
}

textarea {
  resize: vertical;
}

button {
  background-color: #d4af37;
  color: white;
  font-weight: bold;
  cursor: pointer;
  border: none;
  transition: 0.3s;
  padding: 12px 20px;
  border-radius: 8px;
  margin-top: 15px;
}

button:hover {
  background-color: #b8921d;
}

.generate-btn {
  display: block;
  margin: 0 auto 30px;
    max-width: 500px;
font-size: 20px;
    width: 100%;
    height: 50%;

}

#canvas-container canvas {
  max-width: 100%;
  height: auto;
}

#preview-card {
  border: 2px solid #333;
  padding: 20px;
  border-radius: 12px;
  max-width: 400px;
  margin: 20px auto;
  background: #f7f4ec;
  
}

#preview-company-name {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
}

.scan-text {
  font-size: 18px;
  color: red;
  margin: 10px 0;
  font-weight: bold;
}

#preview-company-details {
  font-size: 16px;
  color: #333;
}

.popup {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.popup-content {
  background: white;
  padding: 30px 20px 80px 20px;
  border-radius: 12px;
  text-align: center;
  width: 90%;
  max-width: 400px;
  position: relative;
}

.popup-content .close {
  position: absolute;
  top: 10px;
  left: 15px;
  font-size: 24px;
  cursor: pointer;
  color: #999;
}

.hidden {
  display: none;
}
.download-btn {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background-color: #333;
  color: white;
  font-size: 24px;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}


.download-btn:hover {
  background-color: #000;
}
.company-names {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background-color: #fff;
  padding: 10px 20px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  margin-bottom: 10px;
    position: relative; /* أساس للعناصر المطلقة */

}

.company-names h1,
.company-names h2 {
  margin: 0;
  font-size: 20px;
  flex: 1;
  text-align: center;
}
.demo-qr {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-right: auto; /* لدفعها لأقصى اليسار */
}

.ar-name {
  text-align: right;
  color: #8b6b00;
  margin-right: auto; /* لدفع الاسم إلى اليمين */
  padding-right: 140px; /* إضافة مساحة للوجو في الوسط */
order: 1;
    padding-right: 0;
    width: 100%;
    text-align: center;
    margin-top: 10px
}


.en-name {
  text-align: center;
  color: #a91111;
  font-size: 20px;
  margin-top: 10px;
  width: 100%;
   order: 2;
}
@media (max-width: 600px) {
  .company-names {
    flex-direction: row;
    flex-wrap: wrap;
  }
}
.logo-img {
  width: 120px; /* زيادة حجم اللوجو من 90px إلى 120px */
  height: 120px;
  object-fit: contain;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
    position: static;
    transform: none;
    order: 2;
    width: 150px;
    height: 150px;
    margin: 0 auto;
}

@media (max-width: 600px) {
  .company-names {
    flex-direction: column;
    text-align: center;
  }

  .company-names h1,
  .company-names h2 {
    text-align: center;
  }
}
input, select, textarea {
  box-sizing: border-box;
}
/* إخفاء عناصر .only-popup في الصفحة الرئيسية */
#preview-card .only-popup {
  display: none;
}
.input-label {
  font-size: 14px;
  font-weight: bold;
  text-align: right;
  display: block;
  margin-top: 10px;
}
/* كادر حيوي للكارد */
#popup-company-name,
.scan-text {
  background: #f0f0f0;
  padding: 10px;
  border-radius: 10px;
  margin: 10px auto;
  display: inline-block;
  width: auto;
  box-shadow: 0 0 5px rgba(0,0,0,0.2);
}
/* إضافة أنماط جديدة */
.main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.form-container {
  flex: 1;
  min-width: 400px;
  max-width: 600px;
}

#preview-card {
  flex: 1;
  min-width: 300px;
  max-width: 400px;
  margin: 0;
}

/* تعديلات حجم الخط للويب */
@media (min-width: 768px) {
  .header-title h1 {
    font-size: 24px !important;
  }
  
  .header-title h2 {
    font-size: 35px;
  }
  
  input, select, textarea {
    font-size: 18px;
    padding: 15px;
  }
  
  .generate-btn {
    font-size: 20px;
    max-width: 300px;
  }
}

/* الحفاظ على أنماط الهاتف كما هي */
@media (max-width: 767px) {
  .content-wrapper {
    flex-direction: column;
  }
  
  .form-container, #preview-card {
    min-width: 100%;
    max-width: 100%;
  }
  
  /* أنماط الهاتف الحالية تبقى كما هي */
}
/* أنماط قسم الخدمات */
.our-services {
  margin-top: 40px;
  padding: 20px;
  background: #f7f4ec;
  border-radius: 12px;
}

.services-title {
  text-align: center;
  color: #8b6b00;
  font-size: 28px;
  margin-bottom: 30px;
}

.services-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.service-card {
  background: white;
  border-radius: 10px;
  padding: 15px;
  width: 300px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.service-card h3 {
  color: #a91111;
  margin: 10px 0;
}

.service-card p {
  color: #555;
  font-size: 14px;
}

/* تعديلات للهواتف */
@media (max-width: 768px) {
  .services-container {
    flex-direction: column;
    align-items: center;
  }
  
  .service-card {
    width: 90%;
  }
}
.buy-btn {
  background-color: #28a745;
  color: white;
  padding: 10px 44px;
  font-size: 12px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.8s;
}

.buy-btn:hover {
  background-color: #218838;
}
footer {
    color: #ffffff; /* تحديد لون النص */
    display: flex;
    padding: 20px 0; /* إضافة حشوة من الأعلى والأسفل */
    align-items: center; /* محاذاة العناصر أفقياً في المنتصف */
    justify-content: center; /* محاذاة العناصر عمودياً في المنتصف */
    text-align: center; /* لضبط النص في المنتصف */
    text-align: center;
      margin-top: 80px;
      padding: 1px;
      color: #ffffff;
      font-size: 14px;
      background-color: #8b6b00;
   
      
}


