* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  font-family: "Raleway", sans-serif;
  color: #000;
  font-size: 16px;
  min-height: 100vh;
}

.row {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.heading-secondary {
  color: #000;
  font-size: 32px;
  margin-bottom: 30px;
  text-align: center;
}

.subtitle {
  color: #d42028;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  text-align: center;
}

/* Header */
.header {
  padding: 15px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header__logo img {
  width: 100%;
  max-width: 146px;
}

.header__links {
  display: flex;
  gap: 20px;
}

.header-link img {
  width: 100%;
  max-width: 48px;
}

.header-link:hover img,
.footer-link:hover img,
.btn:hover {
  opacity: 0.5;
  transition: all 0.3 ease;
}

/* Main */

.main {
  padding: 50px 15px 60px 15px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  flex-direction: row-reverse;
}

.main__content .text {
  width: 70%;
  line-height: 18px;
  margin: 0 auto 60px auto;
  text-align: center;
}

/* Main img */

.main__img {
  margin-bottom: 30px;
  background-repeat: no-repeat;
  background-size: cover;
  max-height: 676px;
  min-height: 500px;
  width: 100%;
  background-position: center;
  margin-top: 193px;
}

/* Question */

.question {
  /* width: 85%; */
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 700;
}

.question::before {
  content: "";
  display: inline-block;
  width: 95px;
  height: 10px;
  background-color: #d22028;
  border-radius: 10px;
}

/* Scoring field */

.scoring-field {
  margin-bottom: 70px;
  margin-top: 40px;
  display: flex;
  gap: 15px;
  justify-content: center;
}

.scoring-field label {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.scoring-field input {
  width: 50px;
  height: 50px;
}

.scoring-field img {
  width: 65px;
  padding: 3px;
  border: 2px solid transparent;
}

.scoring-field label.active img {
  border: 2px solid #d22028;
}

/* Textarea */
.input-field--notes textarea {
  min-height: 160px;
  display: block;
  width: 100%;
  margin: 20px 0;
  font-family: "Raleway", sans-serif;
  padding: 10px;
  font-size: 16px;
  border-radius: 5px;
}

.main-form .error {
  color: #dc3545;
  font-size: 12px;
}

.btn-wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
}

.btn {
  color: #fff;
  background-color: #d22028;
  border-radius: 12px;
  padding: 15px 40px;
  border: none;
  font-weight: 600;
  font-size: 17px;
  text-transform: uppercase;
  cursor: pointer;
}

.thanks {
  color: #3f3f3f;
  font-weight: 900;
  margin: 0 auto;
}

/* FOOTER */

.section-footer {
  color: #000;
  background-color: #dddddd;
  padding: 30px 0;
}

.footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
  font-size: 20px;
  font-weight: 700;
}

.footer__address {
  display: flex;
  align-items: center;
  color: #000;
  text-decoration: none;
}

.footer__links {
  display: flex;
  gap: 20px;
}

.footer__addresstext {
  display: inline-block;
  margin-left: 10px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media only screen and (min-width: 768px) {
  .scoring-field {
    gap: 55px;
  }
}

@media only screen and (min-width: 965px) {
  .heading-secondary {
    text-align: initial;
  }

  .subtitle {
    text-align: initial;
  }

  .main {
    justify-content: space-between;
  }

  .main__content {
    width: 57%;
  }

  .main__content .text {
    margin: 0 0 60px 0;
    text-align: initial;
  }

  .main__img {
    margin-bottom: initial;
    margin-top: 200px;
    width: 40%;
  }

  .scoring-field {
    justify-content: flex-start;
  }
}
