/* Global */
.flex {
  display: flex;
  align-items: center;
}
.col {
  flex: 1;
  padding: 0 20px;
}
.col:first-of-type {
  padding-left: 0;
}
.col:last-of-type {
  padding-right: 0;
}
@media (max-width: 699px) {
  .col {
    padding: 10px 0px;
  }
}

section {
  padding-top: 40px;
  padding-bottom: 40px;
}

/* The Modal (background) */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

/* Modal Content/Box */
.modal-content {
  position: relative;
  background-color: #fefefe;
  margin: auto;
  padding: 0;
  border: 1px solid #888;
  width: 80%;
  box-shadow: 0 4px 8px 0 rgb(0 0 0 / 20%), 0 6px 20px 0 rgb(0 0 0 / 19%);
  -webkit-animation-name: animatetop;
  -webkit-animation-duration: 0.4s;
  animation-name: animatetop;
  animation-duration: 0.4s;
  max-width: 460px;
  top: 10vh;
}

@media (max-width: 699px) {
  .modal-content {
    width: 90%;
    max-width: 100%;
  }
}

.modal-content .wrap {
  padding: 30px;
}

/* Add Animation */
@-webkit-keyframes animatetop {
  from {
    top: -100vh;
    opacity: 0
  }

  to {
    top: 10vh;
    opacity: 1
  }
}

@keyframes animatetop {
  from {
    top: -100vh;
    opacity: 0
  }

  to {
    top: 10vh;
    opacity: 1
  }
}

.modal-content h3 {
  text-align: left;
  margin-top: 0;
}

/* The Close Button */
.modal-close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  line-height: 0;
  margin-top: 20px;
  margin-right: 10px;
}

.modal-close:hover,
.modal-close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

/* Forms */
#consultation-form input:invalid, textarea:invalid {
  background-color: inherit;
}
#consultation-form {
  text-align: left;
  max-width: 400px;
}
@media (max-width: 599px) {
  #consultation-form {
    text-align: left;
    max-width: 100%;
  }
}
#consultation-form label {
  display: block;
  font-weight: bold;
  font-size: 15px;
}
#consultation-form input {
  border: 1px solid #ccc;
  padding: 5px;
  background: #fff;
  width: calc(100% - 10px);
  font-size: 15px;
}
#consultation-form textarea {
  width: 100%;
  font-size: 15px;
}
#consultation-form div {
  margin-bottom: 15px;
}

#error_message {
  width: 100%;
  height: 100%;
  text-align: left;
  margin-top: 30px;
  font-weight: bold;
  font-size: 14px;
}
@media (max-width: 479px) {
  #consultation-form .g-recaptcha {
    max-width: 215px;
    overflow: hidden;
    border-right: 1px solid #ddd;
    height: 76px;
    border-radius: 3px;
  }
}

/* Section 1 */
#section1 .title {
  font-size: 60px;
  line-height: 1;
  padding: 0;
  margin: 0;
  color: #fff;
  text-transform: uppercase;
  font-weight: 600;
  font-style: normal;
  max-width: 720px;
}

#section1 .sub-title {
  font-size: 49px;
  line-height: 1;
  padding: 0;
  margin: 0;
  color: #fd9e06;
  text-transform: uppercase;
  font-weight: 600;
  font-style: normal;
  max-width: 720px;
  margin-top: 20px;
}

@media (max-width: 699px) {
  #section1 .title {
    font-size: 40px;
  }
  
  #section1 .sub-title {
    font-size: 29px;
  }
}

#section1 .button {
  background: #fd9e06;
  color: #fff;
  margin-top: 30px;
}

#section1 .button:hover {
  background: #fff;
  color: #010042;
}

#section1 {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 50vh;
  padding: 0;
}
@media (max-width: 899px) {
  #section1 {
    min-height: calc(100vh - 75px);
  }
}

#section1::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: 50vvh;
  background-size: cover;
  background-image: url(../img/personal-trainer-chester.jpg);
  background-position: 50% 10%;
}

@media (max-width: 899px) {
  #section1::before {
    min-height: calc(100vh - 75px);
  }
}

#section1 .wrap {
  position: relative;
  height: 100%;
  min-height: 50vh;
  display: flex;
  background: rgba(0, 0, 0, 0.5);
  padding-top: 40px;
  padding-bottom: 40px;
}

@media (max-width: 899px) {
  #section1 .wrap {
    min-height: calc(100vh - 80px - 75px);
  }
}

/* Section 2 */
@media (max-width: 699px) {
  #section2 .flex {
    flex-direction: column-reverse;
    display: flex;
  }
}
#section2 img {
  border-radius: 999px;
}
#section2 .small {
  margin-top: 10px;
  margin-left: 15px;
}

/* Section 3 */
#section3 {
  background: #f5f5f5;
}
#section3 .wrap {
  max-width: 1280px;
}
#section3 blockquote {
  font-weight: bold;
  font-size: 18px;
  line-height: 1.4;
  background: #010042;
  color: #fff;
  padding: 30px;
  margin: 0;
}
#section3 .col {
  flex: auto;
}
#section3 .col:first-of-type {
  width: 55%;
}
#section3 .col:last-of-type {
  width: 45%;
}

@media (max-width: 1019px) {
  #section3 .flex {
    flex-direction: column;
  }
  #section3 .col {
    padding: 0 20px;
    width: calc(100% - 40px) !important;
  }
}

#section3 .button {
  background: #fd9e06;
  color: #fff;
  margin-top: 30px;
}

#section3 .button:hover {
  background: #fff;
  color: #010042;
}