/* ==================================================
   EWAY FORM
================================================== */

#eway-form {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  color: #3c3c3c;
  font-family: muli, sans-serif;
  box-sizing: border-box;
}

#eway-form *,
#eway-form *::before,
#eway-form *::after {
  box-sizing: border-box;
}


/* ==================================================
   MAIN TWO-COLUMN LAYOUT
================================================== */

#eway-form > .grid-x {
  display: flex;
  flex-flow: row wrap;
  width: 100%;
  margin: 0;
}

#eway-form > .grid-x > .cell {
  width: 100%;
  min-width: 0;
}


/* Tablet: 50 / 50 */

@media (min-width: 768px) {

  #eway-form > .grid-x {
    margin-right: -15px;
    margin-left: -15px;
  }

  #eway-form > .grid-x > .cell {
    padding-right: 15px;
    padding-left: 15px;
  }

  #eway-form > .grid-x > .medium-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }

  #eway-form > .grid-x > .medium-order-1 {
    order: 1;
  }

  #eway-form > .grid-x > .medium-order-2 {
    order: 2;
  }
}


/* Desktop: form 7/12 + steps 5/12 */

@media (min-width: 992px) {

  #eway-form > .grid-x > .large-7 {
    flex: 0 0 58.333333%;
    max-width: 58.333333%;
  }

  #eway-form > .grid-x > .large-5 {
    flex: 0 0 41.666667%;
    max-width: 41.666667%;
  }
}


/* ==================================================
   PAYMENT HEADER
================================================== */

#eway-form .payments-header {
  width: 100%;
  margin-bottom: 20px;
  padding: 10px 15px;
  background: #00a3da;
  color: #fff;
  font-family: muli-bold, sans-serif;
  font-size: 20px;
  line-height: 30px;
}

#eway-form .payments-header .sub {
  font-size: 13px;
  line-height: inherit;
}


/* ==================================================
   PAYMENT FORM
================================================== */

#payment-form {
  width: 100%;
  margin: 0;
  color: #3c3c3c;
}

#payment-form .field {
  width: 100%;
  margin-bottom: 18px;
}

#payment-form label {
  display: block;
  width: 100%;
  margin-bottom: 0;
  color: #00203f;
  font-weight: normal;
}

#payment-form input:not([type="submit"]),
#payment-form textarea,
#payment-form select,
#payment-form .selectBox-dropdown {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-top: 6px;
  border: 1px solid #d4d4d4;
  border-radius: 0;
  background: #fff;
  color: #3c3c3c;
  font-family: muli, sans-serif;
}

#payment-form input:not([type="submit"]),
#payment-form textarea,
#payment-form select {
  min-height: 44px;
  padding: 10px 15px;
}

#payment-form textarea {
  resize: vertical;
}

#payment-form small {
  display: block;
  margin-top: 6px;
  color: #3c3c3c;
  font-size: 13px;
  line-height: 1.4;
}

#payment-form h2,
#payment-form h3,
#payment-form h4,
#payment-form h5,
#payment-form h6 {
  color: #0f60ac;
}

#payment-form button[type="submit"],
#payment-form input[type="submit"] {
  display: inline-block;
  min-height: 48px;
  padding: 16px 36px;
  border: 0;
  border-radius: 0;
  background: #0f60ac;
  color: #fff;
  font-family: muli-bold, sans-serif;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

#payment-form button[type="submit"]:hover,
#payment-form button[type="submit"]:focus,
#payment-form input[type="submit"]:hover,
#payment-form input[type="submit"]:focus {
  background: #0b467d;
}

@media (min-width: 992px) {

  #payment-form button[type="submit"],
  #payment-form input[type="submit"] {
    min-width: 222px;
  }
}

@media (max-width: 767px) {

  #payment-form button[type="submit"],
  #payment-form input[type="submit"] {
    width: 100%;
  }
}


/* ==================================================
   PAYMENT STEPS
================================================== */

#eway-form #steps {
  position: relative;
  width: 100%;
  margin: 20px 0;
  padding: 20px;
  background: #f5f5f5;
}

#eway-form #steps::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 30px;
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-top: 20px solid #f5f5f5;
}

#eway-form #steps h2,
#eway-form #steps h3,
#eway-form #steps h4,
#eway-form #steps h5,
#eway-form #steps h6 {
  margin-top: 0;
  color: #00203f;
  font-family: muli-bold, sans-serif;
}

#eway-form #steps p {
  margin-bottom: 0;
  font-size: 16px;
  line-height: 1.5;
}

#eway-form #steps ul {
  margin: 20px 0;
  padding: 0;
  list-style: none;
}

#eway-form #steps li {
  position: relative;
  margin: 0 0 8px;
  padding: 20px;
  background: #e8e8e8;
  color: #3c3c3c;
  font-size: 18px;
  line-height: 1.4;
}

#eway-form #steps li::before,
#eway-form #steps li::after {
  content: "";
  position: absolute;
  left: 0;
  width: 0;
  height: 0;
  border-left: 40px solid transparent;
  border-right: 40px solid transparent;
}

#eway-form #steps li::before {
  top: 0;
  border-top: 18px solid #f5f5f5;
}

#eway-form #steps li::after {
  bottom: 0;
  z-index: 2;
  border-top: 18px solid #e8e8e8;
  transform: translateY(100%);
}

#eway-form #steps li:last-child::after {
  content: none;
}

#eway-form #steps li:first-child {
  background: #00a3da;
  color: #fff;
  cursor: pointer;
}

#eway-form #steps li:first-child::before {
  content: none;
}

#eway-form #steps li:first-child::after {
  border-top-color: #00a3da;
}

#eway-form #steps li:first-child span {
  color: #fff;
}

#eway-form #steps .steps__number {
  display: inline-block;
  flex: 0 0 100px;
  width: 100px;
  font-family: muli-bold, sans-serif;
  font-size: 18px;
}

#eway-form #steps .fill-below-left::before {
  content: "below";
}


/* Tablet */

@media (min-width: 768px) {

  #eway-form #steps li {
    display: flex;
    align-items: center;
    gap: 10px;
  }
}


/* Desktop */

@media (min-width: 992px) {

  #eway-form #steps {
    margin-top: 0;
    padding: 30px;
  }

  #eway-form #steps::before {
    top: 30px;
    left: 0;
    border-top: 20px solid transparent;
    border-bottom: 20px solid transparent;
    border-left: 0;
    border-right: 20px solid #f5f5f5;
    transform: translateX(-100%);
  }

  #eway-form #steps .fill-below-left::before {
    content: "to the left";
  }
}


/* ==================================================
   RECAPTCHA
================================================== */

#payment-form .g-recaptcha {
  max-width: 100%;
  overflow: hidden;
}


/* ==================================================
   DOLLAR AMOUNT
================================================== */

.PaymentForm__dollar-amount {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
}

.PaymentForm__dollar-amount input {
  flex: 1 1 0;
  min-width: 0;
  margin-left: 10px;
}

.PaymentForm__dollar-amount small {
  width: 100%;
}

@media (max-width: 767px) {

  .PaymentForm__dollar-amount {
    display: block;
  }

  .PaymentForm__dollar-amount input {
    width: 100%;
    margin-top: 6px;
    margin-left: 0;
  }
}