@font-face {
  font-family: effra;
  src: url(../assets/fonts/Effra_Rg.ttf);
  font-weight: regular;
}

:root {
  --color-primary: #46978e;
  --color-primary-light: #6fb7af;
  --color-primary-dark: #1e6a62;
  --color-secondary-grey: #d3d3d3;
  --color-background: #f9f9f9;
  --color-white: #ffffff;
}

*,
*:before,
*:after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 62.5%;
}

a {
  text-decoration: none;
  color: inherit;
}

body {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 3rem;
  font-family: effra;
  font-size: 1.6rem;
  line-height: 1.5;
  color: #333;
  background-color: var(--color-background);
  min-height: 100vh;
}

.nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  height: 8rem;
  padding: 2.6rem 4rem;
}

.nafath_container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 90rem;
  height: max-content;
  padding: 2rem 4rem;
  gap: 2rem;
}

.nafath_title {
  font-weight: bold;
  font-size: 2rem;
}

.box {
  position: relative;
  width: 100%;
  min-height: 50rem;
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: start;
  border-radius: 0.5rem;
  background-color: var(--color-white);
  overflow: hidden;
}

.box_head {
  width: 100%;
  background-color: var(--color-primary);
  padding: 1.8rem;
  text-align: center;
  font-weight: bold;
  color: var(--color-white);
  text-shadow: 0px 4px 44px rgba(0, 0, 0, 0.25);
  font-size: 2rem;
}

.box_content {
  width: 100%;
  height: 100%;
  padding: 3.7rem;
  display: flex;
  justify-content: end;
  align-items: center;
  gap: 2rem;
  margin-top: 3rem;
}

.box_content_right {
  height: 100%;
  display: flex;
  flex: 1 0 30%;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.box_content_right-image {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.box_content_right-image img {
  width: auto;
  height: 80%;
  object-fit: cover;
  margin-top: -3rem;
  position: absolute;
  bottom: 0px;
  right: 0px;
  [dir="rtl"] & {
    left: 20px;
    right: auto;
  }
}

.box_content_right-power {
  position: absolute;
  bottom: 2rem;
  left:4rem;
  [dir="rtl"] & {
    right: 4rem;
    left:auto;
  }
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: start;
  gap: 0.5rem;
  font-size: 1.5rem;
  color: var(--color-secondary-grey);
}

.box_content_left-power {
  position: absolute;
  bottom: 2rem;

  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: start;
  gap: 0.5rem;
  font-size: 1.5rem;
  color: var(--color-secondary-grey);
  left:4rem;
  [dir="rtl"] & {
    right: 4rem;
    left:auto;
  }
}

.box_content_right-power div {
  display: flex;
  justify-content: start;
  align-items: center;
  gap: 1rem;
}

.box_content_left-power div {
  display: flex;
  justify-content: start;
  align-items: center;
  gap: 1rem;
}

.box_content_right-power div div {
  width: 9rem;
}

.box_content_left-power div div {
  width: 9rem;
}

.box_content_right-power div div img {
  width: 100%;
}

.box_content_left-power div div img {
  width: 100%;
}

/* Left Data */

.box_content_left {
  flex: 1 0 40%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: start;
  gap: 2rem;
}

.box_dynamic_data {
  width: 100%;
}

.data_form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: center;
  align-items: start;
}

.input_group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 90%;
}

.national_id_label,
.input_group label {
  font-size:18px;
  font-weight: bold;
  margin-bottom: 10px;
  color: black;
}

.input_group input {
  width: 100%;
  height: 5rem;
  border: 1px solid var(--color-secondary-grey);
  border-radius: 0.5rem;
  padding: 0 1rem;
  font-size: 1.5rem;
}

.input_group .error_state {
  border: 1px solid red;
}

.input_group p, .error-message {
  font-size: 1.5rem;
  color: red;
}

.form_button {
  width: 90%;
  height: 5rem;
  border: none;
  border-radius: 0.5rem;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-size: 1.6rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.25);
}

.form_button:hover {
  background-color: var(--color-primary-dark);
}

