﻿/* === Contact Us section === */

html,
body {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  background: #334E6A;
}

html,
body,
.contact-form,
.form-confirmation-wrapper,
.form,
.form form,
.form .form-fields {
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
}

.contact-form {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 44px 62px 40px;
  background: #334E6A;
  border-radius: 12px;
}

.form-confirmation-wrapper {
  position: relative;
  display: block;
  width: 100%;
}

.form,
.success {
  width: 100%;
}

.form .form-fields {
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.form .form-fields li {
  position: relative;
}

.form .form-fields .list-label {
  margin: 18px 0 0;
}

.form .form-fields .list-label:first-child {
  margin-top: 0;
}

.form .form-fields .list-label label {
  position: relative;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 400;
  line-height: 18px;
}

.form .form-fields .list-label.required label::after {
  position: relative;
  content: "*";
  margin-left: 3px;
  color: #FFFFFF;
}

.form input.form-input,
.form textarea.form-input {
  width: 100%;
  border: 1px solid #CCD3DA;
  border-radius: 4px;
  background: transparent;
  color: #FFFFFF;
  font-size: 14px;
  line-height: 20px;
  outline: none;
  box-sizing: border-box;
}

.form input.form-input::placeholder,
.form textarea.form-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
  opacity: 1;
}

.form input.form-input::-webkit-input-placeholder,
.form textarea.form-input::-webkit-input-placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form input.form-input:-ms-input-placeholder,
.form textarea.form-input:-ms-input-placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form input.form-input {
  height: 44px;
  padding: 0 10px;
}

.form textarea.form-input {
  display: block;
  height: 123px;
  padding: 9px 10px;
  resize: none;
  overflow: auto;
}

.form .submit-button {
  display: block;
  width: 100%;
  height: 44px;
  margin-top: 20px;
  padding: 0 12px;
  background: linear-gradient(103deg, #FF4105 0%, #FF7A00 100%);
  border: none;
  border-radius: 0;
  color: #FFFFFF;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  line-height: 44px;
  text-align: center;
  text-transform: uppercase;
  box-sizing: border-box;
}

.form .submit-button:hover,
.form .submit-button:focus {
  background: linear-gradient(103deg, #FF4F12 0%, #FF8617 100%);
}

.form .submit-button .mobile {
  display: none;
}

@media screen and (max-width: 480px) {
  .contact-form {
    padding-right: 24px;
    padding-left: 24px;
  }
}

.success {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  min-height: 100%;
  background-color: #334E6A;
  border: 1px solid #CCD3DA;
  box-sizing: border-box;
}

@media screen and (max-width: 1280px) {
  .success {
    position: relative;
  }
}

@media screen and (max-width: 770px) {
  .success {
    padding: 0;
  }
}

.success.show {
  display: block;
}

.success .message-sent-text p.title {
  position: relative;
  margin: 0 0 25px;
  padding: 15px 15px 20px;
  color: #FFFFFF;
  font-size: 20px;
  font-weight: 600;
  line-height: 18px;
  border-bottom: 1px solid #CCD3DA;
}

.success .message-sent-text p.title::before {
  content: "";
  position: relative;
  display: inline-block;
  margin: 0 15px 0 0;
  width: 22px;
  height: 22px;
  top: 4px;
  background: url(images/tickIcon.svg) no-repeat transparent;
}

@media screen and (max-width: 770px) {
  .success .message-sent-text p.title {
    font-size: 14px;
    line-height: 18px;
    margin-bottom: 15px;
  }
}

.success .message-sent-text p {
  padding: 0 15px;
  color: #FFFFFF;
  font-size: 16px;
  line-height: 26px;
  margin-bottom: 30px;
}

@media screen and (max-width: 770px) {
  .success .message-sent-text p {
    font-size: 11px;
    line-height: 17px;
    margin-bottom: 20px;
  }
}

.success .message-sent-text .close {
  position: absolute;
  width: 22px;
  height: 22px;
  top: 21px;
  right: 15px;
  font-size: 0;
  color: transparent;
  background: url(images/crossIcon.svg) no-repeat transparent;
  cursor: pointer;
}

.form .form-error {
  display: block;
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  left: 10px;
  width: auto;
  max-width: calc(100% - 20px);
  margin: 0;
  padding: 8px 12px;
  color: #222222;
  font-size: 13px;
  font-weight: 400;
  line-height: 18px;
  white-space: normal;
  border: 1px solid #B8B8B8;
  border-radius: 4px;
  background: #FFFFFF;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
  box-sizing: border-box;
}

.form .form-error::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 16px;
  width: 12px;
  height: 12px;
  background: #FFFFFF;
  border-top: 1px solid #B8B8B8;
  border-left: 1px solid #B8B8B8;
  transform: rotate(45deg);
}

.form input.error {
  background: url(./images/off-sign-icon.svg) transparent no-repeat;
  background-position: right 15px center;
  border-color: #b94a48 !important;
}

.form input.valid {
  background: url(./images/check-boxon.svg) transparent no-repeat;
  background-position: right 15px center;
}
/* === Loading image for form === */

.loading-overlay {
  display: none;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-color: rgba(51, 78, 106, 0.6);
  z-index: 1;
}

.loading-overlay .loading-icon {
  position: absolute;
  left: calc(50% - 25px);
  top: calc(50% - 25px);
  width: 50px;
  height: 50px;
  background: url(images/loading-icon.png) no-repeat;
  background-size: contain;
  -webkit-animation: spin 1s linear infinite;
  -moz-animation: spin 1s linear infinite;
  animation: spin 1s linear infinite;
}

@-moz-keyframes spin {
  100% {
    -moz-transform: rotate(360deg);
  }
}

@-webkit-keyframes spin {
  100% {
    -webkit-transform: rotate(360deg);
  }
}

@keyframes spin {
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@media screen and (max-width: 770px) {
  .loading-overlay .loading-icon {
    top: 30%;
    left: calc(50% - 25px);
  }
}
