.has-float-label {
  position: relative;
}

.has-float-label input {
  height: 48px;
  padding-top: 18px;
}

.has-float-label span {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  font-size: 14px;
  color: #6c757d;
  pointer-events: none;
  transition: 0.2s ease;
  background: #fff;
  padding: 0 6px;
}

.has-float-label input:focus + span,
.has-float-label input:not(:placeholder-shown) + span {
  top: 4px;
  font-size: 11px;
  color: #0d6efd;
}

/* کارت هر سوال */
.question-card {
  position: relative;
  background: #ffffff;
  border: 2px solid #6fb327;
  border-radius: 10px;
  padding: 50px 30px 30px 30px;
  max-width: 600px;
  margin: 30px auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  text-align: right;
  transition: all 0.3s ease;
  direction: rtl; /* راست به چپ برای کل کارت */
}

/* hover کارت */
.question-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* شماره سوال بالای وسط کارت */
.question-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: #6fb327;
  color: #fff;
  padding: 2px 45px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 14px;
  box-shadow: 0 6px 16px rgba(22, 163, 74, 0.25);
  transition:
    transform 0.3s ease,
    background 0.3s ease;
}

/* hover روی شماره سوال */
.question-card:hover .question-badge {
  transform: translateX(-50%) scale(1.1);
  background: #89df2d;
}

/* متن سوال */
.question-title {
  font-size: 16px;
  font-weight: normal; /* غیر بولد */
  margin-bottom: 20px;
  line-height: 1.6;
  color: #313131;
  text-align: right; /* راست چین کردن متن */
}

/* input text */
.question-input {
  width: 100%;
  height: 50px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  padding: 0 15px;
  font-size: 16px;
  transition: all 0.2s ease;
  text-align: right; /* راست چین شدن متن داخل input */
}

/* فوکوس input */
.question-input:focus {
  outline: none;
  border-color: #16a34a;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.15);
}

/* کانتینر گزینه‌ها */
.options-container {
  display: flex;
  flex-wrap: wrap; /* اجازه رفتن به خط بعد */
  gap: 10px 20px; /* فاصله عمودی و افقی */
  width: calc(100% - 20px); /* پهنای کامل والد */
  padding: 0 10px;
  box-sizing: border-box;
}

/* هر گزینه */
.option-item {
  flex: 0 0 45%; /* دو ستون */
  display: flex;
  align-items: flex-start;
  text-align: right;
  word-break: break-word; /* متن طولانی خودکار شکسته شود */
  margin-bottom: 10px;
}

/* ریسپانسیو موبایل: ستون‌ها یک ستونه شوند */
@media (max-width: 576px) {
  .option-item {
    flex: 0 0 100%;
  }
}

/* label گزینه‌ها */
.option-item label {
  margin-right: 1px; /* فاصله بین checkbox/radio و متن */
  cursor: pointer;
}

/* پس زمینه کلی صفحه برای برجسته شدن کارت ها */
body {
  background-color: #f4f6f8;
}

/* استایل کارت سوالات شبیه به iOS/Android */
.app-card {
  background: #ffffff;
  border-radius: 24px;
  border: none;
  box-shadow: 0 8px 24px rgba(149, 157, 165, 0.08);
  transition: transform 0.2s ease;
}

/* استایل Input متنی */
.app-input {
  background-color: #f3f4f6;
  border: 2px solid transparent;
  border-radius: 16px;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  transition: all 0.3s ease;
}
.app-input:focus {
  background-color: #ffffff;
  border-color: #6366f1; /* رنگ اصلی جدید (بنفش/آبی مدرن) */
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
  outline: none;
}

/* مخفی کردن چک باکس و رادیو اصلی */
.app-hidden-input {
  display: none;
}

/* تبدیل گزینه ها به دکمه های لمسی بزرگ */
.app-option-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background-color: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 0.75rem;
}

/* افکت هنگام انتخاب شدن گزینه */
.app-hidden-input:checked + .app-option-label {
  border-color: #6366f1;
  background-color: #eef2ff;
}

