@import url("./reset.css");

/* fonts */
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Regular.ttf");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Medium.ttf");
  font-weight: 500;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-SemiBold.ttf");
  font-weight: 600;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "Graphik";
  src: url("../fonts/Graphik-Regular.woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Graphik";
  src: url("../fonts/Graphik-Medium.woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Graphik";
  src: url("../fonts/Graphik-SemiBold.woff2");
  font-weight: 600;
  font-display: swap;
}

* {
  box-sizing: border-box;
}
html,
body {
  width: 100%;
  height: 100%;
  min-height: 100%;
  font-family: "Graphik", sans-serif;
  font-weight: 400;
  font-size: 10px;
  color: #fff;
  background-color: #151617;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
a {
  color: inherit;
  text-decoration: none;
  font-size: 1.6rem;
}
input {
  background: none;
  border: none;
  outline: none !important;
}
button {
  font-family: "Inter", sans-serif;
  padding: 0;
  font-size: 1.6rem;
  background: none;
  color: #fff;
  border: none;
  cursor: pointer;
}

/* default styles */
.container {
  width: 100%;
  height: 100%;
  margin-inline: auto;
  padding: 0 1.6rem;
}

.title {
  font-weight: 600;
  line-height: 118.1%;
}
.title span {
  color: #c93030;
  white-space: nowrap;
}

.description {
  font-family: "Inter", sans-serif;
  font-weight: 500;
  line-height: 132.1%;
}
.description span {
  position: relative;
}
.description span::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #d03838;
}
.primary-button {
  background-color: #d03838;
  height: 4.8rem;
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 17px;
  border-radius: 3.09579px;
}
/* STYLES */

/* main section */
.main {
  position: relative;
  width: 100%;
  height: 41.9rem;
  padding-top: 8.7rem;
  background: url("../images/main-bg-img.webp") no-repeat center top;
  background-size: cover;
  z-index: 1;
}
.main-title {
  max-width: 34.3rem;
  margin-bottom: 2.4rem;
  font-size: 2.8rem;
}
.main-description {
  max-width: 34.3rem;
  font-size: 2rem;
}
.main-description strong {
  font-weight: inherit;
  position: relative;
}
.main-description img {
  width: 64px;
  height: 64px;
  position: absolute;
  right: -6.5rem;
  top: 0.7rem;
  transform: rotate(15deg);
}

/* offer section */
.offer {
  padding-bottom: 4.7rem;
}
.offer-form {
  position: relative;
  top: -10rem;
  padding: 2.5rem 2rem 2.8rem;
  background-color: #fff;
  border: 1px solid #f8f8f8;
  box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  z-index: 10;
}
.offer-form button {
  margin-top: 2.6rem;
}
.offer-form p {
  font-size: 1rem;
  line-height: 14px;
  letter-spacing: -0.02em;
  color: #9e9e9f;
  margin-top: 1.6rem;
}

.form-item {
  flex: 1;
  margin-bottom: 1.6rem;
}
.form-item:last-of-type {
  margin-bottom: 0;
}
.form-item label {
  display: inline-block;
  margin-bottom: 0.4rem;
  font-family: "Inter", sans-serif;
  font-size: 1.4rem;
  line-height: 130%;
  letter-spacing: -0.01em;
  color: #282c32;
}

.form-item input {
  width: 100%;
  padding: 1.6rem;
  font-family: "Inter", sans-serif;
  font-size: 1.4rem;
  background: #fff;
  color: #282c32;
  border: 1px solid #ececec;
  border-radius: 4px;
}
.form-item input::placeholder {
  color: #dbdbdb;
}
.form-item input:focus {
  border-color: #79808c;
}

.offer-title {
  margin-inline: auto;
  margin-bottom: 7.2rem;
  max-width: 50rem;
  font-size: 2.8rem;
  text-align: center;
}
.offer-cards {
  margin-bottom: 2.8rem;
  position: relative;
}
.offer-cards-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.6rem;
  padding: 2rem;
  font-size: 2rem;
  font-weight: 400;
  line-height: 132.1%;
  color: #151617;
  background-color: #fff;
  border: 1px solid #151617;
  border-radius: 4px;
}
.offer-cards-item:last-of-type {
  margin-bottom: 0;
}
/* .card1 {
  z-index: 1;
}
.card2 {
  position: relative;
  z-index: 2;
  top: -15rem;
}
.card3 {
  position: relative;
  z-index: 3;
  top: -28rem;
} */
.offer-card-num {
  width: 4.8rem;
  height: 4.8rem;
  border-radius: 100%;
  background: #ffe9e9;
  margin-bottom: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  font-weight: 600;
  line-height: 132.1%;
  color: #d03838;
}
.offer-card-description {
  text-align: center;
}
.offer-card-description span {
  white-space: nowrap;
  font-weight: 500;
  border-bottom: 1px solid #151617;
}
.offer button {
  width: 100%;
}

