body {
  background-color: #f3f3f3;
  overflow-x: hidden;
  min-height: 100dvh;
  padding-bottom: env(safe-area-inset-bottom);
}

html {
  overflow-x: hidden;
}

:root {
  --color-primary: var(--color-primary, #1b4533);
  --footer-height: 120px;
}

body.layout-dashboard main {
  padding-bottom: var(--footer-height);
}

.logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 40px;
  margin-bottom: 30px;
}

.logo-img {
  width: 200px;
  height: auto;
  /*border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);*/
  padding: 5px;
}

.logo-caption {
  font-size: 18px;
  color: #333;
  max-width: 30%;
  line-height: 1.3;
  margin-top: 30px;
}
h1 {
    text-align: center;   /* بیاره وسط صفحه */
    margin-bottom: 40px;  /* فاصله از پایین برای جدا شدن از محتوا */
}
.center-text-background {
  background-color: #ffffff;
  border: 1px solid #ccc;
  width: 100%;
  max-width: 420px;                 /* فرم رو محدود به یه اندازه منطقی کن */
  margin: 0 auto;            /* وسط‌چین */
  padding: 28px 24px;
  padding-bottom: 22px;
  border-radius: 22px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  margin-bottom: 100px;
}

.form-row {
  display: flex;                /* چیدمان افقی */
  align-items: center;          /* وسط‌چین عمودی label و input */
  justify-content: space-between;
  margin-bottom: 12px;
  margin-top: 12px;
  border-radius: 24px;
}

.form-row input {
  flex: 2;
  width: 50%;
  margin-inline: auto;
  padding: 6px 10px;
  font-size: 14px;
  border-radius: 18px;
  border: 1px solid #aaa;
}
.form-actions {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.form-control {
  width: 80% !important;
  max-width: 480px;
  border-radius: 24px;
}

.submit-btn {
  flex: 2;
  width: 50%;
  margin-inline: auto;
  background-color: var(--color-primary); /* رنگ اصلی مانا */
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  border: none;
  border-radius: 18px;
  padding: 8px 20px;
  cursor: pointer;
  transition: 0.2s all ease-in-out;
}

.submit-btn:hover {
  color: #f3f3f3; /* رنگ تیره‌تر هنگام hover */
  transform: translateY(-1px);
}

.submit-btn:active {
  color: #f3f3f3;
  transform: translateY(0);
}
.hero-title {
  font-size: 30px;
  font-weight: 700;
  color: #949494;
  text-align: center;
  margin-bottom: 30px;
}

.hero-title .name-highlight {
  color: #000000;          /* رنگ خاص برای متن "Mana Charity" */
  font-size: 32px;         /* کمی بزرگ‌تر از بقیه‌ی متن */
  font-weight: 700;        /* ضخیم‌تر */
  letter-spacing: 0.5px;   /* فاصله‌ی حروف برای تأکید */
}
.link-type {
  color: #000000;
  text-decoration: none;          /* رنگ خاص برای متن "Mana Charity" */
  font-size: 13px;         /* کمی بزرگ‌تر از بقیه‌ی متن */
  font-weight: 700;        /* ضخیم‌تر */
  letter-spacing: 0.5px;   /* فاصله‌ی حروف برای تأکید */
  margin-top: 10px;
  margin-bottom: 10px;
}

.link-type2 {
  color: #000000;
  text-decoration: none;
  font-size: 13px;         /* کمی بزرگ‌تر از بقیه‌ی متن */
  font-weight: 700; 
  margin: 0;
  text-align: center;
  display: block;
  max-width: 90%;
  margin-inline: auto;
  word-break: break-word;
}


.link-div {
  margin-top: 15px;
  margin-bottom: 15px;
  text-align: center;
}

.form-control.w-auto {
  width: 100%;
  max-width: 380px;
}

.date-input-wrapper {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 380px;
  margin-inline: auto;
}

.date-input-wrapper input {
  flex: 1;
  border-radius: 18px;
}

.calendar-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  background: #f0f0f0;
  border: 1px solid #aaa;
  border-left: none;
  border-radius: 18px 18px 0;
  color: #555;
  cursor: pointer;
}


