:root {
  --green: #83bb00;
  --green-dark: #577c00;
  --gray: #d8d9dd;
  --dark: #222224;
  --mid-gray: #585858;
  --text-gray: #8a8a8a;
  --border-gray: rgb(193 193 193);
}

/* ---------- Base ---------- */

body,
html {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background: #fff;
  color: var(--dark);
  font-family: "Roboto", sans-serif;
  text-align: center;
}

p {
  margin: 0;
  color: var(--mid-gray);
  font-size: 0.8125rem;
  text-align: center;
}

a {
  color: var(--mid-gray);
}

h1 {
  margin: 20px auto;
  color: grey;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 26px;
  text-align: center;

  &.arab {
    font-size: 2rem;
  }

  & span {
    font-size: 1.6rem;
    font-weight: 600;
  }
}

h2,
h3 {
  width: 100%;
  margin: 0 auto;
  font-size: 1.1em;
  font-weight: 400;
  line-height: 1.25rem;
  text-align: center;

  & span {
    display: block;
    font-weight: 600;
  }
}

h2 {
  margin: 15px auto;
  color: var(--mid-gray);
}

h4 {
  margin: 0;
  font-size: 0.5875rem;
  text-transform: uppercase;
}

/* ---------- Layout ---------- */

.wrap {
  position: relative;
  width: 100%;
  min-height: 100svh;
  margin: 0 auto;
  overflow-x: hidden;
  flex-direction: column;
  isolation: isolate;
  text-align: center;
}

.content {
  position: relative;
  width: 100%;
  margin: 0 auto 30px;
}

.main-img {
    width: 114px;
    max-width: 100%;
    height: 23px;
    object-fit: contain;
}

/* ---------- Header ---------- */

header {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 400px;
  height: 50px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;

  > div:first-child {
    flex: 1;
    text-align: left;
  }

  #menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }

  & p {
    padding: 0 8px;
    font-size: 12px;
    letter-spacing: -0.5px;
    text-align: right;
  }
}

.logo {
  display: flex;
  max-width: 50px;
  min-width: 40px;

  & img {
    width: 100%;
    height: auto;
    opacity: 0.4;
  }

  &.active .closed {
    display: none;
  }
}

.move-text {
  display: inline-block;
  color: var(--text-gray);
  font-weight: 700;
  text-align: left;
}

.right-header {
  display: flex;
  gap: 7px;
  align-items: center;
  right: 15px;
  top: -2px;
}

/* ---------- Language / exit ---------- */

.language_selector {
  text-align: center;

  & > a {
    color: var(--green);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
  }
}

.flag {
  display: flex;
  height: 20px;
}

.exit {
  display: flex;
  width: 40px;
  height: 25px;
  margin: 15px auto;
  padding: 5px 10px;
  box-sizing: border-box;
  border: none;
  border-radius: 5px;
  background-color: rgb(173 173 173);
  color: grey;
  font-size: 12px;

  & a {
    color: grey;
    font-size: 12px;
    text-decoration: none;
  }
}

/* ---------- Forms ---------- */

.input {
  display: block;
  width: 90%;
  max-width: 260px;
  margin: 10px auto;
  padding: 14px 10px 14px 65px;
  box-sizing: border-box;
  border: 2px solid var(--border-gray);
  border-radius: 5px;
  outline: 0;
  font-size: 20px;
  letter-spacing: 1.4px;

  &:focus {
    outline: 0;
  }

  &#msisdn {
    background: #fff url(../../images/DZ_GenericGreen_DV360/bg-input.png) no-repeat 10px 10px / 30px;
  }

  &.pin {
    max-width: 150px;
    padding-left: 30px;
    padding-right: 15px;
    background: url(../../images/DZ_GenericGreen_DV360/padlock.png) 8px 10px / 28px no-repeat #fff;
    text-align: center;

    &.complete {
      border-color: var(--green);
    }
  }
}

