.main-btn {
  border-radius: 100px;
  background-color: #ed1c24;
  padding: 0 24px;
  height: 48px;
  color: #fff;
  font-family: "Rubik", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 16px;
  box-shadow: none !important;
}
.ooredoo-postpaid-wrapper {
  margin-top: 135px;
}
* {
  box-sizing: border-box;
}

body {
  background-color: #ebf0f0;
}
@media (max-width: 820px) {
  body {
    background-color: #fff;
  }
}

.smooth-move {
  -webkit-transition: all 0.5s ease-in-out;
  transition: all 0.5s ease-in-out;
}

.family-apply-plans-wrapper {
  min-height: 100vh;
  padding-bottom: 200px;
}

.buy-family-form .container {
  max-width: 1000px;
}
@media (max-width: 820px) {
  .buy-family-form .container {
    max-width: 100%;
    padding: 0;
  }
}
@media (max-width: 820px) {
  .buy-family-form .row {
    margin: 0;
  }
  .buy-family-form .row > div {
    padding: 0;
  }
}

.buy-family-plan__header {
  margin-bottom: 40px;
}
.buy-family-plan__header button {
  background: none;
  box-shadow: none !important;
  cursor: pointer;
}
.buy-family-plan__header button img {
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  -o-object-fit: contain;
  object-fit: contain;
  display: -webkit-inline-box;
  display: inline-flex;
  margin-right: 24px;
}
.buy-family-plan__header h1 {
  color: #221e20;
  font-family: "Rubik", sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
  margin: 0;
}
.buy-family-plan__content {
  margin-bottom: 24px;
}
.buy-family-plan__title {
  color: #221e20;
  font-family: "Rubik", sans-serif;
  font-size: 36px;
  font-weight: 600;
  line-height: 44px;
  margin: 0 0 24px;
}
.buy-family-plan__desc {
  color: #221e20;
  font-family: "Noto Sans", sans-serif, Helvetica;
  font-size: 18px;
  font-weight: 400;
  line-height: 30px;
  margin: 0;
}
.buy-family-plan__form {
  background-color: #fff;
  padding: 32px 24px;
  border-radius: 12px;
}
.buy-family-plan__form .form-group {
  position: relative;
}
.buy-family-plan__form .form-group:not(:last-of-type) {
  margin-bottom: 30px;
}
.buy-family-plan__form .form-group:last-of-type {
  margin-bottom: 0;
}
.buy-family-plan__form .form-group .input-label,
.buy-family-plan__form .form-group .country-phone-code span {
  color: #6d6d6d;
  font-family: "Noto Sans", sans-serif, Helvetica;
  font-size: 15px;
  font-weight: 400;
  line-height: 16px;
  margin: 0;
}
.buy-family-plan__form .form-group .input-label {
  display: inline-block;
  background-color: #fff;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  position: absolute;
  top: 50%;
  left: 12px;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
}
.buy-family-plan__form .form-group input {
  border-radius: 8px;
  border: 1px solid #8f8f8f;
  background: #fff;
  height: 56px;
  padding: 16px 12px;
  box-shadow: none !important;
}
.buy-family-plan__form .form-group input:focus + .input-label,
.buy-family-plan__form .form-group input:valid + .input-label {
  top: 0;
}
.buy-family-plan__form .mobile-wrapper__field {
  width: 100%;
  margin-left: 12px;
  position: relative;
}
.buy-family-plan__form .country-phone-code {
  height: 56px;
  border-radius: 8px;
  border: 1px solid #8f8f8f;
  padding: 16px 12px;
}
.buy-family-plan__form .country-phone-code img {
  width: 24px;
  height: 24px;
  max-width: 24px;
  max-height: 24px;
  -o-object-fit: contain;
  object-fit: contain;
  margin-right: 8px;
}

.buy-family-plan__form .terms-label {
  border-radius: 4px;
  background-color: #d8eeea;
  padding: 4px;
}
.buy-family-plan__form .terms-label img {
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  -o-object-fit: contain;
  object-fit: contain;
  margin-right: 4px;
}
.buy-family-plan__form .terms-label p {
  color: #37534e;
  font-family: "Rubik", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  margin: 0;
}
.buy-family-plan__form .terms-label p a {
  color: #37534e !important;
  text-decoration: underline !important;
}

