@import "@/styles/mixins.scss";
@import "@/styles/variables.scss";

.contactUs {
  display: flex;
  align-items: center;
  min-height: 12.5rem;
}

.contactUsContainer {
  display: flex;
  justify-content: space-between;
  align-items: center;

  h1 {
    flex: 1;
    color: $white;
    margin-right: $hl-8;
    overflow: hidden;
  }

  .operateBtn {

    &:hover:not([disabled]),
    &:active {
      background: $white;
      box-shadow: $shadow-long;
    }

    &:not(:last-child) {
      margin-right: 1rem;
    }
  }
}

[data-role="campus"] .contactUs {
  background: linear-gradient(93.24deg, #eb4925 0%, #EFA433 100%);

  .operateBtn,
  .operateBtn:hover:not([disabled]),
  .operateBtn:active {
    color: $orange;
  }
}

[data-role="lecturer"] .contactUs {
  background: linear-gradient(93.13deg, #7d3f98 0%, #BA398E 99.34%);

  .operateBtn,
  .operateBtn:hover:not([disabled]),
  .operateBtn:active {
    color: $purple;
  }
}

[data-role="science"] .contactUs {
  background: linear-gradient(93.24deg, #3d3fea 0%, #33ABEF 100%);

  .operateBtn,
  .operateBtn:hover:not([disabled]),
  .operateBtn:active {
    color: $blue;
  }
}

.btnPopoverContent {
  .btnPopover {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding-top: $hl-9;
  }

  .btnPopoverInner {
    background: $white;
    border-radius: .3125rem;
    box-shadow: $shadow-normal;
    padding: $hl-10 $hl-10 $hl-9 $hl-10;
    
    img {
      width: 100%;
    }

    p {
      @include p2();
      color: #000;
    }
  }

  &:hover .btnPopover {
    display: block;
  }
}

@media screen and (max-width: 1230px) {
  [data-role="lecturer"] .contactUs {
    .contactUsContainer {
      flex-direction: column;
    }

    .contactUsContainer h1 {
      text-align: center;
      margin: 0 0 $hl-8 0;
    }
  }
}

@media screen and (max-width: $desktop) {
  .contactUsContainer {
    flex-direction: column;
  }

  .contactUsContainer h1 {
    text-align: center;
    margin: 0 0 $hl-8 0;
  }
}

@media screen and (max-width: 767px) {
  .contactUsContainer h1 {
    font-size: $font-h3;
  }
}