.input-group {
  position: relative;
}

.prefix {
  position: absolute;
  top: 15px;
  left: calc(50% - 110px);
  padding-left: 30px;
  color: var(--dark);
  font-size: 20px;
  font-weight: 400;
}

.pin-steps {
  display: none;
}

/* ---------- Buttons ---------- */

.btn {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 280px;
  height: 70px;
  margin: 0 auto 40px;
  padding: 10px;
  border: none;
  border-radius: 5px;
  outline: 0;
  background: var(--green);
  box-shadow: 0 5px 10px rgb(0 0 0 / 20%);
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  align-items: center;
  justify-content: center;
  transform-origin: 50% 50%;

  &.active {
    background: var(--green-dark);
  }
}

.bg {
  & .btn {
    margin-top: 30px;
  }

  & h1 {
    margin-top: 50px;
  }
}

/* ---------- Checkbox ---------- */

.check_container {
  display: flex;
  width: 90%;
  margin: 0 auto 15px;
  align-items: flex-start;
  justify-content: center;

  & input {
    width: 0;
    height: 0;
    margin: 2px;
    opacity: 0;
  }

  & label {
    position: relative;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    color: var(--mid-gray);

    & > span {
      display: flex;
      min-width: 24px;
      height: 24px;
      border: none;
      border-radius: 3px;
      color: var(--green-dark);
      justify-content: center;
      transition: all 0.3s;
    }
  }

  & p {
    max-width: 268px;
  }
}

.checkicon img {
  width: 15px;
  height: 12px;
}

.subscribe_text {
  & p {
    margin-left: 5px;
    font-size: 12px;
    line-height: 15px;
    text-align: left;
  }

  & a {
    color: var(--mid-gray);
  }
}

/* ---------- Small text ---------- */

.tariff,
.diclaimer {
  margin-top: 5px;
  color: #a8a8a8;
  font-size: 10px;
  line-height: 14px;
}

.tariff {
  margin-bottom: 10px;
  color: var(--mid-gray);

  & a {
    margin-top: 5px;
    color: #a8a8a8;
    font-size: 10px;
    line-height: 14px;
  }
}

.diclaimer {
  text-align: justify;
  text-align-last: center;
}

/* ---------- Footer ---------- */

footer {
  margin-top: 25px;
  padding-bottom: 10px;
  text-align: center;

  & a,
  & p {
    width: 90%;
    max-width: 520px;
    margin: 0 auto;
    color: #262626;
    font-family: "Roboto", sans-serif;
    font-size: 12px;
    line-height: 14px;
  }

  & a {
    text-decoration: underline;
  }
}

.footer {
  & p {
    margin-top: 20px;
    color: var(--mid-gray);
  }

  & a {
    color: var(--mid-gray);
  }
}

.container_footer {
  position: relative;
  margin-top: 25px;
  padding: 20px 15px 0;
  background: var(--green);
  color: white;
  text-align: center;
}

.footer_logo img {
  position: absolute;
  bottom: 30px;
  left: 50%;
  width: 60px;
  transform: translate(-50%);
}

/* ---------- Success checkmark ---------- */

.success-checkmark {
  width: 80px;
  height: 115px;
  margin: 0 auto 26px;

  & .check-icon {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 50px auto;
    box-sizing: content-box;
    border: 4px solid var(--green);
    border-radius: 50%;
    transform: scale(1.8);

    &::before,
    &::after {
      position: absolute;
      height: 100px;
      content: "";
      transform: rotate(-45deg);
    }

    &::before {
      top: 3px;
      left: -2px;
      width: 30px;
      border-radius: 100px 0 0 100px;
      transform-origin: 100% 50%;
    }

    &::after {
      top: 0;
      left: 30px;
      width: 60px;
      border-radius: 0 100px 100px 0;
      transform-origin: 0 50%;
    }
  }
}