/* دایره توخالی/توپر برای نشان دادن انتخاب */
.app-check-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #d1d5db;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.app-hidden-input[type="checkbox"] + .app-option-label .app-check-circle {
  border-radius: 8px; /* چک باکس را مربع گوشه گرد میکنیم */
}

/* پر شدن دایره هنگام انتخاب */
.app-hidden-input:checked + .app-option-label .app-check-circle {
  border-color: #6366f1;
  background-color: #6366f1;
}
.app-hidden-input:checked + .app-option-label .app-check-circle::after {
  content: "✓";
  color: white;
  font-size: 14px;
  font-weight: bold;
}

/* استایل فوق‌مدرن برای دکمه ارسال */
.btn-app-submit {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important; /* فاصله بین متن و آیکون */
  width: 100% !important;
  background: linear-gradient(
    135deg,
    #4f46e5 0%,
    #3730a3 100%
  ) !important; /* شیب رنگ بنفش تیره */
  color: #ffffff !important; /* رنگ متن قطعا سفید باشد */
  border: none !important;
  border-radius: 20px !important;
  padding: 18px 24px !important; /* ارتفاع زیاد برای کلیک راحت با انگشت */
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  box-shadow: 0 10px 25px rgba(79, 70, 229, 0.4) !important; /* سایه رنگی درخشان */
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  text-decoration: none !important;
}

/* افکت هاور برای کامپیوتر */
.btn-app-submit:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 14px 30px rgba(79, 70, 229, 0.5) !important;
}

/* افکت فشردن دکمه (بسیار مهم برای حس اپلیکیشن در موبایل) */
.btn-app-submit:active {
  transform: translateY(2px) scale(0.96) !important;
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3) !important;
}

.signature-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 15px;
  margin-bottom: 20px;
  width: 100%;
}

.signature-box {
  background-color: #ffffff;
  border: 2px dashed #adb5bd;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  padding: 5px;
  transition: all 0.3s ease;
  overflow: hidden;
  max-width: 100%;
  position: relative;
}

.signature-box:hover {
  border-color: #0d6efd;
  box-shadow: 0 6px 12px rgba(13, 110, 253, 0.15);
}

.signature-box canvas {
  cursor: crosshair;
  display: block;
  background-color: #fafbfc;
  border-radius: 8px;
  touch-action: none;
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #e2e8f0;
}

.info-label {
  font-weight: bold;
  color: #475569;
}

.info-value {
  color: #1e293b;
}

.customer-fields-section {
  background-color: #f8fafc;
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
}


/* منو افقی  */
.login-form .form-title {
    color: #1a1a2e;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 12px;
}

.login-form .form-subtitle {
    color: #666;
    font-size: 14px;
}


.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#approveBtn, #rejectBtn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}


.swal-status-popup {
    border-radius: 16px !important;
}

.swal-status-popup .swal2-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: .25rem;
}

.swal-status-popup .swal2-html-container {
    margin-top: .5rem;
    margin-bottom: .5rem;
}

.status-swal-card {
    border: 1px solid #eef0f3;
    border-radius: 12px;
    padding: 14px;
    background: #fafbfd;
}

.status-swal-label {
    font-size: .82rem;
    font-weight: 600;
    color: #5f6370;
    margin-bottom: .4rem;
}

.status-swal-input {
    width: 100%;
    max-width: 360px;
    margin: 0 auto 10px auto;
}


.horizontal-menu {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.menu-scroll {
    overflow-x: auto;
}

.menu-items {
    display: inline-flex;
    gap: 12px;
    padding: 8px 4px;
}

.menu-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    padding: 10px 12px;
    background: #f8f9fa;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.menu-item.active {
    background: linear-gradient(135deg, #007bff, #00c6ff);
    border-color: transparent;
    color: white;
}

.menu-item.active .menu-text {
    color: white;
}

.menu-icon {
    font-size: 24px;
    margin-bottom: 6px;
}

.menu-text {
    font-size: 11px;
    font-weight: 500;
    color: #333;
}

.menu-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

