
/* === Reset & Base === */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
}

/* 2. خلي الفورم يتمدد وياخذ المساحة */
main {
  flex: 1;
}
/* === Header Bar === */
.main-header {
  background-color: #f6f3ee;
  display: flex;
  justify-content: center; /* <-- هذا يجعل المحتوى في المنتصف */
  align-items: center;
  padding: 20px 20px;
  position: relative; /* عشان نقدر نرجع الايقونة اليمين */
}


.iau-logo-container {
  position: absolute;
  top: 20px; /* ارفعيه أكثر بتقليل الرقم */
  right: 30px;
}

.iau-logo {
  height: 60px; /* حجم مناسب غير ضخم */
}

/* === Header Title === */
.header-title h1 {
  font-size: 1.8rem;
  color: #002147;
  font-weight: bold;
  margin: 100;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.subheading {
  font-size: 1.6rem;
  color: #002147; /* كحلي رسمي */
  text-align: center;
  margin-top: 6px;
}


/* === Language Button === */
.language-switch {
  position: absolute;
  left: 30px;
  top: 40%;
  transform: translateY(-50%);
  font-size: 2.0rem;
  color: #002147 !important; /* إجبار اللون الكحلي */
  cursor: pointer;
}

.title {
    margin-bottom: 60px;
    margin-top: 30px;
}

/* === Calculator Card === */
.calculator-form {
  width: 800px;         /* ✅ العرض ثابت */
  margin: 20px auto;
  padding: 20px;
  background-color: #f6f3ee;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  height: auto; /* ✅ الارتفاع تلقائي */
    align-items: center;
}


/* === Labels === */
.form-label {
  font-weight: bold;
}


/* === Arabic Checkboxes === */
.form-check.arabic {
  direction: rtl;
  text-align: right;
}
.form-check.arabic .form-check-input {
  float: right;
  margin-left: 0.5rem;
  margin-right: 0;
}

/* === Countdown === */
.countdown {
  font-weight: bold;
  color: #d9534f;
  text-align: center;
  margin-bottom: 10px;
  font-size: 1rem;
}

/* === Footer === */
footer {
  background-color: #002147;
  color: white;
  padding: 15px 0;
  text-align: center;
  font-size: 0.9rem;
  position: relative;
  bottom: 0 ;
  right: 0;
  left: 0 ;
}

/* === Final Inputs === */
.input-group .form-control:disabled {
  background-color: #f8f9fa;
  font-weight: bold;
}

body[dir="ltr"] .form-check {
  direction: ltr;
  text-align: left;
}
body[dir="ltr"] .form-check-input {
  float: left;
  margin-right: 0.5rem;
}
body[dir="rtl"] .form-check {
  direction: rtl;
  text-align: right;
}
body[dir="rtl"] .form-check-input {
  float: right;
  margin-left: 0.5rem;
  margin-right: 0;
}