.icon-circle,
.icon-fix,
.icon-line {
  position: absolute;
}

.icon-circle {
  top: -4px;
  left: -4px;
  z-index: 10;
  width: 80px;
  height: 80px;
  box-sizing: content-box;
  border: 4px solid var(--green);
  border-radius: 50%;
}

.icon-line {
  z-index: 10;
  height: 6px;
  border-radius: 2px;
  background-color: var(--green);

  &.line-tip {
    top: 46px;
    left: 14px;
    width: 25px;
    transform: rotate(45deg);
  }

  &.line-long {
    top: 38px;
    right: 8px;
    width: 47px;
    transform: rotate(-45deg);
  }
}

@keyframes loadingBorder {
  0% {
    transform: rotate(0deg);
    border-color: var(--green) transparent transparent transparent;
  }

  25% {
    border-color: var(--green) #98da00 transparent transparent;
  }

  50% {
    border-color: var(--green) #98da00 #a7ee00 transparent;
  }

  75% {
    border-color: var(--green) #98da00 #a7ee00 #b3ff00;
  }

  100% {
    transform: rotate(360deg);
    border-color: var(--green) transparent transparent transparent;
  }
}

@keyframes rotate-circle {
  0%,
  5% {
    transform: rotate(-45deg);
  }

  100%,
  12% {
    transform: rotate(-405deg);
  }
}

@keyframes icon-line-tip {
  0%,
  54% {
    top: 19px;
    left: 1px;
    width: 0;
  }

  70% {
    top: 37px;
    left: -8px;
    width: 50px;
  }

  84% {
    top: 48px;
    left: 21px;
    width: 17px;
  }

  100% {
    top: 45px;
    left: 14px;
    width: 25px;
  }
}

@keyframes icon-line-long {
  0%,
  65% {
    top: 54px;
    right: 46px;
    width: 0;
  }

  84% {
    top: 35px;
    right: 0;
    width: 55px;
  }

  100% {
    top: 38px;
    right: 8px;
    width: 47px;
  }
}

/* ---------- Spinner ---------- */

.spinner {
  position: relative;
  display: none;
  width: 1em;
  height: 1em;
  font-size: 40px;

  &.show {
    display: block;
    margin: 10px auto;
  }

  & .spinner-blade {
    position: absolute;
    bottom: 0;
    left: 0.4629em;
    width: 0.074em;
    height: 0.2777em;
    border-radius: 0.0555em;
    background-color: transparent;
  }
}

#spinner-overlay {
  display: flex;
  height: 60px;
  align-items: center;
  justify-content: center;

  & p {
    padding-left: 5px !important;
  }
}

.spinner3 {
  width: 10px;
  height: 10px;
  margin-right: 10px;
  border: 4px solid rgb(131 187 0 / 20%);
  border-top-color: var(--green);
  border-radius: 50%;
}

/* ---------- Errors ---------- */

.error {
  max-width: 280px;
  margin: 0 auto 15px;
  padding: 5px;
  border: 1px solid #d11212;
  border-radius: 5px;
  color: #d11212;
  font-size: 14px;
  line-height: 20px;

  &:empty {
    display: none;
  }

  &.white {
    border-color: #fff;
    color: #fff;
  }

  &.yellow {
    border-color: #efec00;
    color: #efec00;
  }

  &.black {
    border-color: #000;
    color: #000;
  }
}

/* ---------- Toggle / navigation ---------- */

input.toggle {
  display: none;

  & ~ div {
    height: 0;
    margin: 0.2rem;
    overflow: hidden;
    transition: 0.6s cubic-bezier(0.73, -0.485, 0.145, 1.62);
  }

  &:checked ~ div {
    height: 230px;
  }
}

