/* ========== Hero Section ========== */
/* Figma: 1440x904, single background image, text right-aligned */
.landing-hero {
  position: relative;
  width: 100%;
  height: 904px;
  overflow: hidden;
}

.landing-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.landing-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.landing-hero__bg--placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    160deg,
    #e8e4dc 0%,
    #d5d1c9 40%,
    #c8c4bc 70%,
    #bfbbb3 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-family: "Alright Sans", sans-serif;
  font-size: 16px;
  font-weight: 200;
}

/* Text block: positioned right side, vertically centered */
/* Figma: left 780px, top 386px, width 522px, gap 33px */
.landing-hero__text {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: 138px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 33px;
  width: 522px;
  max-width: calc(100% - 166px);
}

.landing-hero__heading {
  font-family: "Forum", serif;
  font-size: 60px;
  font-weight: 400;
  line-height: normal;
  color: #000;
  margin: 0;
}

.landing-hero__description {
  font-family: "Alright Sans", sans-serif;
  font-size: 24px;
  font-weight: 200;
  line-height: normal;
  color: #000;
  margin: 0;
}

/* Mobile image: hidden by default, shown only on mobile */
.landing-hero__mobile-img {
  padding-top: 128px;
  display: none;
}

.landing-hero__mobile-img img {
  width: 100%;
  display: block;
}
/* Figma: bg #e8e8e8, flex row, items-center, justify-between, padding 150px H / 80px V */
.landing-guide {
  background-color: #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 80px 150px;
}

/* Left info: width 540px, padding-right 70px, flex column, gap 40px */
.landing-guide__info {
  flex: 0 0 540px;
  padding-right: 70px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  justify-content: center;
  color: #000;
}

/* Title: Forum Regular, 40px */
.landing-guide__title {
  font-family: "Forum", serif;
  font-size: 40px;
  font-weight: 400;
  line-height: normal;
  margin: 0;
}

/* Body text: Alright Sans Sans Light, 20px */
.landing-guide__text {
  font-family: "Alright Sans", sans-serif;
  font-size: 20px;
  font-weight: 200;
  line-height: 1.4;
  color: #000;
}

.landing-guide__text p {
  margin: 0 0 20px;
}

.landing-guide__text p:last-child {
  margin-bottom: 0;
}

