.wp-block-group.alignwide.has-base-background-color.has-background.has-global-padding.is-layout-constrained.wp-block-group-is-layout-constrained {
  position: fixed;
  top: 0px;
}

body {
  font-family: inherit;
  margin: 0px;
  padding: 0px;
}

.main-wrapper-zakat-calculator {
  max-width: 100%;
  margin: 0px;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.header-image {
  object-fit: contain;
  width: 100%;
}

.header-container {
  display: flex;
  /* width: 100% !important; */
  margin: 0px !important;
  margin-bottom: 10px !important;
  padding: 100px;
  text-align: center;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  height: 100%;
  background: rgb(88, 114, 255);
  background: -moz-linear-gradient(180deg, rgba(88, 114, 255, 1) 0%, rgba(88, 114, 255, 0) 100%);
  background: -webkit-linear-gradient(180deg, rgba(88, 114, 255, 1) 0%, rgba(88, 114, 255, 0) 100%);
  background: linear-gradient(180deg, rgba(88, 114, 255, 1) 0%, rgba(88, 114, 255, 0) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#5872ff", endColorstr="#5872ff", GradientType=1);

  h1 {
    font-family: inherit;
    padding: 0px;
    margin: 0px;
    color: #fff;
    font-size: 50px;
  }

  h4 {
    font-family: inherit;
    margin: 10px 5px;
  }

  a {
    font-family: inherit;
    text-decoration: none;
    color: #fff;
    background: #3f51b5;
    padding: 10px 20px;
  }
}

.calculator-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  /* width: 1200px; */
  /* transform: translateX(-50%);
  position: relative;
  left: 50%; */

  .fields-main-container {
    width: 50%;
  }

  h2 {
    font-family: inherit;
    padding: 0px;
    margin: 0px;
  }

  h5 {
    font-family: inherit;
  }

  .assets-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    h5 {
      padding: 0px;
      margin: 0px;
      font-weight: normal;
      color: rgba(88, 114, 255, 1);
    }

    .row-calculator {
      padding: 0px 10px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      width: 100%;

      .field-container {
        width: 80%;
        padding: 10px;
        padding-left: 0px;

        label {
          margin-bottom: 5px;
          display: flex;

          small {
            background: rgba(88, 114, 255, 1);
            color: #fff;
            padding: 2px 10px;
            border-radius: 10px;
            margin-left: 10px;
            display: flex;
          }
        }

        input {
          display: block;
          width: 100%;
          padding: 10px 20px;
          font-size: 1rem;
          font-weight: 400;
          line-height: 1.5;
          color: #333;
          -webkit-appearance: none;
          -moz-appearance: none;
          appearance: none;
          background-color: #fff;
          background-clip: padding-box;
          border: 1px solid rgba(88, 114, 255, 1);
          border-radius: 50px;
          transition: border-color .15sease-in-out, box-shadow .15sease-in-out;
          font-family: poppins;
        }

        input::-webkit-outer-spin-button,
        input::-webkit-inner-spin-button {
          -webkit-appearance: none;
          margin: 0;
        }

        /* Firefox */
        input[type=number] {
          -moz-appearance: textfield;
        }
      }
    }
  }
}



.liabilities-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-top: 30px;

  h2 {
    font-family: inherit;
  }

  h5 {
    padding: 0px;
    margin: 0px;
    font-weight: normal;
    color: rgba(88, 114, 255, 1);
  }

  .row-calculator {
    padding: 0px 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    padding-left: 0px;

    .field-container {
      width: 80%;
      padding: 10px;
      padding-left: 0px;

      label {
        margin-bottom: 5px;
        display: block;

        span {
          background: rgba(88, 114, 255, 1);
          color: #fff;
          padding: 2px 10px;
          border-radius: 10px;
          margin-left: 10px;
        }
      }

      input {
        display: block;
        width: 100%;
        padding: .375rem .75rem;
        font-size: 1rem;
        font-weight: 400;
        line-height: 1.5;
        color: #333;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        background-color: #fff;
        background-clip: padding-box;
        border: 1px solid rgba(88, 114, 255, 1);
        border-radius: 10px;
        transition: border-color .15sease-in-out, box-shadow .15sease-in-out;
        padding: 10px 20px;
        border-radius: 50px;
        font-family: poppins;
      }

      input::-webkit-outer-spin-button,
      input::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
      }

      /* Firefox */
      input[type=number] {
        -moz-appearance: textfield;
      }
    }
  }
}

.zakat-due-container {
  display: flex;
  flex-direction: column;
  background: #dff0fd;
  padding: 30px;
  border-radius: 10px;
  height: 100%;
  position: sticky;
  top: 20px;
  box-shadow: 6px 6px 6px 0px #33333340;

  .zakat-due-amount {
    font-size: 32px;
    color: green;
    font-weight: bold;
    margin: 0px;
    margin-top: 20px;
  }

  h2 {}

  .zakat-due-inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    width: 100%;

    .zakat-due-amount {
    }

    .nisab-container {
      padding: 30px;
      margin-top: 30px;
      margin-bottom: 20px;
      background: white;
      border-radius: 10px;

      h3 {
        margin: 0px;
      }
    }

  }

  .donate-zakat-button {
    font-family: inherit;
    text-decoration: none;
    color: #fff;
    background: #3f51b5;
    padding: 10px 20px;
    text-align: center;
  }

}

.grid-formation {
  display: grid;
  grid-template-columns: 2fr 1fr;
  text-align: left;
}

@media(max-width: 768px) {
  .header-image {
    object-fit: contain;
    width: 100%;
    position: absolute;
    transform: translateX(-50%);
    left: 50%;
  }

  .header-container {
    padding: 50px 0px;

    h1 {
      text-align: center;
    }

    h4 {
      text-align: center;

    }
  }

  .liabilities-container h2,
  .liabilities-container h5,
  .assets-container h2,
  .assets-container h5 {
    text-align: center;

  }

  .assets-container {
    max-width: 100vw;

    .row-calculator {
      flex-direction: column !important;
    }
  }

  .liabilities-container {
    max-width: 100vw;

    .row-calculator {
      flex-direction: column !important;
    }
  }

  .calculator-container {
    width: unset;

    .assets-container {
      .row-calculator {
        .field-container {
          padding: 0px;
          margin-bottom: 10px;

          input {
            max-width: -webkit-fill-available;
          }

          label {
            width: 100%;
            display: grid;

            small {
              margin-left: 0px;
            }
          }
        }
      }
    }

    .liabilities-container {
      .row-calculator {
        .field-container {
          padding: 0px;
          margin-bottom: 10px;

          input {
            max-width: -webkit-fill-available;
          }

          label {
            width: 100%;
            display: grid;

            small {
              margin-left: 0px;
            }
          }
        }
      }
    }
  }

  .calculator-container {
    .row-calculator {
      justify-content: center;
      align-items: center;
      padding: 0px;
    }
  }

  .zakat-due-container {
    max-width: 100vw;
    text-align: center;

    .zakat-due-inner {
      flex-direction: column;
    }

    .nisab-container {
      margin-right: 0px !important;
      margin-bottom: 30px;
    }
  }

  .d-none-c {
    display: none;
  }

  .calculator-container {
    flex-direction: column;
    transform: unset;
    position: unset;
    left: unset;

    .fields-main-container {
      width: auto;
      display: flex;
      flex-direction: column;
    }
  }

  .main-wrapper-zakat-calculator {
    width: 100vw;
    max-width: unset;
    margin: unset;
    /* position: unset; */
    /* left: unset;
    transform: unset; */
  }
}