.w-layout-blockcontainer {
  max-width: 940px;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.w-layout-grid {
  grid-row-gap: 16px;
  grid-column-gap: 16px;
  grid-template-rows: auto auto;
  grid-template-columns: 1fr 1fr;
  grid-auto-columns: 1fr;
  display: grid;
}

/* Custom overrides */
.form-block .iti {
  width: 100%;
}

.form-block .iti .iti__tel-input {
  width: 100%;
  height: 56px;
  border-radius: 14px;
  border: 1px solid #ffffff;
  background-color: transparent;
  color: #ffffff;
  font-size: 18px;
  padding: 10px 16px 10px 70px;
}

.form-block .iti .iti__selected-flag {
  background-color: #041b54;
  border-top-left-radius: 14px;
  border-bottom-left-radius: 14px;
}

.form-block .submit-button {
  display: block;
  width: 100%;
  margin-top: 16px;
}

.form-block .iti__country-list {
  background-color: #041b54;
  color: #ffffff;
  border-color: #0a2a6c;
}

.form-block .iti__country {
  color: #ffffff;
}

.form-block .iti__country.iti__highlight {
  background-color: #f19100;
  color: #041b54;
}

.form-block .iti__country .iti__dial-code {
  color: #66c7ff;
}

@media screen and (max-width: 991px) {
  .w-layout-blockcontainer {
    max-width: 728px;
  }
}

@media screen and (max-width: 767px) {
  .w-layout-blockcontainer {
    max-width: none;
  }
}

.body {
  background-color: #03298a;
  background-image: url('../images/bg.jpg');
  background-position: 50% 0;
  background-repeat: no-repeat;
  background-size: auto;
  background-attachment: fixed;
}

.wrapper {
  width: 100%;
  max-width: 955px;
}

.header {
  grid-column-gap: 16px;
  grid-row-gap: 16px;
  grid-template-rows: auto;
  grid-template-columns: 1fr 1fr;
  grid-auto-columns: 1fr;
  display: grid;
}

.form {
  color: #fff;
  background-color: #000746b0;
  border-radius: 20px;
  flex-flow: column;
  justify-content: center;
  align-items: stretch;
  display: flex;
  box-shadow: 0 2px 14px 2px #0003;
}

.form-block {
  margin: 30px;
  font-family: Lato, sans-serif;
}

.submit-button {
  background-color: #ff8100;
  border-radius: 8px;
}

.text-field {
  color: #fff;
  background-color: #fff0;
  border-top: 1px solid #fff;
  border-radius: 10px;
  padding-top: 6px;
  padding-bottom: 6px;
}

.success-message,
.error-message {
  margin-top: 20px;
  padding: 18px 20px 18px 56px;
  border-radius: 14px;
  font-weight: 600;
  position: relative;
  display: none;
}

.success-message::before,
.error-message::before {
  content: "";
  width: 24px;
  height: 24px;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  background-size: 14px;
  background-repeat: no-repeat;
  background-position: center;
}

.success-message {
  color: #0b572c;
  background: linear-gradient(135deg, #9effb5, #5fe08c);
  border: 1px solid #36b966;
  box-shadow: 0 6px 18px #0b572c33;
}

.success-message::before {
  background-color: #0b572c;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='12' viewBox='0 0 16 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 6L5.5 10.5L15 1' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.error-message {
  color: #fff;
  background: linear-gradient(135deg, #ff7f7f, #ff4b4b);
  border: 1px solid #c62828;
  box-shadow: 0 6px 18px #c6282833;
}

.error-message::before {
  background-color: #c62828;
  background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 4V7.5' stroke='%23ffffff' stroke-width='2' stroke-linecap='round'/%3E%3Ccircle cx='7' cy='10' r='1' fill='%23ffffff'/%3E%3Ccircle cx='7' cy='7' r='6' stroke='%23ffffff' stroke-width='2'/%3E%3C/svg%3E");
}

@media screen and (max-width: 991px) {
  .wrapper {
    width: 100%;
    max-width: 955px;
  }

  .header {
    grid-column-gap: 0px;
    grid-row-gap: 0px;
    grid-template-rows: auto auto;
    grid-template-columns: 1fr;
    grid-auto-columns: 1fr;
    grid-auto-flow: row;
    place-items: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    display: grid;
  }

  .form {
    width: 100%;
    max-width: 530px;
    min-height: 471px;
    margin-top: 40px;
  }
}

@media screen and (max-width: 767px) {
  .img-content, .image {
    width: auto;
  }
}

@media screen and (max-width: 479px) {
  .header {
    margin-left: 0;
    margin-right: 0;
  }

  .form {
    width: 90%;
  }

  .img-wrapper {
    margin-left: auto;
    margin-right: auto;
    padding-left: 10px;
    padding-right: 10px;
  }

  .text-field {
    color: #fff;
    background-color: #fff0;
  }
}