.terms-modal .modal-dialog {
  max-width: 700px;
}
.terms-modal .modal-header {
  padding: 35px 15px 10px;
  border: none;
}
.terms-modal .modal-title {
  color: #221e20;
  font-family: "Rubik", sans-serif;
  font-size: 26px;
  font-weight: 600;
  line-height: 32px;
  margin: 0;
}
.terms-modal button.close {
  padding: 0;
  margin: -5px 0 0;
  outline: 0 !important;
}
.terms-modal span {
  font-size: 30px;
}
.terms-modal .modal-body {
  color: #221e20;
  font-family: "Noto Sans", sans-serif, Helvetica;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.buy-family-summary {
  padding: 40px 24px;
  border-radius: 12px;
  border: 2px solid #aaa;
}
.buy-family-summary__title {
  color: #221e20;
  font-family: "Rubik", sans-serif;
  font-size: 26px;
  font-weight: 600;
  line-height: 32px;
  margin: 0 0 12px;
}
.buy-family-summary__items {
  border-top: 1px solid #cfcfcf;
  border-bottom: 1px solid #cfcfcf;
  padding: 20px 10px;
}
.buy-family-summary__item:not(:last-child) {
  margin-bottom: 20px;
}
.buy-family-summary .buy-family-plan__name {
  color: #221e20;
  font-family: "Noto Sans", sans-serif, Helvetica;
  font-size: 18px;
  font-weight: 400;
  line-height: 30px;
  margin: 0;
}
.buy-family-summary .buy-family-plan__price sub,
.buy-family-summary .buy-family-plan__price span {
  font-family: "Rubik", sans-serif;
  font-weight: 400;
}
.buy-family-summary .buy-family-plan__price sub {
  color: #898989;
  font-size: 12px;
  line-height: 16px;
  position: static;
}
.buy-family-summary .buy-family-plan__price span {
  color: #221e20;
  font-size: 20px;
  line-height: normal;
}
.buy-family-summary__details {
  padding: 18px 10px;
  border-bottom: 2px solid #221e20;
}
.buy-family-summary__details h4,
.buy-family-summary__details p {
  color: #221e20;
  font-family: "Noto Sans", sans-serif, Helvetica;
}
.buy-family-summary__details h4 {
  font-size: 18px;
  font-weight: 500;
  line-height: 30px;
  margin: 0 0 8px;
}
.buy-family-summary__details p {
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
  margin: 0;
}
.buy-family-summary__price {
  padding-top: 32px;
}
.buy-family-summary__price .total-label {
  color: #221e20;
  font-family: "Rubik", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}
.buy-family-summary__price .price-label sub,
.buy-family-summary__price .price-label span {
  font-family: "Rubik", sans-serif;
}
.buy-family-summary__price .price-label sub {
  color: #898989;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  position: static;
}
.buy-family-summary__price .price-label strong {
  color: #221e20;
  font-size: 26px;
  font-weight: 800;
  line-height: 34px;
}

.success-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999999;
  background-color: #ebf0f0;
}
.success-modal .row {
  height: 100%;
}
.success-modal .row > div {
  height: 100%;
  padding: 0;
}
.success-modal .row > div:first-child {
  background-color: #7adca4;
  border-top-right-radius: 20px;
}
.success-modal .row > div:last-child {
  background-color: #fdfdfd;
}
.success-modal__img img {
  width: 600px;
  height: 600px;
  max-width: 600px;
  max-height: 600px;
  -o-object-fit: contain;
  object-fit: contain;
}
.success-modal__body {
  margin: 65px;
  max-width: 362px;
}
.success-modal__header {
  background-color: #ebf0f0;
  padding: 16px 32px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}
.success-modal__header button {
  cursor: pointer;
  box-shadow: none;
  border: none;
  outline: 0;
}
.success-modal__header button img {
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  -o-object-fit: contain;
  object-fit: contain;
}
.success-modal__success-icon {
  margin-bottom: 40px;
}
.success-modal__success-icon img {
  width: 90px;
  height: 90px;
  min-width: 90px;
  min-height: 90px;
  -o-object-fit: contain;
  object-fit: contain;
}
.success-modal__title {
  color: #221e20;
  font-family: "Rubik", sans-serif;
  font-size: 36px;
  font-weight: 600;
  line-height: 44px;
  margin: 0 0 24px;
  width: 235px;
}
.success-modal__reference {
  font-weight: 700;
}
.success-modal__reference,
.success-modal__desc {
  color: #221e20;
  font-family: "Noto Sans", sans-serif, Helvetica;
  font-size: 16px;
  line-height: 24px;
  margin-bottom: 15px;
}
.success-modal__desc {
  font-weight: 400;
}
.success-modal__desc:last-of-type {
  margin-top: 40px;
}
.success-modal__ooredoo-app {
  text-decoration: none !important;
}
.success-modal__app-icon {
  margin-bottom: 5px;
}
.success-modal__app-icon img {
  width: 66px;
  height: 66px;
  min-width: 66px;
  min-height: 66px;
  -o-object-fit: contain;
  object-fit: contain;
}
.success-modal__app-label {
  color: #ed1c24 !important;
  font-family: "Noto Sans", sans-serif, Helvetica;
  font-size: 14px;
  font-weight: 600;
  line-height: normal;
  margin: 0;
}

