@font-face {
  font-family: 'Baloo Bhaijaan 2';
  src: url('https://quamtex.ir/fonts/webfonts/baloo-bhaijaan-2-arabic-500-normal.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Baloo Bhaijaan 2';
  src: url('https://quamtex.ir/fonts/webfonts/baloo-bhaijaan-2-latin-500-normal.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
    --primary: #112548;
    --primary-hover: #1e3a6e;
    --bg-input: #f8fafc;
    --border-light: #e2e8f0;
    --shadow-soft: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

h1 {
    font-size: 24px;
    margin-bottom: 20px;
}

.main-container {
  display: flex;
  flex-direction: row;
}

.main-content {
  padding: clamp(1rem, 2vw, 2rem);
  margin: clamp(0.5rem, 1.5vw, 1.5rem);
  background-color: #ffffff;
  border-radius: 24px;
  font-size: clamp(0.938rem, 0.842rem + 0.426vw, 1.188rem);
  text-align: center;
  /* مدرن‌سازی سایه کانتینر اصلی */
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--primary);
  width: 100%;
}

.description {
  background-color: #ffffff;
  padding: 25px;
  border-radius: 20px;
  margin-bottom: 16px;
  /* سایه نرم‌تر */
  text-align: right;
  font-size: clamp(0.875rem, 0.731rem + 0.638vw, 1.25rem);
  border: 2px solid var(--border-light);
}

.bmi {
  display: grid;
  margin: 20px 0;
  border-radius: 24px;
  /* حذف سایه سیاه و جایگزینی با افکت کارت مدرن */
  background: #ffffff;
  border: 2px solid var(--border-light);
  padding: clamp(0.8rem, 0.5vw, 1.6rem);
  width: 100%;
  box-sizing: border-box; /* جلوگیری از اسکرول افقی */
}

/* استایل مشترک برای اینپوت و سلکت */
input, select {
  -moz-appearance: textfield;
  font-size: 16px;
  /* حذف حاشیه ضخیم */
  border: 2px solid var(--border-light);
  background-color: var(--bg-input);
  outline: none;
  height: 50px;
  position: relative;
  bottom: 14px; /* حفظ پوزیشن قبلی شما */
  border-radius: 16px; /* گردی کمتر برای حس مدرن‌تر */
  width: 220px;
  max-width: 100%;
  margin-top: 25px;
  /* حذف سایه سنگین اینپوت */
  box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.02);
  text-align: center;
  font-family: "Baloo Bhaijaan 2", sans-serif;
  color: var(--primary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* هاور و فوکوس مدرن */
input:hover, select:hover {
    border-color: #cbd5e1;
    background-color: #fff;
}

input:focus, select:focus {
  border-color: var(--primary);
  background-color: #fff;
  /* افکت درخشش دور اینپوت */
  box-shadow: 0 0 0 4px rgba(17, 37, 72, 0.1);
  transform: translateY(-2px);
}

button {
  font-size: 1.2rem;
  border: none;
  border-radius: 20px;
  /* گرادینت ملایم‌تر */
  background: linear-gradient(135deg, var(--primary) 0%, #2c4a85 100%);
  color: white;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 6px rgba(17, 37, 72, 0.2);
  font-family: "Baloo Bhaijaan 2", sans-serif;
  grid-column: span 2;
  justify-self: center;
  width: 40%;
  min-width: 150px;
  height: 48px;
  margin-top: 40px;
  letter-spacing: 0.5px;
}

.description-title {
  font-size: clamp(1rem, 0.809rem + 0.851vw, 1.5rem);
  color: var(--primary);
  margin-bottom: 10px;
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 10px;
  display: inline-block;
}

button:hover {
  background: linear-gradient(135deg, #1e3a6e 0%, #3b5d9c 100%);
  box-shadow: 0 10px 20px rgba(17, 37, 72, 0.25);
  transform: translateY(-2px);
}

button:active {
  transform: translateY(0);
  box-shadow: 0 2px 5px rgba(17, 37, 72, 0.2);
}

h3 {
    font-size: 18px;
    align-self: center;
    color: var(--primary);
}

.rtl {
  direction: rtl;
}

.results {
  background-color: #f0f9ff; /* آبی خیلی کمرنگ */
  border: 1px dashed #bae6fd; /* حاشیه خط‌چین مدرن */
  border-radius: 16px;
  font-size: clamp(1rem, 1.1vw, 1.3rem);
  font-weight: bold;
  text-align: center;
  box-shadow: none; /* حذف سایه اضافه */
  color: var(--primary);
  min-height: 50px;
  padding: 15px;
  grid-column: 1/3;
  margin-top: 40px;
  align-content: center;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

/* افکت هاور برای بخش نتیجه */
.results:hover {
    background-color: #e0f2fe;
    border-color: var(--primary);
    transform: scale(1.02);
}

.results:active {
    transform: scale(0.98);
}

@media (max-width: 675px) {
  .bmi {
    grid-template-columns: repeat(1 ,1fr);
    grid-template-rows: auto; /* تغییر به اتو */
    gap: 10px;
    display: flex;
    flex-direction: column;
  }

  /* اصلاح فاصله در موبایل */
  input, select {
      width: 100%;
      margin-top: 15px;
  }
  
  .input-row {
      width: 100%;
  }

  button {
    width: 70%;
    align-self: center;

  }
  
  .results {
      width: 100%;
      box-sizing: border-box;
  }
}

.total {
  grid-row: 1/2;
  grid-column: 1/3
}

.input-row {
    flex-direction: column;
    text-align: center;
    align-items: center;
    display: grid;
    justify-content: center;
}
.input-row label {
    color: #64748b; /* رنگ خاکستری ملایم برای متن لیبل */
    font-size: 0.95rem;
    margin-bottom: 5px;
    direction: rtl;
}

.lol {
  grid-column: 1/3;
  grid-row: 1/2;
}

.t {
  grid-column: 1/2;
  grid-row: 2/3;
}

.r {
  grid-column: 2/3;
  grid-row: 2/3;
}

/* نوتیفیکیشن - کمی نرم‌تر شده */
.notification {
  position: fixed;
  left: 50%;
  transform: translateX(-50%) translateY(-180%);
  overflow: hidden;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  background-color: #fffbeb; /* زرد خیلی روشن */
  border: 1px solid #fcd34d;
  width: fit-content;
  padding: 12px 20px;
  border-radius: 12px;
  color: #92400e;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  font-size: clamp(0.9rem, 1vw, 1.1rem);
  text-align: center;
}

.notification .progress {
    height: 4px;
    background-color: #f59e0b;
    width: 100%;
    border-radius: 3px;
    position: absolute;
    bottom: 0;
    left: 0;
}

/* کلاس‌های انیمیشن نوتیفیکیشن همان قبلی */
.show {
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  opacity: 1;
  transform: translateY(20px) translateX(-50%);
  flex-direction: column;
}

.show2 {
  transition: all 0.5s ease-in;
  display: flex;
  opacity: 0;
  transform: translateY(-100%) translateX(-50%);
  flex-direction: column;
}

@keyframes shrink {
    from { width: 100%; }
    to { width: 0%; }
}

.animate {
    animation: shrink 5s linear forwards;
}

.ezafi {
    display: flex;
    flex-direction: row;
    align-items: center;
}

@media (max-width: 675px) {
  .notification {
    width: 85%;
  }
}

.lol2 {
    margin-top: 0;
}

.description h2 {
    font-size: 1.5rem;
    margin-top: 30px;
    color: #333;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
}
.description h3 {
    color: #0056b3; /* رنگ آبی متناسب با تم */
    margin-top: 20px;
}
.faq-section strong {
    display: block;
    margin-top: 15px;
    color: #444;
}