@import "../_variables";

.footerContainer {
  position: relative;
  z-index: 1;

  .footerContent {
    padding: 2.5rem 5rem;
    position: relative;
    background-color: var(--primary-bg);

    .footerText {
      margin: 0.75rem 0;
      font-weight: 400;
      max-width: 30rem;
      line-height: 1.6;
      color: var(--secondary-text);
      font-size: 0.8rem;
    }

    .footerMailLink {
      a {
        color: var(--secondary-text);
        transition: color var(--transition-fast);

        &:hover {
          color: var(--primary-text);
        }
      }
    }

    &::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 1px;
      background-image: linear-gradient(
        90deg,
        transparent 0%,
        var(--border-default) 30%,
        var(--border-default) 70%,
        transparent 100%
      );
    }

    .newsLetter {
      p {
        color: var(--primary-text);
        font-size: 0.85rem;
        font-weight: 500;
        padding-top: 1rem;
      }

      .successMessage {
        padding-top: 0;
        font-size: 0.75rem;
        color: var(--secondary-text);
      }

      :global(.ant-form .ant-form-item) {
        margin-bottom: 0.5rem;
      }
      :global(.ant-form .ant-input-affix-wrapper) {
        background-color: transparent;
        width: 264px;
        height: 36px;
        border-radius: 6px;
        border: 1px solid var(--border-default);
      }
      :global(.ant-form .ant-input) {
        background: var(--primary-bg) !important;
        color: var(--primary-text) !important;
      }
      :global(.ant-form .ant-input::placeholder) {
        color: var(--secondary-text);
      }
      :global(.ant-form .ant-input-suffix) {
        color: var(--secondary-text);
      }
    }

    .footerHeading {
      margin-bottom: 0.75rem;
      color: var(--secondary-text);
      font-size: 0.75rem;
      font-weight: 500;
      text-transform: uppercase;
      letter-spacing: 0.06em;
    }

    .footerList {
      gap: 0.6rem;
      display: flex;
      flex-direction: column;

      .footerLink {
        font-weight: 400;
        color: var(--secondary-text);
        font-size: 0.85rem;
        transition: color var(--transition-fast);
        text-decoration: none;

        &:hover {
          color: var(--primary-text);
        }
      }
    }
  }

  .footerBottom {
    display: flex;
    position: relative;
    padding: 0.75rem 5rem;
    gap: 1rem;
    flex-wrap: wrap-reverse;
    justify-content: space-between;
    background-color: var(--primary-bg);

    &::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 1px;
      background-image: linear-gradient(
        90deg,
        transparent 0%,
        var(--border-subtle) 30%,
        var(--border-subtle) 70%,
        transparent 100%
      );
    }

    p {
      margin-bottom: 0;
      font-weight: 400;
      font-size: 0.75rem;
      color: var(--secondary-text);
    }

    .socialIcons {
      gap: 0.75rem;
      display: flex;
      align-items: center;

      .socialIconLink {
        color: var(--secondary-text);
        text-decoration: none;
        font-size: 0.9rem;
        transition: color var(--transition-fast);

        &:hover {
          color: var(--primary-text);
        }
      }
    }
  }
}

.helperEmailContainer {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1000;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background-color: var(--filled-purple);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 8px rgba(#8e35ff, 0.3);

  &:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(#8e35ff, 0.4);
  }

  .mailIcon {
    color: var(--primary-text);
    font-size: 1.1rem;
  }
}