@media (max-width: 820px) {
  .buy-family-plan__header {
    margin-bottom: 24px;
    -webkit-box-pack: justify;
    justify-content: space-between;
    padding: 15px;
    background-color: #ebf0f0;
  }
  .buy-family-plan__header h1 {
    font-size: 18px;
    line-height: 24px;
  }
  .buy-family-plan__header button img {
    margin: 0 !important;
  }
  .buy-family-plan__content {
    margin-bottom: 0;
    background-color: #fff;
    border-radius: 20px 20px 0 0;
    padding: 40px 24px 0;
  }
  .buy-family-plan__title {
    font-size: 28px;
    line-height: 37px;
  }
  .buy-family-plan__desc {
    font-size: 16px;
    line-height: 24px;
  }
  .buy-family-plan__form {
    border-radius: 0;
  }
  .buy-family-plan__form .fixed-form-content {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    background-color: #fff;
    border-radius: 20px 20px 0 0;
    padding: 32px 24px;
    box-shadow: 0px 6px 7px 7px #dddddd;
  }
  .buy-family-plan__form .fixed-form-content .plan-price {
    margin-bottom: 13px;
  }
  .buy-family-plan__form .fixed-form-content .plan-price > p {
    color: #221e20;
    font-family: "Rubik", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    margin: 0;
  }
  .buy-family-plan__form .fixed-form-content .plan-price .price-per-month {
    -webkit-box-align: end;
    align-items: flex-end;
  }
  .buy-family-plan__form .fixed-form-content .plan-price .price-per-month sub {
    color: #898989;
    font-family: "Rubik", sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    text-transform: uppercase;
    position: static;
  }
  .buy-family-plan__form
    .fixed-form-content
    .plan-price
    .price-per-month
    strong {
    color: #221e20;
    font-family: "Rubik", sans-serif;
    font-size: 26px;
    font-weight: 800;
    line-height: 34px;
  }
  .buy-family-plan__form .fixed-form-content .plan-price .price-per-month span {
    color: #898989;
    font-family: "Rubik", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
  }
  .buy-family-plan__form .terms-label {
    margin-bottom: 16px !important;
  }
  .success-modal .row {
    overflow-y: auto;
  }
  .success-modal .row > div {
    height: auto;
    position: static;
  }
  .success-modal .row > div:first-child {
    border-radius: 0 !important;
  }
  .success-modal__img img {
    width: 280px;
    height: 280px;
    max-width: 280px;
    max-height: 280px;
  }
  .success-modal__body {
    margin: 40px 24px;
    max-width: initial;
  }
  .success-modal__header {
    background: none;
    padding: 25px;
  }
  .success-modal__header button {
    background: none;
  }
  .success-modal__content {
    text-align: center !important;
  }
  .success-modal__success-icon {
    display: none;
  }
  .success-modal__title {
    font-size: 28px;
    line-height: 37px;
    width: 235px;
    margin: 0 auto 24px;
  }
  .success-modal__app-label {
    font-size: 12px;
    font-weight: 500;
  }
}

.invalid-message.qid-error {
  display: block;
  color: red;
  font-size: 12px;
  font-family: "Noto Sans", sans-serif, Helvetica;
}
.buy-family-plan__form .submit-btn.disabled {
  color: #bbb !important;
  border-color: #ddd !important;
  box-shadow: none !important;
  background: #eeefef !important;
  cursor: auto;
  pointer-events: none;
}
/* FORM */
.loading-overlay {
  position: relative;
}
.loading-overlay::after {
  position: absolute;
  content: "\f021";
  font-family: "FontAwesome";
  display: block;
  line-height: 30px;
  height: 30px;
  width: 30px;
  font-size: 31px;
  color: #f20000;
  z-index: 11;
  left: 50%;
  top: 50%;
  margin-left: -15px;
  text-align: center;
  animation: fa-spin 1.2s infinite linear;
}
.loading-overlay::before {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-color: rgba(255, 255, 255, 0.8);
  content: "";
  z-index: 10;
  border-radius: 10px;
}
.invalid-message.qid-error,
#errormsg {
  display: block;
  color: red;
  font-size: 12px;
  font-family: "Noto Sans", sans-serif, Helvetica;
}
#successmsg {
  display: block;
  color: green;
  font-size: 12px;
  font-family: "Noto Sans", sans-serif, Helvetica;
}
.buy-family-plan__form input.hasValue[required]:invalid {
  border: 1px solid red !important;
}
.form-group.invalid input {
  border-color: red !important;
}
.form-group {
  position: relative;
}
.form-group.invalid::after,
.form-group.valid::after {
  position: absolute;
  top: 7px;
  right: 7px;
  height: 34px;
  width: 34px;
}
.form-group.invalid::after {
  content: url(https://www.ooredoo.qa/web/wp-content/themes/ooredoo-cms/assets/images/input-error-icon.svg);
}
.form-group.valid::after {
  content: url(https://www.ooredoo.qa/web/wp-content/themes/ooredoo-cms/assets/images/input-success-icon.svg);
}
.success-modal {
  display: none;
}