/* popup */
.popup-wrap {
  display: none;
  position: fixed;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  overflow: auto;
  background-color: rgba(000, 000, 000, 0.7);
  z-index: 11;
  padding: 0 16px;
}

.popup-show {
  display: flex;
  justify-content: center;
  align-items: center;
}
.popup-content {
  position: relative;
  padding: 40px;
  background: #313236;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.25);
}

.popup-content__congrats {
  display: none;
}
.popup-content__congrats .popup-desc {
  margin-bottom: 0;
}
.popup-title {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.2rem;
  font-size: 2rem;
  font-weight: 500;
  line-height: 132.1%;
}
.popup-title span {
  align-self: flex-start;
  border-bottom: 1px solid #fff;
}
.popup-title strong {
  font-weight: 500;
}
.popup-desc {
  margin-bottom: 2.8rem;
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 120%;
  letter-spacing: -0.02em;
  color: #979797;
}
.popup-content a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 58.4rem;
}
.popup-content a img {
  width: 1.9rem;
  height: auto;
  margin-right: 1rem;
}

.popup-content button {
  position: absolute;
  top: 1.9rem;
  right: 1.9rem;
}
.error-message {
  display: block;
  margin-top: 1rem;
  font-size: 1.2rem;
  color: #c93030;
}

/* /STYLES */

/* MEDIA QUERIES */
@media screen and (min-width: 576px) {
  .container {
    width: 54rem;
    padding: 0;
  }
}
@media screen and (min-width: 768px) {
  .container {
    width: 72rem;
  }
}
@media screen and (min-width: 992px) {
  .container {
    width: 96rem;
  }
  /* main section */
  .main {
    height: 54.3rem;
    padding-top: 14.2rem;
  }
  .main-title {
    max-width: 84.1rem;
    margin-bottom: 2rem;
    font-size: 4.4rem;
  }
  .description span::after {
    height: 4px;
  }
  .main-description {
    max-width: 63.8rem;
    font-size: 2.8rem;
  }
  .main-description img {
    width: 100px;
    height: 100px;
    right: -15rem;
    top: 1rem;
    transform: rotate(5deg);
  }
  /* offer section */
  .offer-form {
    top: -5rem;
    margin-bottom: 8rem;
  }
  form {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
  }

  .offer-form button {
    position: static !important;
    max-width: 18.8rem;
    margin-top: 0;
    height: 5.1rem;
    font-size: 1.6rem;
  }
  .form-item {
    margin-bottom: 0;
    margin-right: 1.6rem;
  }

  .offer-content {
    display: flex;
    flex-direction: column;
  }
  .offer-title {
    font-size: 5.6rem;
    max-width: 100%;
    margin-bottom: 5.6rem;
  }
  .offer-cards {
    margin-bottom: 0;
    display: flex;
    gap: 2rem;
    margin-bottom: 3.6rem;
  }
  .offer-cards-item {
    flex: 33%;
    /* max-width: 59.1rem; */
    margin: 0;
    align-items: flex-start;
    padding: 3.2rem 2rem;
  }
  .offer-card-description {
    text-align: start;
  }
  .offer-content button {
    max-width: 23.2rem;
    align-self: center;
  }

  /* popup */
  .popup-content {
    padding: 6rem 4rem;
  }
  .popup-title {
    font-size: 2.8rem;
  }
  .popup-desc {
    margin-bottom: 4rem;
    font-size: 2rem;
  }
}
@media screen and (min-width: 1200px) {
  .container {
    width: 114rem;
  }
}
@media screen and (min-width: 1400px) {
  .container {
    width: 132rem;
  }
}
/* /MEDIA QUERIES */
