// Video Modal (rendered at body level via portal)
.gf-video-modal {
  display: flex;
  position: fixed;
  z-index: 999999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
  align-items: center;
  justify-content: center;
  animation: gf-fade-in 0.3s ease-out;

  &.gf-modal-closing {
    animation: gf-fade-out 0.3s ease-out;
  }

  .gf-video-modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    background: #000;
    border-radius: 8px;
    padding: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);

    &.gf-zoom-in {
      animation: gf-zoom-in 0.3s ease-out;
    }

    &.gf-zoom-out {
      animation: gf-zoom-out 0.3s ease-out;
    }

    .gf-video-modal-close {
      position: absolute;
      top: -40px;
      right: 0;
      color: #fff;
      font-size: 40px;
      font-weight: 300;
      background: none;
      border: none;
      cursor: pointer;
      line-height: 1;
      padding: 0;
      width: 40px;
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 10;
      transition: opacity 0.3s;

      &:hover {
        opacity: 0.7;
      }
    }

    .gf-video-embed {
      position: relative;
      padding-bottom: 56.25%; // 16:9 aspect ratio
      height: 0;
      overflow: hidden;
      border-radius: 8px;

      iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 8px;
      }
    }
  }
}

#gfp-page-doc{
  background: $gfp_secondary_color;
  padding: 2rem 0;
  .gutena-forms-knowledge-base {
    margin: auto;
    max-width: 900px;
    background: $gfp_white_color;
    padding: 2.5rem 2.875rem;

    .gutena-title {
      font-size: 1.8rem;
      font-weight: 600;
      margin-bottom: 2rem;
    }

    .gutena-docs {
      margin-bottom: 30px;
      padding-bottom: 30px;
      border-bottom: 1px solid rgba(33, 34, 47, .1);

      .gutena-topics {
        .gutena-topic {
          margin-bottom: 1rem;
          &::marker {
            color: $gfp_heading_color;
            font-weight: 600;
            font-size: 1rem;
            line-height: 1.6;
          }
          a {
            color: $gfp_heading_color;
            font-weight: 600;
            font-size: 1rem;
            line-height: 1.6;
            text-decoration-line: none;
          }
        }
      }
    }

    .gutena-support {
      margin-bottom: 35px;
      padding-bottom: 35px;
      border-bottom: 1px solid rgba(33, 34, 47, .1);

      .gutena-buttons {
        display: flex;
        gap: 21px;

        a:visited {
          color: $gfp_white_color;
        }
      }

      .gutena-details {
        max-width: 321px;
        .gutena-title {
          margin-bottom: 1rem;
        }
        .gutena-description {
          padding-bottom: 2rem;
          margin: 0;
          font-size: 17px;
          line-height: 1.8;
          color: $gfp_body_color;
        }
      }
    }

    .gutena-changelog {
      white-space: pre;

      .gutena-details {
        .gutena-title {
          margin-bottom: 30px;
        }

        .gutena-description
        {
          font-size: 15px;
          color: $gfp_body_color;
          line-height: 1.6;
          .version {
            display: block;
            color:$gfp_heading_color;
            font-weight: 600;
            font-size: 18px;
            padding-top: 25px;
            border-top: 1px solid rgba(33, 34, 47, .1);

            &:first-of-type {
              padding: 0;
              border: 0;
            }
          }
        }

      }
    }

    .gf-btn-group .components-button{
      padding: 10px 10px;
    }
  }
}

