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

:root {
  --main-color-1: #202020;
  --main-color-2: #e6e6e6;
  --text-light: 300;
  --text-regular: 400;
  --text-bold: 700;
}

::selection {
  background-color: var(--main-color-2);
  color: var(--main-color-1);
}

html {
  font-size: 16px;
  font-family: "Roboto Condensed", sans-serif;
}

textarea {
  resize: none;
  overflow-y: auto;
}
input[type="text"],
input[type="email"],
input[type="tel"] {
  height: 50px;
}

input,
textarea {
  font-family: "Roboto Condensed", sans-serif;
  border: 1px solid var(--main-color-2);
  background-color: transparent;
  color: var(--main-color-2);
  margin: 5px;
  padding: 10px;
}

input::placeholder,
textarea::placeholder {
  font-family: "Roboto Condensed", sans-serif;
}

input:focus,
textarea:focus {
  outline: none;
}

.main {
  display: flex;
  justify-content: center;
  align-items: center;

  position: relative;

  width: 100%;
  height: 100vh;

  background-image: url("./images/bg-img-1.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;

  transition: all 0.4s ease;

  overflow-x: hidden;
}

.brand-logo {
  width: 7rem;
  position: absolute;
  top: 10px;
  left: 20px;
}

/* INFO CARD SECTION START */

.info-section {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  width: 80%;

  padding: 2rem;

  background-color: rgba(0, 0, 0, 0.6);

  /* backdrop-filter: blur(11px); */
}

.info-section img {
  padding-top: 2rem;
  display: block;
  margin: 0 auto;
  width: 19rem;
}
.info-section .content-wrapper {
  text-align: center;
}

.info-section .content-wrapper .title {
  font-size: 1.563rem;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  margin-bottom: 2rem;
}
.info-section .content-wrapper .content {
  font-size: 1.25rem;
  font-family: "Roboto", sans-serif;
  font-weight: 100;
}
.info-section p {
  color: var(--main-color-2);
  line-height: 169%;
}

.info-section .info-button-wrapper {
  text-align: center;
}

.info-section .open-form-btn {
  cursor: pointer;

  font-family: "Roboto";
  font-weight: 500;
  font-size: 1.304rem;

  border: none;
  background-color: var(--main-color-1);
  color: var(--main-color-2);

  padding: 1rem 2rem;

  transition: all 0.4s ease;
}

.info-section .open-form-btn:hover {
  box-shadow: 2px 2px 0px var(--main-color-2);
}

.info-section .open-form-btn:active {
  box-shadow: none;
  transform: translate(2px, 2px);
}
/* INFO CARD SECTION START */

/* Logo wrapper */

.logo-wrapper {
  position: relative;
  display: none;
  width: 100%;
  height: auto;
}

.logo-img-wrapper {
  text-align: center;
  width: calc(100% - 400px);
  transition: all 0.4s ease;
}
.logo-wrapper img {
  width: 23rem;
  transition: all 0.4s ease;
}

/* FORM START */

.form-section-wrapper {
  position: absolute;
  top: 0;
  right: -400px;
  min-height: 100%;
  background: var(--main-color-1);
  color: var(--main-color-2);
  transition: all 0.5s ease;
}

i.fa-x {
  cursor: pointer;
  top: 10px;
  left: 10px;
  position: absolute;
  font-size: 2rem;
}

.form {
  display: flex;
  flex-direction: column;

  width: 400px;
  padding: 0 10px;

  margin-top: 4rem;
}

.form h1 {
  font-weight: var(--text-regular);
  text-align: center;
  margin-bottom: 5px;
}

.form h2 {
  font-weight: var(--text-light);
  text-align: center;
  margin-bottom: 20px;
}

.form-checkbox-wrapper {
  margin: 1rem 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.form input[type="submit"] {
  color: var(--main-color-2);
  cursor: pointer;
  transition: all 0.4s ease;
}

.form input[type="submit"]:hover {
  background-color: var(--main-color-2);
  color: var(--main-color-1);
}

/* FORM START */

.form-logo-wrapper {
  display: none;
  margin-top: 2rem;
  text-align: center;
}
.form-logo-wrapper img {
  width: 14rem;
}

/* BREAKPOINTS MEDIA QUERIES */

@media screen and (max-width: 600px) {
  .brand-logo {
    display: none;
  }
  .info-section p {
    font-size: 1rem;
    line-height: 1.6rem;
  }

  .info-section .content-wrapper .title {
    font-size: 1.2rem;
  }
  .info-section .content-wrapper .content {
    font-size: 1rem;
    font-family: "Roboto", sans-serif;
    font-weight: 300;
  }

  .info-section .open-form-btn {
    font-size: 1.1rem;
  }
  .form-section-wrapper {
    height: fit-content;
  }
  .form {
    width: 300px;
  }
  .logo-img-wrapper {
    display: none;
  }
  .logo-wrapper img {
    width: 9rem;
  }
  .form-logo-wrapper {
    display: block;
  }
  .info-section img {
    width: 12rem;
  }
}

@media screen and (max-width: 790px) {
  .logo-img-wrapper {
    text-align: center;
    width: calc(100% - 400px);
  }
  .logo-wrapper img {
    width: 13rem;
  }
}