.landing-guide__feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.landing-guide__feature-item::before {
  content: "";
  flex-shrink: 0;
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18' fill='none'%3E%3Cpath d='M3 9.5l4 4 8-8' stroke='%23282828' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* Form card: flex 1, bg #fbfbfb, border white, padding 70px, overflow hidden */
.landing-guide__form-wrapper {
  flex: 1;
  background: #fbfbfb;
  border: 1px solid #fff;
  padding: 70px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Decorative "A" watermark: absolute, top -49px, right area, 339x278, opacity 4% */
.landing-guide__form-wrapper::before {
  content: "";
  position: absolute;
  top: -49px;
  right: -110px;
  width: 339px;
  height: 278px;
  background-image: url("../img/structures-alair-logo.svg");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  pointer-events: none;
}

/* Form heading: Forum Regular, 34px, color #282828 */
.landing-guide__form-heading {
  font-family: "Forum", serif;
  font-size: 32px;
  font-weight: 400;
  line-height: normal;
  color: #282828;
  margin: 0;
}

/* Inputs container: flex column, gap 30px */
.landing-guide__form,
.gform_body .gform_fields {
  display: flex !important;
  flex-direction: column !important;
  gap: 30px !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* GF field item reset */
.gform_fields .gfield {
  margin: 0 !important;
  padding: 0 !important;
}

/* GF label: already screen-reader-text, ensure hidden visually */
.gfield_label.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* Inputs: bg white, border #ebebeb, border-radius 9px, padding 15px 14px */
.landing-guide__input,
.gform_fields .gfield input[type="text"],
.gform_fields .gfield input[type="email"],
.gform_fields .gfield input[type="tel"],
.gform_fields .gfield input[type="number"],
.gform_fields .gfield input[type="url"] {
  width: 100% !important;
  height: auto !important;
  padding: 5px 14px !important;
  border: 1px solid #ebebeb !important;
  border-radius: 9px !important;
  background: #fff;
  font-family: "Alright Sans", sans-serif;
  font-size: 16px !important;
  font-weight: 200;
  color: #282828 !important;
  outline: none;
  transition: border-color 0.2s;
}

.landing-guide__input::placeholder,
.gform_fields .gfield input::placeholder {
  color: #b4b4b4;
}

.landing-guide__input:focus,
.gform_fields .gfield input:focus {
  border-color: #282828;
}

.landing-guide__select,
.gform_fields .gfield select {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border: 1px solid #ebebeb;
  border-radius: 9px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23b4b4b4' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  font-family: "Alright Sans", sans-serif;
  font-size: 16px;
  font-weight: 200;
  color: #282828;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
}

.landing-guide__select:focus,
.gform_fields .gfield select:focus {
  border-color: #282828;
}

.landing-guide__select.placeholder {
  color: #b4b4b4;
}

/* Button: height 60px, border #282828, rounded 2px, letter-spacing 4.2px */
.gform-footer input[type="submit"],
.gform_footer input[type="submit"],
.landing-guide__button {
  display: block !important;
  width: 100% !important;
  height: 60px !important;
  padding: 5px 30px !important;
  border: 1px solid #282828 !important;
  border-radius: 2px !important;
  background: transparent !important;
  box-shadow: none !important;
  cursor: pointer !important;
  font-family: "Alright Sans", sans-serif !important;
  font-size: 14px !important;
  font-weight: 200 !important;
  color: #282828 !important;
  text-transform: uppercase !important;
  letter-spacing: 4.2px !important;
  line-height: 30px !important;
  text-align: center !important;
  transition:
    background-color 0.3s,
    color 0.3s !important;
}

.gform-footer input[type="submit"]:hover,
.gform_footer input[type="submit"]:hover,
.landing-guide__button:hover {
  background-color: #282828 !important;
  color: #fff !important;
}

/* ========== Responsive ========== */
@media (max-width: 1440px) {
  .landing-hero {
    height: auto;
    min-height: 700px;
  }
  .landing-hero__text {
  }
  .landing-guide {
    padding: 80px 80px;
  }
}

@media (max-width: 1200px) {
  .landing-hero__text {
    right: 40px;
    width: 420px;
    max-width: calc(100% - 80px);
  }
  .landing-hero__heading {
    font-size: 48px;
  }
  .landing-hero__description {
    font-size: 22px;
  }
  .landing-guide {
    padding: 60px 60px;
  }
  .landing-guide__info {
    flex: 0 0 400px;
    padding-right: 40px;
  }
  .landing-guide__form-wrapper {
    padding: 50px;
    gap: 15px;
  }
}

/* ── Tablet: text keeps desktop right-side positioning, scaled for tablet ── */
@media (max-width: 991px) {
  .landing-hero {
    min-height: 520px;
  }

  /* Text stays absolutely positioned on the right, with a frosted card bg for readability */
  .landing-hero__text {
    gap: 20px;
    padding: 32px 28px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }

  .landing-hero__heading {
    font-size: 36px;
  }
  .landing-hero__description {
    font-size: 17px;
  }

  /* Guide: stacked layout */
  .landing-guide {
    flex-direction: column;
    padding: 50px 30px;
    gap: 40px;
  }
  .landing-guide__info {
    flex: none;
    width: 100%;
    padding-right: 0;
  }
  .landing-guide__title {
    font-size: 36px;
  }
  .landing-guide__form-wrapper {
    width: 100%;
    padding: 40px;
    gap: 15px;
  }
  .landing-guide__form-heading {
    font-size: 30px;
  }
  .landing-guide__text {
    font-size: 19px;
  }
}

@media (max-width: 600px) {
  .landing-hero {
    min-height: 460px;
  }
  .landing-hero__text {
    padding: 24px 20px;
    gap: 14px;
  }
  .landing-hero__heading {
    font-size: 28px;
  }
  .landing-hero__description {
    font-size: 16px;
  }

  .landing-guide {
    padding: 40px 20px;
  }
  .landing-guide__title {
    font-size: 32px;
  }
  .landing-guide__text {
    font-size: 18px;
  }
  .landing-guide__form-heading {
    font-size: 26px;
  }
  .landing-guide__form-wrapper {
    padding: 30px 24px;
    gap: 15px !important;
  }
  .landing-guide__input,
  .gform_fields .gfield input[type="text"],
  .gform_fields .gfield input[type="email"],
  .gform_fields .gfield input[type="tel"],
  .gform_fields .gfield input[type="number"],
  .gform_fields .gfield input[type="url"] {
    font-size: 16px !important;
    padding: 0 14px !important;
  }
  .landing-guide__button,
  .gform-footer input[type="submit"],
  .gform_footer input[type="submit"] {
    height: 56px;
    font-size: 13px !important;
    letter-spacing: 3px;
  }
  .landing-guide__select,
  .gform_fields .gfield select {
    height: auto;
  }
}

/* ========== Mobile hero: stacked layout (image top, text bottom) ========== */
@media (max-width: 980px) {
  /* Hero becomes a flex column with gray bg — desktop bg image is hidden */
  .landing-hero {
    height: auto !important;
    min-height: 0;
    background-color: #babbb8;
    display: flex;
    flex-direction: column;
    overflow: visible;
  }

  /* Hide the desktop full-bleed background image */
  .landing-hero__bg {
    display: none;
  }

  /* Show the mobile image at the top */
  .landing-hero__mobile-img {
    padding-top: 128px;
    display: block;
    width: 100%;
    flex-shrink: 0;
  }

  /* Text flows below the image, in normal flow */
  .landing-hero__text {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    width: 100%;
    max-width: 100%;
    padding: 32px 24px 40px;
    gap: 16px;
    background: #babbb8;
  }

  .landing-hero__heading {
    font-size: 32px;
  }

  .landing-hero__description {
    font-size: 16px;
  }
}

/* ========== Horizontal scroll fix ========== */
.landing-page-wrapper {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* ========== Thank You Card ========== */
/* Figma: Frame 10 — x=679, y=332, width=654, height=393 (inside 1440×904 hero) */
/* Padding derived from Figma: content offset x=70 → 70px L/R, y=100 → 100px T/B */
.landing-thankyou__card {
  position: absolute;
  z-index: 1;
  top: 50%;
  transform: translateY(-50%);
  right: 107px;
  width: 654px;
  box-sizing: border-box;
  background: #fbfbfb;
  border: 1px solid #fff;
  padding: 100px 70px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 50px;
}

/* Decorative "A" watermark — same treatment as the form card */
.landing-thankyou__card::before {
  content: "";
  position: absolute;
  top: -49px;
  right: -110px;
  width: 339px;
  height: 278px;
  background-image: url("../img/structures-alair-logo.svg");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  pointer-events: none;
}

/* Heading + subtitle block */
.landing-thankyou__content {
  display: flex;
  flex-direction: column;
  gap: 17px;
  text-align: center;
}

/* "Thank You !" — Forum, ~44px */
.landing-thankyou__heading {
  font-family: "Forum", serif;
  font-size: 44px;
  font-weight: 400;
  line-height: normal;
  color: #282828;
  margin: 0;
}

/* "Your guide is ready to download." */
.landing-thankyou__subtitle {
  font-family: "Alright Sans", sans-serif;
  font-size: 16px;
  font-weight: 200;
  color: #282828;
  margin: 0;
}

/* Download button — same style as .landing-guide__button */
.landing-thankyou__button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 60px;
  padding: 15px 30px;
  border: 1px solid #282828;
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
  font-family: "Alright Sans", sans-serif;
  font-size: 14px;
  font-weight: 200;
  color: #282828;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 4.2px;
  line-height: 30px;
  text-align: center;
  transition:
    background-color 0.3s,
    color 0.3s;
}

.landing-thankyou__button:hover {
  background-color: #282828;
  color: #fff;
  text-decoration: none;
}

/* ── Responsive: Thank You card ── */
@media (max-width: 1440px) {
  .landing-thankyou__card {
    right: 60px;
  }
}

@media (max-width: 1200px) {
  .landing-thankyou__card {
    right: 40px;
    width: 520px;
    padding: 70px 50px;
  }

  .landing-thankyou__heading {
    font-size: 38px;
  }
}

@media (max-width: 980px) {
  /* At mobile the hero becomes a flex column; card must flow in normal doc order */
  .landing-thankyou__card {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    width: calc(100% - 48px);
    max-width: 514px;
    margin: 24px auto 40px;
    padding: 40px 30px;
    gap: 30px;
  }

  .landing-thankyou__heading {
    font-size: 34px;
  }
}