.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  text-align: center;
  padding: 10px 16px;
  font-size: 13px;
  color: #333;
  z-index: 100;
}

.flash-container {
    margin: 15px 0;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 8px; 
    margin-top: 16px;
}
.alert {
    padding: 10px 10px;
    border-radius: 18px;
    margin-bottom: 8px;
    font-weight: 500;
}
.flash-container .alert {
    width: 100%;
    max-width: 420px;
    
}
.alert-success { background: #d4edda; color: #0c3b17; }
.alert-danger  { background: #f8d7da; color: #5c171e; }
.alert-warning { background: #fff3cd; color: #d88c00; }
.alert-info    { background: #d1ecf1; color: #084955; }

.birth-row {
  display: flex;
  align-items: center;   /* عموداً وسط */
  gap: 8px;              /* فاصله کم بین لیبل و اینپوت‌ها */
}

.birth-label {
  font-weight: 600;      /* فونت کمی سنگین‌تر */
  margin-bottom: 0;      /* فاصله اضافی پیش‌فرض لیبل */
  white-space: nowrap;  /* نشکنه */
}

.birth-inputs {
  flex: 1;               /* اینپوت‌ها عرض بگیرن */
}


@media (max-width: 768px) {

  body.layout-dashboard {
    --footer-height: 120px;
  }

  .center-text-background {
    max-width: calc(100% - 100px); /* 20px از هر طرف */
    padding: 20px 16px;
    padding-bottom: 20px;
    margin-bottom: 100px;
    border-radius: 24px;
  }
  
  .logo-container {
    margin-top: 30px;
    margin-bottom: 30px;
  }

  h2 {
    width: 60%;
    margin: 0 auto;        /* وسط‌چین واقعی */
    text-align: center;    /* متن وسط */
    line-height: 1.4;
  }

  .hero-title {
    font-size: 20px;
    margin-bottom: 40px;
  }

  .hero-title .name-highlight {
    font-size: 18px;         /* کمی بزرگ‌تر از بقیه‌ی متن */
    letter-spacing: 0.5px;   /* فاصله‌ی حروف برای تأکید */
  }

  .form-actions {
    display: flex;
    justify-content: center;
  }

  .form-row {
    display: flex;
    justify-content: center;
    flex-direction: column; /* چیدمان عمودی در موبایل */
    align-items: stretch;
    gap: 10px;
    border-radius: 24px;
  }

  .form-row input {
    width: 70%;
    margin-inline: auto;
    font-size: 16px;   /* خیلی مهم برای iOS */
    padding: 10px 12px;
    border-radius: 18px;
  }

  .form-control {
    width: 80% !important;
    max-width: none;
    border-radius: 24px;
  }

  .date-input-wrapper {
    width: 80%;
  }

  .logo-img {
    width: 145px; /* کوچیک‌تر روی موبایل */
    margin-bottom: 8px;
  }

  .logo-caption {
    max-width: 65%;
    font-size: 18px;
    text-align: center;
    margin-inline: auto;
    margin: 0 auto;        /* وسط‌چین واقعی */ 
    line-height: 1.4;
  }

  .hero-title {
    font-size: 25px;
    margin-bottom: 28px;
  }

  .submit-btn {
    width: 80%;
    margin-inline: auto;
    font-size: 15px;
    padding: 12px;
    border-radius: 18px;
  }

  .link-div {
    margin-top: 15px;
    margin-bottom: 15px;
    text-align: center;
  }

  .flash-container .alert {
        width: 80%;
        max-width: none;
    }

  body {
    padding: 0;
  }

.birth-row {
    flex-direction: column;
    align-items: center;   /* 👈 لیبل + inputs وسط افقی */
  }

  .birth-label {
    margin-bottom: 6px;
    text-align: center;    /* 👈 خود متن لیبل */
  }

.birth-inputs {
    width: 80%;     /* تو موبایل تمام عرض کارت */
    justify-content: center;
  }

}

@media (max-width: 480px) {
  .center-text-background {
    max-width: calc(100% - 32px); /* 16px از هر طرف */
    padding: 24px 18px;
    border-radius: 24px;
  }
}