// Main container
.gf-introduction-page {
  max-width: 800px;
  margin: 86px auto 0;
  height: auto;
  background-color: #ffffff;
  font-family: 'Satoshi', sans-serif;

  // Header Section
  .gf-header-section {
    text-align: center;
    padding: 2rem 55px;
    position: relative;

    .gf-logo-wrapper {
      width: 80px;
      height: 80px;
      margin: -72px auto 1.5rem;
      display: flex;
      align-items: center;
      justify-content: center;
      background: #ffffff;
      border: 1px solid #E5E7EB;
      border-radius: 50%;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
      position: relative;
      z-index: 1;

      .gf-logo {
        width: 50px;
        height: 50px;
        object-fit: contain;
      }
    }

    .gf-top-heading {
      color: #000;
      text-align: center;
      font-family: 'Satoshi', sans-serif;
      font-size: 28px;
      font-style: normal;
      font-weight: 700;
      line-height: normal;
      margin-bottom: 1rem;
    }

    .gf-top-description {
      color: #767676;
      text-align: center;
      font-family: 'Satoshi', sans-serif;
      font-size: 16px;
      font-style: normal;
      font-weight: 400;
      line-height: normal;
    }
  }

  // Video Section
  .gf-video-section {
    background: linear-gradient(260deg, #0DA88C -15.5%, #015D61 45.3%);
    padding: 3rem 55px;

    .gf-video-content {
      display: flex;
      gap: 2rem;
      align-items: center;
      flex-wrap: wrap;
    }

    .gf-video-left {
      flex: 1;
      min-width: 300px;
    }

    .gf-video-right {
      flex: 1;
      min-width: 300px;
      text-align: center;
    }

    .gf-video-heading {
      color: #FFF;
      font-family: 'Satoshi', sans-serif;
      font-size: 34.398px;
      font-style: normal;
      font-weight: 700;
      line-height: 38px;
      margin-bottom: 1.5rem;
      text-align: left;
    }

    .gf-video-button {
      display: inline-flex;
      align-items: center;
      gap: 1rem;
      text-decoration: none;
      background: none;
      border: none;
      padding: 0;
      cursor: pointer;
      transition: opacity 0.3s;

      &:hover {
        opacity: 0.9;
      }

      .gf-play-icon {
        width: 83px;
        height: 83px;
        display: flex;
        align-items: center;
        justify-content: center;
      }

      .gf-watch-text {
        color: #FED07C;
        font-family: 'Satoshi', sans-serif;
        font-size: 14px;
        font-style: normal;
        font-weight: 700;
        line-height: normal;
      }
    }

    .gf-form-illustration {
      max-width: 100%;
      height: auto;
      display: block;
    }
  }

  // Tag Line Section
  .gf-tagline-section {
    padding: 2rem 55px;
    text-align: center;

    .gf-tagline {
      color: #767676;
      text-align: center;
      font-family: 'Satoshi', sans-serif;
      font-size: 16px;
      font-style: normal;
      font-weight: 400;
      line-height: normal;
      margin: 0;
    }
  }

  // CTA Section
  .gf-cta-section {
    padding: 1rem 55px;
    text-align: center;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;

    .gf-create-form-link {
      display: inline-flex;
      padding: 16px 54px;
      justify-content: center;
      align-items: center;
      gap: 10px;
      background: #F6B642;
      color: #FFF;
      text-align: center;
      font-family: 'Satoshi', sans-serif;
      font-size: 16px;
      font-style: normal;
      font-weight: 700;
      line-height: normal;
      border: none;
      border-radius: 5px;
      text-decoration: none;
      transition: background-color 0.3s;

      &:hover {
        background: #e5a532;
      }
    }

    .gf-read-guide-link {
      display: flex;
      width: 272px;
      padding: 16px 54px;
      justify-content: center;
      align-items: center;
      gap: 10px;
      background: #EBEBEB;
      color: #000;
      text-align: center;
      font-family: 'Satoshi', sans-serif;
      font-size: 16px;
      font-style: normal;
      font-weight: 700;
      line-height: normal;
      border: none;
      border-radius: 5px;
      text-decoration: none;
      transition: background-color 0.3s;

      &:hover {
        background: #d4d4d4;
      }
    }
  }

  // Features & Addons Section
  .gf-features-section {
    padding: 3rem 55px;
    text-align: center;

    .gf-features-heading {
      color: #000;
      text-align: center;
      font-family: 'Satoshi', sans-serif;
      font-size: 28px;
      font-style: normal;
      font-weight: 700;
      line-height: normal;
      margin-bottom: 1rem;
    }

    .gf-features-description {
      color: #767676;
      text-align: center;
      font-family: 'Satoshi', sans-serif;
      font-size: 16px;
      font-style: normal;
      font-weight: 400;
      line-height: normal;
      margin-bottom: 2rem;
      max-width: 700px;
      margin-left: auto;
      margin-right: auto;
    }

    .gf-features-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 1.5rem;
      margin-bottom: 2rem;
    }

    .gf-feature-item {
      background: #ffffff;
      border: 1px solid #eee;
      border-radius: 8px;
      padding: 1.5rem;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
      display: flex;
      gap: 1rem;
      align-items: center;

      .gf-feature-icon-wrapper {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
      }

      .gf-feature-icon {
        width: 32px;
        height: 32px;
        display: block;
      }

      .gf-feature-content {
        flex: 1;
        text-align: left;
      }

      .gf-feature-title {
        color: #000;
        font-family: 'Satoshi', sans-serif;
        font-size: 13.681px;
        font-style: normal;
        font-weight: 700;
        line-height: normal;
        margin: 0 0 0.5rem 0;
      }

      .gf-feature-description {
        color: #767676;
        font-family: 'Satoshi', sans-serif;
        font-size: 11.971px;
        font-style: normal;
        font-weight: 400;
        line-height: normal;
        margin: 0;
      }
    }

    .gf-see-all-features {
      display: flex;
      width: 212px;
      padding: 16px 54px;
      justify-content: center;
      align-items: center;
      gap: 10px;
      background: #EBEBEB;
      color: #767676;
      text-align: center;
      font-family: 'Satoshi', sans-serif;
      font-size: 16px;
      font-style: normal;
      font-weight: 700;
      line-height: normal;
      text-decoration: none;
      margin: 0 auto;
      border-radius: 5px;
      transition: background-color 0.3s, color 0.3s;

      &:hover {
        background: #d4d4d4;
        color: #000;
      }
    }
  }

  // Upgrade to PRO Section
  .gf-upgrade-pro-section {
    background: linear-gradient(98deg, #D5FFF8 64.58%, #0DA88C 167.69%);
    padding: 2rem 55px;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    flex-wrap: wrap;
    justify-content: space-between;

    .gf-upgrade-left {
      flex: 1;
      min-width: 300px;

      .gf-upgrade-heading {
        color: #067971;
        font-family: 'Satoshi', sans-serif;
        font-size: 20px;
        font-style: normal;
        font-weight: 900;
        line-height: normal;
        margin-bottom: 1rem;
      }

      .gf-upgrade-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;

        .gf-upgrade-item {
          display: flex;
          align-items: center;
          gap: 0.5rem;
          color: #067971;
          font-family: 'Satoshi', sans-serif;
          font-size: 12px;
          font-style: normal;
          font-weight: 400;
          line-height: normal;

          .gf-checkmark-icon {
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
          }
        }
      }
    }

    .gf-upgrade-right {
      width: 200px;
      padding: 2rem;
      text-align: center;

      .gf-pro-label {
        color: #015D61;
        text-align: center;
        font-family: 'Satoshi', sans-serif;
        font-size: 20px;
        font-style: normal;
        font-weight: 900;
        line-height: normal;
        margin-bottom: 0.5rem;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid #067971;
      }

      .gf-pro-price {
        color: #015D61;
        text-align: center;
        font-family: 'Satoshi', sans-serif;
        font-size: 35.556px;
        font-style: normal;
        font-weight: 700;
        line-height: normal;
        margin: 0.5rem 0;
      }

      .gf-pro-period {
        color: #015D61;
        text-align: center;
        font-family: 'Satoshi', sans-serif;
        font-size: 12px;
        font-style: normal;
        font-weight: 700;
        line-height: normal;
        margin-bottom: 1.5rem;
      }

      .gf-upgrade-button {
        display: flex;
        width: 173px;
        height: 44px;
        padding: 6px 14px;
        justify-content: center;
        align-items: center;
        gap: 10px;
        background: #F6B642;
        border: none;
        border-radius: 5px;
        color: #fff;
        font-family: 'Satoshi', sans-serif;
        font-size: 16px;
        font-weight: 700;
        cursor: pointer;
        margin: 0 auto;
        text-decoration: none;
        transition: background-color 0.3s;

        &:hover {
          background: #e5a532;
        }
      }
    }
  }

  // Testimonials Section
  .gf-testimonials-section {
    padding: 3rem 55px;
    text-align: center;

    .gf-testimonials-heading {
      color: #000;
      text-align: center;
      font-family: 'Satoshi', sans-serif;
      font-size: 28px;
      font-style: normal;
      font-weight: 700;
      line-height: normal;
      margin-bottom: 2rem;
    }

    .gf-testimonials-list {
      display: flex;
      flex-direction: column;
      gap: 2rem;
      max-width: 700px;
      margin: 0 auto;
    }

    .gf-testimonial-item {
      display: flex;
      gap: 1.5rem;
      align-items: flex-start;
      text-align: left;

      .gf-testimonial-avatar {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        object-fit: cover;
        flex-shrink: 0;
      }

      .gf-testimonial-content {
        flex: 1;
      }

      .gf-testimonial-text {
        color: #767676;
        font-family: 'Satoshi', sans-serif;
        font-size: 12px;
        font-style: normal;
        font-weight: 400;
        line-height: normal;
        margin-bottom: 0.5rem;
      }

      .gf-testimonial-name {
        color: #767676;
        font-family: 'Satoshi', sans-serif;
        font-size: 12px;
        font-style: normal;
        font-weight: 700;
        line-height: normal;
        margin: 0;
      }
    }
  }

  // Footer CTA Section
  .gf-footer-cta-section {
    padding: 2rem 55px;
    text-align: center;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;

    // When PRO is active, center align the single button
    &.gf-pro-active {
      justify-content: center;

      .gf-create-form-button {
        margin: 0 auto;
      }
    }

    .gf-create-form-button {
      color: #FFF;
      text-align: center;
      font-family: 'Satoshi', sans-serif;
      font-size: 16px;
      font-style: normal;
      font-weight: 700;
      line-height: normal;
      background: #0DA88C;
      padding: 0.75rem 2rem;
      border: none;
      border-radius: 5px;
      text-decoration: none;
      display: inline-block;
      transition: background-color 0.3s;

      &:hover {
        background: #0b9579;
      }
    }

    .gf-upgrade-pro-link {
      color: #0DA88C;
      text-align: center;
      font-family: 'Satoshi', sans-serif;
      font-size: 16px;
      font-style: normal;
      font-weight: 700;
      line-height: normal;
      text-decoration-line: underline;
      text-decoration-style: dotted;
      text-decoration-skip-ink: auto;
      text-decoration-thickness: 1.68px;
      text-underline-offset: 6.4px;
      text-underline-position: from-font;
      transition: color 0.3s;

      &:hover {
        color: #0b9579;
      }
    }
  }
}