@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;
}

.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;
}







    /* تنظیمات گرید برای باکش اصلی */
.password-box {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.full-width {
    width: 100%;
    grid-column: span 2;
}

/* استایل اسلایدر (Range Slider) */
.range-container {
    width: 100%;
    padding: 10px 0;
}

input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 5px;
    outline: none;
    border: none;
    margin: 10px 0;
    bottom: 0;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    transition: background .15s ease-in-out;
}

input[type=range]::-webkit-slider-thumb:hover {
    background: #2c4a85;
}

/* گرید گزینه‌ها */
.options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    width: 100%;
    direction: rtl;
    margin-bottom: 20px;
}

/* استایل چک‌باکس‌های سفارشی */
.checkbox-container {
    display: block;
    position: relative;
    padding-right: 35px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 16px;
    user-select: none;
    color: var(--primary);
    text-align: right;
}

/* مخفی کردن چک‌باکس پیش‌فرض */
.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* ساخت چک‌باکس کاستوم */
.checkmark {
    position: absolute;
    top: 0;
    right: 0;
    height: 25px;
    width: 25px;
    background-color: #eee;
    border-radius: 6px;
    transition: 0.3s;
}

.checkbox-container:hover input ~ .checkmark {
    background-color: #ccc;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--primary);
}

/* تیک داخل چک‌باکس */
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 9px;
    top: 5px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

/* ریسپانسیو */
@media (max-width: 675px) {
    .options-grid {
        grid-template-columns: 1fr; /* در موبایل زیر هم قرار بگیرند */
    }
}











/* گرید اصلی */
.options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* دو ستون */
    gap: 15px;
    width: 100%;
    direction: rtl;
    margin-bottom: 25px;
}

/* نگهدارنده اصلی */
.option-wrapper {
    cursor: pointer;
    position: relative;
    user-select: none; /* جلوگیری از انتخاب متن هنگام کلیک سریع */
}

/* مخفی کردن چک‌باکس واقعی */
.option-wrapper input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* ظاهر کارت (دکمه) */
.option-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border: 2px solid var(--border-light);
    border-radius: 16px;
    padding: 15px 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100px; /* ارتفاع ثابت برای زیبایی */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* آیکون یا متن نمونه بالای کارت */
.opt-icon {
    font-size: 1.4rem;
    font-weight: 700;
    color: #94a3b8; /* رنگ طوسی غیرفعال */
    margin-bottom: 8px;
    font-family: monospace; /* فونت مخصوص کد */
    transition: color 0.3s;
}

/* متن توضیحات پایین کارت */
.opt-text {
    font-size: 1rem;
    color: #64748b;
    font-weight: 500;
    transition: color 0.3s;
}

/* --- حالت فعال (Checked) --- */

/* وقتی چک‌باکس تیک خورده، رنگ بردر کارت تغییر کند */
.option-wrapper input:checked + .option-card {
    background-color: var(--primary); /* رنگ آبی سایت */
    border-color: var(--primary);
    box-shadow: 0 10px 15px -3px rgba(17, 37, 72, 0.3);
    transform: translateY(-2px);
}

/* تغییر رنگ متن‌ها در حالت فعال */
.option-wrapper input:checked + .option-card .opt-icon,
.option-wrapper input:checked + .option-card .opt-text {
    color: #ffffff;
}

/* افکت هاور (زمانی که موس روی کارت است ولی کلیک نشده) */
.option-wrapper:hover .option-card {
    border-color: #cbd5e1;
}

/* وقتی تیک خورده و هاور میشود */
.option-wrapper:hover input:checked + .option-card {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

/* ریسپانسیو برای موبایل */
@media (max-width: 480px) {
    .option-card {
        height: 80px; /* در موبایل کمی کوتاه‌تر */
        padding: 10px;
    }
    .opt-icon {
        font-size: 1.1rem;
        margin-bottom: 4px;
    }
    .opt-text {
        font-size: 0.9rem;
    }
}






/* نگهدارنده بخش قدرت */
.strength-section {
    width: 100%;
    margin-top: 15px;
    padding: 0 5px;
}

/* نوار پس‌زمینه (خاکستری) */
.strength-bar-bg {
    width: 100%;
    height: 6px;
    background-color: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
    position: relative;
}

/* نوار رنگی پرشونده */
#strength-fill {
    height: 100%;
    width: 0%;
    background-color: #ef4444; /* قرمز پیش‌فرض */
    border-radius: 10px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.4s ease;
}

/* چیدمان متن قدرت و پیام کپی */
.strength-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 500;
    direction: rtl;
}

#strength-text {
    color: #64748b;
    font-size: 14px;
}

.copy-status {
    color: #10b981; /* سبز */
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
}












