/*****************************************************/
/******************* AGENCIES PAGE *******************/
/*****************************************************/

#agencies-header {
  background-image: url(../img/header_agency_small.webp);
}

#agencies-content {
  margin: 30px 0 0 0;
}

#agency-form-content {
  padding: 0 30px;
}

#agency-form-content h3 {
  font-size: 7.5rem;
  line-height: 6.5rem;
  font-weight: 900;
  color: #1a9da2;
}

#agency-form {
  margin: 30px 0 0 0;
}

#agency-selection input[type="radio"] {
  display: none;
}

#agency-selection {
  display: flex;
  flex-wrap: wrap;
}

#agency-selection label {
  width: 50%;
  padding: 10px 0;
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  color: #1a9da2;
  cursor: pointer;
  transition: all 0.3s ease-out;
}

#agency-selection input[type="radio"]:checked + label {
  color: #ffffff;
  background-color: #1a9da2;
}

#agency-form-location {
  display: flex;
  flex-wrap: wrap;
  padding: 15px;
  background-color: #1a9da2;
}

#agency-form-locate {
  width: 45px;
  height: 45px;
  background-color: #10676a;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url(../img/location_rth.svg);
  border: none;
  cursor: pointer;
}

#agency-form-location-post-code {
  display: flex;
  flex-wrap: wrap;
  width: calc(100% - 60px);
  margin: 0 0 0 15px;
}

#agency-form-post-code {
  width: calc(100% - 45px);
  padding: 0 5px;
  font-size: 2.5rem;
  line-height: 4.5rem;
  font-weight: 700;
  color: #1a9da2;
  text-align: center;
  border: none;
}

#agency-form-post-code::placeholder {
  color: #e4e4e4;
}

#agency-form-search {
  width: 45px;
  height: 45px;
  background-color: #ffffff;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url(../img/location_search_btn.svg);
  border: none;
  cursor: pointer;
}

.agency-form-article {
  position: relative;
  width: calc(100% - 60px);
  display: flex;
  flex-wrap: wrap;
  margin: 30px 0 0 30px;
  padding: 15px;
  background-color: #e4e4e4;
}

.agency-form-img {
  width: 40%;
}

.agency-form-infos {
  width: calc(60% - 15px);
  margin: 0 0 0 15px;
}

.agency-form-infos h2 {
  font-size: 2rem;
  line-height: 2rem;
  font-weight: 700;
  color: #a21a40;
}

.agency-form-infos p {
  margin: 15px 0 0 0;
}

.agency-form-infos p + p {
  margin: 7px 0 0 0;
}

.agency-form-phone,
.agency-form-mail,
.agency-form-location {
  padding: 0 0 0 30px;
  background-repeat: no-repeat;
  background-position: left center;
}

.agency-form-phone {
  background-image: url(../img/phone.svg);
}

.agency-form-mail {
  background-image: url(../img/mail.svg);
}

.agency-form-location {
  background-image: url(../img/location.svg);
}

.agency-form-phone a,
.agency-form-location a {
  text-decoration: none;
  color: #333333;
}

.agency-form-mail button {
  padding: 0;
  border: none;
  background-color: transparent;
  cursor: pointer;
}

.agency-form-location a {
  font-weight: 700;
}

.agency-form-link a {
  position: absolute;
  right: 31px;
  bottom: -15px;
  padding: 5px;
  line-height: 2rem;
  color: #ffffff;
  text-decoration: none;
  background-color: #1a9da2;
  transition: all 0.3s ease-out;
}

.agency-form-link a::before,
.agency-form-link a::after {
  content: "";
  position: absolute;
  top: 0;
  width: 0;
  height: 0;
  margin: 0;
  border-style: solid;
  transition: all 0.3s ease-out;
}

.agency-form-link a::before {
  left: -16px;
  border-width: 0 0 30px 16px;
  border-color: transparent transparent #1a9da2 transparent;
}

.agency-form-link a::after {
  right: -16px;
  border-width: 30px 16px 0 0;
  border-color: #1a9da2 transparent transparent transparent;
}

#agency-message {
  margin: 10px 0 0 0;
  padding: 10px;
  font-size: 2rem;
  line-height: 2.5rem;
  background-color: #ff9900;
  color: #ffffff;
  text-align: center;
}

#agency-description {
  width: calc(100% - 60px);
  margin: 30px 0 0 30px;
}

#agency-description p + p {
  padding: 15px 0 0 0;
}

#agency-description p b,
#agency-description p strong {
  font-weight: 700;
}

@media (min-width: 600px) {
  #agencies-header {
    background-image: url(../img/header_agency_medium.webp);
  }

  #agency-search-results {
    display: flex;
    flex-wrap: wrap;
  }

  .agency-form-article {
    width: calc(50% - 45px);
  }

  #agency-description {
    column-count: 3;
    column-gap: 30px;
  }
}

@media (min-width: 900px) {
  #agencies-header {
    background-image: url(../img/header_agency.webp);
  }

  #agencies-content {
    margin: 60px 0 0 0;
  }

  #agency-form-content {
    padding: 0 60px;
  }

  #agency-selection label {
    padding: 15px 0;
    font-size: 3rem;
    line-height: 3rem;
  }

  #agency-form-locate,
  #agency-form-search {
    width: 65px;
    height: 65px;
  }

  #agency-form-post-code {
    width: calc(100% - 65px);
    padding: 0 5px;
    font-size: 3.5rem;
    line-height: 6.5rem;
  }

  #agency-form-location-post-code {
    width: calc(100% - 80px);
  }

  #agency-search-results {
    padding: 0 30px;
  }

  .agency-form-article {
    margin: 60px 0 0 30px;
  }

  .agency-form-article:nth-child(n + 3) {
    margin: 30px 0 0 30px;
  }

  .agency-form-infos h2 {
    font-size: 2.75rem;
    line-height: 2.75rem;
  }

  .agency-form-infos p {
    font-size: 2rem;
  }

  .agency-form-infos p + p {
    margin: 15px 0 0 0;
  }

  .agency-form-link a {
    font-size: 2rem;
    padding: 10px;
    right: 39px;
  }

  .agency-form-link a::before {
    left: -23px;
    border-width: 0 0 40px 23px;
  }

  .agency-form-link a::after {
    right: -23px;
    border-width: 40px 23px 0 0;
  }

  #agency-description {
    width: calc(100% - 120px);
    margin: 60px 0 0 60px;
  }
}

@media (min-width: 1200px) {
  #agencies-content {
    margin: 120px 0 0 0;
  }

  #agency-form-content {
    max-width: 960px;
    padding: 0;
    margin: 0 auto;
  }

  #agency-form {
    margin: 60px 0 0 0;
  }

  #agency-selection label:hover {
    color: #ffffff;
    background-color: #10676a;
  }

  #agency-search-results {
    max-width: 1080px;
    margin: 0 auto;
  }

  .agency-form-article {
    margin: 60px 0 0 30px;
  }

  .agency-form-location a:hover {
    text-decoration: underline;
  }

  .agency-form-mail button:hover {
    text-decoration: underline;
  }

  .agency-form-link:hover a {
    background-color: #10676a;
  }

  .agency-form-link:hover a::before {
    border-color: transparent transparent #10676a transparent;
  }

  .agency-form-link:hover a::after {
    border-color: #10676a transparent transparent transparent;
  }

  #agency-description {
    max-width: 960px;
    margin: 120px auto 0;
  }
}