.form_button:focus {
  outline: none;
}

.input_group input:focus {
  outline: none;
  border: 1px solid var(--color-primary);
}

.input_group input::placeholder {
  color: var(--color-secondary-grey);
}

.box_downloads {
  font-size: 2rem;
  font-weight: lighter;
  color: var(--color-secondary-grey);
}

.box_downloads_apps {
  display: flex;
  justify-content: start;
  align-items: center;
  gap: 1rem;
}

.box_downloads_apps div {
  height: 2.5rem;
}

.box_downloads_apps div img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nafath_footer {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.nafath_footer_image {
  height: 100%;
}

.nafath_footer_image img {
  height: 100%;
}

.nafath_footer h3 {
  font-size: 1.5rem;
}

.nafath_footer p {
  font-size: 1.2rem;
}

.step_two_data {
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: start;
  font-weight: bold;
  gap: 2rem;
  font-size: 1.8rem;
}

.step_two_data a {
  color: #41454E;
  font-weight: bold;
}

.primary_focus {
  color: #141414;
  font-weight: bold;
  font-size: 1.9rem;
}

.random_number {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 2rem;
  border: 1px solid var(--color-primary);
  background-color: #46978E1A;
  color:var(--color-primary);
  border-radius: 0.5rem;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.container {
  width: 100%;
}

.box_done {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.back_button {
  width: 100%;
}

.back_button a {
  font-size: 1.7rem;
  color: var(--color-primary);
  font-weight: bold;
  text-decoration: underline;
  display: flex;
  justify-content: start;
  align-items: center;
  gap:10px
}

.back_button a div {
  width: 2rem;
  height: 2rem;
}

.back_button a img, .back_button a svg  {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin-right: 1rem;
}

.done_content {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.done_message {
  font-size: 2rem;
  font-weight: bold;
  color: #121722;
}

.reload_text {
  font-size: 1.7rem;
  color: var(--color-secondary-grey);
  margin-bottom: 12rem;
}

.reload_text a {
  color: var(--color-primary);
  font-weight: bold;
}

.redirect_text {
  font-size: 1.7rem;
  margin-bottom: 1rem;
  font-weight: bold;
}

.redirect_text span {
  color: var(--color-primary);
  font-weight: bold;
}

.rejected_message {
  font-size: 4rem;
  font-weight: bold;
  color: red;
}

.rejected_content button, .rejected_content .button {
  padding: 1.2rem 4rem;
  border: 1px solid var(--color-primary);
  border-radius: 0.5rem;
  font-size: 1.6rem;
  color: var(--color-primary);
  background-color: transparent;
  font-weight: bold;
  cursor: pointer;
}

.expired_message {
  font-size: 4rem;
  font-weight: bold;
  color: black;
}

/* Media Queries */

@media screen and (max-width: 1366px) {
  body {
    gap: 0;
  }

  html {
    font-size: 50%;
  }

  .nafath_container {
    width: 800px;
    height: 90vh;
  }

  .box {
    min-height: 60rem;
  }

  .box_content_right {
    flex: 1 0 40%;
    padding-bottom: 2rem;
  }

  .box_content_right-power {
    font-size: 1.2rem;
  }
  .box_content_left-power {
    font-size: 1.2rem;
  }

  .box_content_right-power div {
    gap: 0.5rem;
  }

  .box_content_left-power div {
    gap: 0.5rem;
  }

  .box_content_right-power div div {
    width: 7rem;
  }

  .box_content_left-power div div {
    width: 7rem;
  }

  .box_content_right-image {
    height: 100%;
  }

  .box_content_right-image img {
    margin-top: -1rem;
  }

  .box_content_left {
    flex: 1 0 60%;
  }

  .box_downloads {
    font-size: 1.5rem;
  }

  .box_downloads_apps {
    gap: 0.5rem;
  }

  .box_downloads_apps div {
    height: 2rem;
  }

  .box_downloads_apps div img {
    height: 100%;
  }

  .nafath_footer {
    gap: 0.5rem;
  }

  .nafath_footer_image {
    height: 2rem;
  }

  .nafath_footer_image img {
    height: 100%;
  }

  .nafath_footer h3 {
    font-size: 1.2rem;
    text-align: start;
  }

  .nafath_footer p {
    font-size: 1rem;
  }
}

@media screen and (max-width: 1280px) {
  body {
    gap: 0;
  }

  html {
    font-size: 50%;
  }
  .nafath_container {
    width: 800px;
    height: 90vh;
  }

  .box_content_right {
    flex: 1 0 40%;
    height: 80%;
  }

  .box_content_right-power {
    font-size: 1.2rem;
  }

  .box_content_right-power div {
    gap: 0.5rem;
  }

  .box_content_right-power div div {
    width: 7rem;
  }

  .box_content_right-image {
    height: 100%;
  }

  .box_content_right-image img {
    margin-top: -1rem;
  }

  .box_content_left {
    flex: 1 0 60%;
  }

  .box_downloads {
    font-size: 1.5rem;
  }

  .box_downloads_apps {
    gap: 0.5rem;
  }

  .nafath_footer {
    /* flex-direction: column; */
    gap: 0.5rem;
    align-items: left;
    justify-content: center;
    text-align: left;
    gap:10px
  }

  .nafath_footer_image {
    height: 100%;
  }

  .nafath_footer_image img {
    height: 100%;
  }

  .nafath_footer h3 {
    font-size: 1.5rem;
  }

  .nafath_footer p {
    font-size: 1.2rem;
  }
}

@media screen and (max-width: 1024px) {
  html {
    font-size: 50%;
  }

  body {
    gap: 2rem;
  }

  .nafath_container {
    width: 700px;
    padding: 1rem;
  }

  .nafath_title {
    font-size: 1.7rem;
  }

  .box_content_right {
    flex: 1 0 40%;
  }

  .box_content_left {
    flex: 1 0 60%;
  }

  .box_content_right-power {
    font-size: 1.2rem;
  }

  .box_downloads {
    font-size: 1.5rem;
  }

  .box_downloads_apps {
    gap: 0.5rem;
  }

  .nafath_footer {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .nafath_footer_image {
    height: 100%;
  }

  .nafath_footer_image img {
    height: 100%;
  }

  .nafath_footer h3 {
    font-size: 1.2rem;
  }

  .nafath_footer p {
    font-size: 1rem;
  }

  .data_form {
    gap: 1rem;
  }

  .input_group label {
    font-size: 1.5rem;
  }

  .input_group input {
    height: 4rem;
    font-size: 1.2rem;
  }

  .form_button {
    height: 4rem;
    font-size: 1.2rem;
  }

  .box_content_right-power div {
    gap: 0.5rem;
  }
}

@media screen and (max-width: 767px) {
  html {
    font-size: 50%;
  }
  .nafath_container {
    width: 100%;
    height: 60%;
  }

  .nafath_title {
    font-size: 1.5rem;
  }

  .box_head {
    font-size: 1.2rem;
    padding: 1.5rem;
  }
  .box_content_right {
    display: none;
  }

  .box_content_left {
    flex: 1 0 60%;
  }

  .box_content_right-power {
    font-size: 1.2rem;
  }

  .box_downloads {
    font-size: 1.5rem;
    text-align: center;
  }

  .box_downloads_apps {
    gap: 0.5rem;
  }

  .nafath_footer {
    /* flex-direction: column; */
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .nafath_footer_image {
    height: 100%;
  }

  .nafath_footer_image img {
    height: 100%;
  }

  .nafath_footer h3 {
    font-size: 1.2rem;
  }

  .nafath_footer p {
    font-size: 1rem;
  }

  .data_form {
    gap: 1rem;
    width: 100%;
  }

  .input_group {
    width: 100%;
  }

  .input_group label {
    font-size: 1.5rem;
  }

  .input_group input {
    height: 4rem;
    font-size: 1.2rem;
  }

  .form_button {
    height: 4rem;
    width: 100%;
    font-size: 1.2rem;
  }

  .box_content_right-power div {
    gap: 0.5rem;
  }
}
