/* استایل کانتینر اصلی */
.cert-verify-container {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
  font-family: "Vazir", "Tahoma", sans-serif;
}

.cert-verify-form-wrapper {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 40px;
  border: 1px solid #e5e7eb;
}

/* عنوان و توضیحات */
.cert-verify-title {
  font-size: 28px;
  color: #1f2937;
  margin-bottom: 8px;
  text-align: center;
  font-weight: bold;
}

.cert-verify-title-en {
  font-size: 22px;
  color: #4b5563;
  margin-bottom: 20px;
  text-align: center;
  font-weight: 600;
  font-family: Arial, sans-serif;
}

.cert-verify-description {
  text-align: center;
  color: #6b7280;
  margin-bottom: 8px;
  font-size: 15px;
}

.cert-verify-description-en {
  text-align: center;
  color: #9ca3af;
  margin-bottom: 30px;
  font-size: 14px;
  font-family: Arial, sans-serif;
}

/* استایل فرم */
.cert-verify-form {
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  color: #374151;
  font-weight: 600;
  font-size: 15px;
  text-align: center;
}

.form-group input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  font-family: "Courier New", monospace;
  text-align: center;
  letter-spacing: 1px;
}

.form-group input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* دکمه ارسال */
.cert-verify-submit {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.cert-verify-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.cert-verify-submit:active {
  transform: translateY(0);
}

.cert-verify-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* نتیجه جستجو */
.cert-verify-result {
  margin-top: 30px;
  padding: 0;
  border-radius: 12px;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* نتیجه موفق */
.cert-result-success {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
}

.success-icon {
  width: 70px;
  height: 70px;
  background: #22c55e;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  margin: 0 auto 25px;
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

/* دو باکس کنار هم */
.cert-bilingual-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 25px;
}

.cert-box-fa,
.cert-box-en {
  padding: 25px;
  border-radius: 10px;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cert-box-fa {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 2px solid #86efac;
  direction: rtl;
  text-align: right;
}

.cert-box-en {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 2px solid #93c5fd;
  direction: ltr;
  text-align: left;
}

.box-title-fa {
  font-size: 22px;
  color: #166534;
  margin-bottom: 15px;
  font-weight: bold;
}

.box-title-en {
  font-size: 20px;
  color: #1e40af;
  margin-bottom: 15px;
  font-weight: bold;
  font-family: Arial, sans-serif;
}

.box-text-fa {
  font-size: 16px;
  color: #15803d;
  line-height: 1.8;
}

.box-text-en {
  font-size: 15px;
  color: #1e3a8a;
  line-height: 1.8;
  font-family: Arial, sans-serif;
}

.box-text-fa strong,
.box-text-en strong {
  font-weight: bold;
  color: #14532d;
}

.cert-code {
  background: #bbf7d0;
  padding: 3px 10px;
  border-radius: 5px;
  font-family: "Courier New", monospace;
  font-size: 16px;
  white-space: nowrap;
  display: inline-block;
}

.cert-box-en .cert-code {
  background: #bfdbfe;
}

/* تصویر مدرک */
.cert-image-wrapper {
  margin-top: 10px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.cert-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* دکمه دانلود */
.cert-download-wrapper {
  margin-top: 20px;
  text-align: center;
}

.cert-download-btn {
  display: inline-block;
  padding: 14px 35px;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(34, 197, 94, 0.2);
}

.cert-download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

.download-icon {
  margin-right: 8px;
  font-size: 18px;
}

/* نتیجه خطا */
.cert-result-error {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border: 2px solid #fca5a5;
  border-radius: 12px;
  padding: 35px;
  text-align: center;
}

.error-icon {
  width: 70px;
  height: 70px;
  background: #ef4444;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  margin: 0 auto 20px;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.cert-result-error h3 {
  font-size: 24px;
  color: #991b1b;
  margin-bottom: 8px;
  font-weight: bold;
}

.error-title-en {
  font-size: 20px;
  color: #b91c1c;
  margin-bottom: 15px;
  font-weight: 600;
  font-family: Arial, sans-serif;
}

.cert-result-error p {
  font-size: 16px;
  color: #b91c1c;
  margin-bottom: 10px;
  line-height: 1.6;
}

.error-hint-en {
  font-size: 14px;
  color: #dc2626;
  font-family: Arial, sans-serif;
  font-style: italic;
}

.error-hint {
  font-size: 14px;
  color: #dc2626;
  font-style: italic;
}

/* ریسپانسیو */
@media (max-width: 768px) {
  .cert-verify-container {
    padding: 10px;
    margin: 20px auto;
  }

  .cert-verify-form-wrapper {
    padding: 25px 20px;
  }

  .cert-verify-title {
    font-size: 22px;
  }

  .cert-verify-title-en {
    font-size: 18px;
  }

  .cert-verify-description {
    font-size: 14px;
  }

  .cert-verify-description-en {
    font-size: 13px;
  }

  .form-group input {
    padding: 12px;
    font-size: 14px;
  }

  .cert-verify-submit {
    padding: 14px;
    font-size: 16px;
  }

  /* دو باکس زیر هم در موبایل */
  .cert-bilingual-container {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .box-title-fa {
    font-size: 18px;
  }

  .box-title-en {
    font-size: 16px;
  }

  .box-text-fa,
  .box-text-en {
    font-size: 14px;
  }

  .cert-download-btn {
    padding: 12px 25px;
    font-size: 14px;
  }
}
