@font-face {
  font-family: "PPRightDidone";
  src: url("fonts/PPRightDidone.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "PublicoBanner";
  src: url("fonts/PublicoBanner.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/Inter.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

:root {
  --midnight-blue: #35333f;
  --barolo-red: #8f243d;
  --light-blue: #cfddde;
  --mid-grey: #686670;
  --mid-grey-2: #404040;
  --map-grey: #f2f2f2;
}

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

body,
html {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Inter, sans-serif;
  background-color: var(--light-blue);
}

.container {
  position: relative;
  width: 100%;
}

.left {
  height: 100vh;
  padding: 24px;
  background-image: url(/img/map.png);
  background-size: cover;
}

.left .headings {
  display: inline-block;
  padding-bottom: 12px;
}

.left h1 {
  font-family: PPRightDidone;
  font-size: clamp(150px, 20vw, 310px);
  line-height: 0.8;
  font-weight: 400;
  margin: 0;
  color: var(--midnight-blue);
}
.left h1 span {
  color: var(--barolo-red);
}

.left h2 {
  font-family: PublicoBanner;
  font-size: clamp(19px, 2vw, 30px);
  line-height: 1.4;
  font-weight: 400;
  color: var(--mid-grey);
}
.left h2 span {
  color: var(--barolo-red);
}

.contact-button {
  padding: 20px 40px;
  font-size: 16px;
  color: white;
  background-color: var(--barolo-red);
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.right .contact-button {
  display: none;
}

.contact-form {
  display: none;
  width: 100%;
  color: var(--mid-grey);
}
.contact-form p {
  max-width: 50ch;
  font-size: 18px;
}

.right {
  padding: 24px;
  background-color: var(--map-grey);
}

.right .info {
  padding: 24px;
  border-radius: 4px;
  color: white;
  background-color: var(--barolo-red);
}
.right .info h3 {
  font-family: PublicoBanner;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 1px;
  line-height: 31px;
  text-align: center;
}
.right .info p {
  text-align: center;
}
.right .info p img {
  vertical-align: middle;
}

.overlay {
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: black;
  opacity: 0.4;
}
.overlay.visible {
  display: block;
}

.form-sent {
  display: none;
  position: absolute;
  top: 200px;
  left: 50%;
  transform: translateX(-50%);
  width: 345px;
  padding: 40px;
  color: var(--mid-grey);
  background-color: var(--light-blue);
}
.form-sent.visible {
  display: block;
}
.form-sent h2 {
  font-family: PublicoBanner;
  font-size: 30px;
  font-weight: 400;
  line-height: 42px;
}
.form-sent h2 span {
  color: var(--barolo-red);
}
.form-sent p {
  font-size: 22px;
}

.mobile-contact-form {
  display: none;
  position: absolute;
  top: 200px;
  left: 50%;
  transform: translateX(-50%);
  width: 345px;
  padding: 40px;
  color: var(--mid-grey);
  background-color: var(--light-blue);
}
.mobile-contact-form.visible {
  display: block;
}

.email-form .field {
  width: 100%;
  margin-bottom: 16px;
  padding: 16px;
  font-family: Inter, sans-serif;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-right: 10px;
  outline: none;
}
.email-form button {
  width: 100%;
  padding: 16px;
  font-family: Inter, sans-serif;
  font-size: 16px;
  line-height: 25px;
  color: white;
  background-color: var(--barolo-red);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-wrap: nowrap;
}

@media (min-width: 769px) {
  .container {
    display: flex;
    min-height: 100vh;
  }
  .left,
  .right {
    width: 50%;
    height: unset;
    padding: 40px;
  }
  .left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    background: none;
  }
  .left h2 {
    max-width: 30ch;
  }

  .left .contact-button {
    display: none;
  }
  .contact-form {
    display: block;
  }

  .email-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .form-row {
    display: flex;
  }
  .email-form .field {
    width: 100%;
    margin-bottom: 0;
    padding: 16px; //clamp(16px, 2vw, 24px);
    font-family: Inter, sans-serif;
    font-size: clamp(18px, 1.8vw, 22px);
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-right: 10px;
    outline: none;
  }
  .email-form button {
    flex: 0 0 50%;
    padding: 16px; //clamp(16px, 2vw, 24px);
    font-family: Inter, sans-serif;
    font-size: clamp(18px, 1.8vw, 22px);
    line-height: 25px;
    color: white;
    background-color: var(--barolo-red);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-wrap: nowrap;
  }

  .right {
    min-height: 100vh;
    padding: 0;
    background-image: url(/img/map.png);
    background-size: cover;
  }

  .right .contact-button {
    position: absolute;
    top: 40px;
    right: 40px;
    display: block;
    padding: 16px;
    font-size: clamp(18px, 1.8vw, 22px);
    transition: padding 0.1s, border-radius 0.1s;
  }
  .right .contact-button.active {
    padding: 20px 25px;
    border-radius: 99px;
  }
  .right .contact-button .open {
    display: none;
  }
  .right .contact-button.active .open {
    display: inline;
  }
  .right .contact-button.active .closed {
    display: none;
  }

  .right .info {
    overflow: hidden;
    position: absolute;
    top: 40px;
    right: 110px;
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
  }
  .right .info.visible {
    opacity: 1;
    pointer-events: all;
  }

  .form-sent {
    top: 50%;
    transform: translate(-50%, -50%);
  }
}

@media (min-width: 1024px) {
  .left {
    padding: 60px;
  }
  .email-form .field {
    padding: 20px;
  }
  .email-form button {
    padding: 20px 24px;
  }
  .right .contact-button {
    padding: 20px;
  }
}

@media (min-width: 1280px) {
  .left {
    padding: 80px;
  }
  .contact-form p {
    font-size: 22px;
  }
  .email-form .field {
    padding: 24px;
  }
  .email-form button {
    padding: 24px 36px;
  }
  .right .contact-button {
    padding: 24px;
  }
}

.hidden {
  visibility: hidden;
}