.toggle {
  position: relative;
  z-index: 2000;
  display: flex;
  width: 28px;
  height: 22px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;

  & span {
    height: 3px;
    border-radius: 3px;
    background: black;
    transition: all 0.3s ease;
  }

  &.active {
    & span:nth-child(1) {
      z-index: 99999;
      background: white;
      transform: translateY(9px) rotate(45deg);
    }

    & span:nth-child(2) {
      opacity: 0;
    }

    & span:nth-child(3) {
      z-index: 99999;
      background: white;
      transform: translateY(-9px) rotate(-45deg);
    }
  }
}

.navigation {
  position: fixed;
  top: 0;
  right: -100%;
  z-index: 1500;
  display: flex;
  width: 75%;
  max-width: 300px;
  height: 100%;
  background: #111;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: right 0.4s ease;

  &.active {
    right: 0;
  }

  & ul {
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: center;
  }

  & li {
    margin: 15px 0;
  }

  & a {
    color: #148834;
    font-size: 1.1rem;
    text-decoration: none;
    transition: color 0.2s ease;

    &:hover {
      color: #fff;
    }
  }
}

/* ---------- Modals ---------- */

.modal {
  position: fixed;
  z-index: 9999;
  display: none;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0 0 0 / 75%);
  align-items: center;
  justify-content: center;

  &.active {
    top: 0;
    left: 0;
  }

  & h3 {
    margin-bottom: 10px;
  }

  & p {
    margin: 5px auto;
  }
}

.modal-content {
  position: relative;
  width: 80%;
  max-width: 600px;
  height: 60%;
  margin: 0 auto;
  padding: 20px;
  border: 1px solid #888;
  border-radius: 15px;
  background-color: #fefefe;
  overflow-y: scroll;

  & h2 {
    margin: 0;
    color: #000;
    font-size: 22px;
    line-height: 1;
    text-align: left;
  }

  & p {
    margin: 0 0 5px;
    color: #000;
    font-size: 14px;
    line-height: 20px;
    text-align: left;
  }

  & ol,
  & a {
    color: #000;
    font-size: 14px;
  }

  & ol {
    padding-left: 10px;
  }

  &.fullscreen {
    width: 90%;
    max-width: 800px;
    height: auto;
    margin: 50px auto;
    padding: 40px;
    border: none;
    border-radius: 10px;
    background-color: #111;
    color: #fff;
    overflow-y: auto;
    animation: fadeIn 0.3s ease;

    & h1 {
      margin-bottom: 20px;
      color: #148834;
      font-size: 1.8rem;
    }

    & p {
      color: #ddd;
      font-size: 1rem;
      line-height: 1.6;
      text-align: justify;
    }

    & a {
      color: #148834;
      text-decoration: none;

      &:hover {
        text-decoration: underline;
      }
    }

    & .close {
      margin-top: -10px;
      color: #fff;
    }
  }
}

.modal_GA {
  position: fixed;
  z-index: 1000;
  display: none;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  background-color: black;
  align-items: center;
  justify-content: center;
}

.close {
  z-index: 999;
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  line-height: 16px;
  cursor: pointer;
  float: right;

  &:hover,
  &:focus {
    color: #626262;
    text-decoration: none;
    cursor: pointer;
  }
}

.faq p {
  margin: 10px 0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Utilities ---------- */

.hidden {
  display: none !important;
}

.hide {
  display: none;
}

.links a {
  color: #4d4d4d;
  font-size: 12px;
  text-decoration: none;
}

p.links {
  margin: 0;
}

.features {
  max-width: fit-content;
  margin: 20px auto;
  padding: 0;
  list-style: none;
  font-size: 16px;
  text-align: left;

  & li {
    margin-bottom: 20px;

    &::before {
      margin-right: 10px;
      color: white;
      content: "✔";
    }
  }
}

.phone-image {
  position: relative;
  display: flex;
  width: 100%;
  margin: 0 auto;
  justify-content: center;

  & img {
    display: block;
    width: 100%;
    max-width: fit-content;
    margin: 0 auto;
  }
}