/* ==========================================
   SCIOM CLIENT PORTAL POPUP
========================================== */

:root {
  --sciom-blue: #00518f;
  --sciom-light-blue: #3782b5;
  --sciom-green: #afcc3e;
  --sciom-yellow: #fdc72f;
  --sciom-orange: #f4863b;
  --sciom-pink: #9d1c4b;
  --dark: #092f4b;
}

/* ==========================================
   OVERLAY
========================================== */

.sciom-popup-overlay {
  position: fixed;

  inset: 0;

  width: 100%;
  height: 100%;

  background: rgba(5, 22, 35, 0.78);

  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);

  display: flex;

  align-items: center;
  justify-content: center;

  padding: 25px;

  z-index: 999999;

  opacity: 1;
  visibility: visible;

  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;
}

/* ==========================================
   HIDE POPUP
========================================== */

.sciom-popup-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ==========================================
   MAIN POPUP
========================================== */

.sciom-popup {
  position: relative;

  width: 980px;
  max-width: 100%;

  max-height: 92vh;

  overflow: hidden;

  background: #ffffff;

  border-radius: 28px;

  box-shadow:
    0 35px 90px rgba(0, 0, 0, 0.38),
    0 10px 30px rgba(0, 81, 143, 0.2);

  animation: popupEnter 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================
   POPUP ANIMATION
========================================== */

@keyframes popupEnter {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.94);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ==========================================
   POPUP CONTENT
========================================== */

.sciom-popup-content {
  position: relative;
  padding: 15px 45px 20px;
}

/* ==========================================
   CLOSE BUTTON
========================================== */

.sciom-popup-close {
  position: absolute;

  top: 12px;
  right: 18px;

  width: 45px;
  height: 45px;

  border: 0;

  border-radius: 50%;

  background: var(--sciom-pink);

  cursor: pointer;

  z-index: 100;

  box-shadow: 0 8px 20px rgba(157, 28, 75, 0.25);

  transition:
    transform 0.3s ease,
    background 0.3s ease;
}

.sciom-popup-close:hover {
  transform: rotate(90deg) scale(1.08);

  background: var(--sciom-blue);
}

.sciom-popup-close span {
  position: absolute;

  width: 19px;
  height: 2px;

  background: #ffffff;

  left: 13px;
  top: 21px;

  border-radius: 10px;
}

.sciom-popup-close span:first-child {
  transform: rotate(45deg);
}

.sciom-popup-close span:last-child {
  transform: rotate(-45deg);
}

/* ==========================================
   LOGO
========================================== */

.sciom-logo {
  display: flex;

  align-items: flex-start;

  width: 100%;
}

.sciom-logo img {
  width: 126px;
  max-width: 126px;
  height: auto;
  display: block;
  border-radius: 0px;
}

/* ==========================================
   ANNOUNCEMENT BADGE
========================================== */

.announcement-badge {
  width: 100%;

  display: flex;

  align-items: center;
  /* justify-content: center; */

  margin-top: 0px;
}

.announcement-badge span {
  display: block;
}

.announcement-badge img {
  width: 245px;
  max-width: 100%;

  height: auto;

  display: block;
}

/* ==========================================
   ANNOUNCEMENT SMALL TEXT
========================================== */

.announcement-small {
  font-family: cursive;

  color: var(--sciom-blue);

  font-size: 20px;

  line-height: 1.3;

  margin-top: 4px;

  /* text-align: center; */
}

/* ==========================================
   MAIN HEADING
========================================== */

.sciom-popup-content h1 {
  margin: 12px 0 0;

  color: var(--dark);

  font-size: 35px;

  line-height: 1.1;

  font-weight: 800;

  /* text-align: center; */
}

.sciom-popup-content h1 span {
  color: var(--sciom-blue);
}

/* ==========================================
   LIVE TITLE
========================================== */

.live-title {
  margin-top: 7px;

  width: 100%;

  font-size: 35px;

  line-height: 1;

  font-weight: 800;

  text-align: center;
}

.live-title strong {
  color: #00b29c;
  font-size: 55px;
}

/* ==========================================
   MAIN CONTENT
   TEXT + LAPTOP
========================================== */

.portal-main-row {
  width: 100%;

  display: grid;

  grid-template-columns:
    47%
    53%;

  align-items: center;

  gap: 5px;

  margin-top: 25px;
}

/* ==========================================
   LEFT DESCRIPTION COLUMN
========================================== */

.portal-description-column {
  display: flex;

  flex-direction: column;

  justify-content: center;

  padding-right: 5px;
}

/* ==========================================
   DESCRIPTION
========================================== */

.portal-description-column .popup-description {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 10px 0;
  color: #5f5f5f;
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 10px;
}

.popup-description > span:last-child {
  flex: 1;
}

/* ==========================================
   DESCRIPTION ICON
========================================== */

.description-icon {
  width: 26px;
  min-width: 26px;

  height: 26px;

  display: flex;

  align-items: center;
  justify-content: center;

  margin-top: 1px;
}

.description-icon i {
  font-size: 18px;

  color: var(--sciom-blue);
}

/* ==========================================
   BOLD TEXT
========================================== */

.popup-description b {
  color: var(--sciom-blue);
}

.popup-description strong {
  color: var(--sciom-pink);
}

/* ==========================================
   LAPTOP IMAGE WRAPPER
========================================== */

.sciom-popup-content h1 {
  margin: 12px 0 0;
  color: #a6325c;
  font-size: 35px;
  line-height: 1.1;
  font-weight: 800;
  /* text-align: center; */
}

/* ==========================================
   LAPTOP IMAGE
========================================== */

.portal-image-wrapper > img {
  position: relative;
  display: block;
  width: 100%;
  max-width: 470px;
  height: auto;
  object-fit: contain;
  z-index: 2;

  animation: laptopFloat 5.5s ease-in-out infinite;
}

@keyframes laptopFloat {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0);
  }
}

/* ==========================================
   EXPLORE BADGE
   OVERLAPS LAPTOP
========================================== */

.explore-badge {
  position: absolute;
  right: -8px;
  bottom: -51px;
  width: 130px;
  height: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  background: linear-gradient(145deg, var(--sciom-pink), #b82d61);
  border-radius: 50%;
  border: 4px dashed rgba(255, 255, 255, 0.85);
  box-shadow: 0 15px 30px rgba(157, 28, 75, 0.3);
  transform: rotate(7deg);
  z-index: 10;
}

/* ==========================================
   BADGE TEXT
========================================== */

.explore-badge span {
  font-size: 12px;

  line-height: 1.2;

  font-weight: 700;
}

.explore-badge strong {
  font-size: 17px;

  line-height: 1.2;
}

.explore-badge b {
  color: var(--sciom-yellow);

  font-size: 16px;

  line-height: 1.2;
}

/* ==========================================
   UK CLIENT MESSAGE
========================================== */

.uk-client-message {
  margin-top: 4px;

  margin-bottom: 0;
}

/* ==========================================
   CTA BUTTON
========================================== */

.portal-cta {
  position: relative;
  display: inline-block;
  display: inline;
  padding: 16px 20px;
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  border-radius: 16px;
  overflow: hidden;
  z-index: 1;
  background: linear-gradient(
    135deg,
    #00518f,
    #3782b5,
    #afcc3e,
    #fdc72f,
    #f4863b,
    #9d1c4b
  );
  background-size: auto;
  background-size: 300% 300%;
  /* animation: gradientMove 6s ease infinite; */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 10px 25px rgba(0, 81, 143, 0.35),
    inset 0 1px 1px rgba(255, 255, 255, 0.4);
  /* transition: all 0.4s ease; */
  color: #fff;
  width: max-content;
}

/* ==========================================
   BOTTOM MESSAGE
========================================== */

.popup-bottom-message {
  margin-top: 20px;
  color: #536b79;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.popup-bottom-message em {
  font-weight: 700;
  color: var(--sciom-pink);
}

/* ==========================================
   SMALL SHIELD / CHECK
========================================== */

.shield-small {
  width: 25px;
  height: 25px;

  min-width: 25px;

  display: inline-flex;

  align-items: center;
  justify-content: center;

  color: #ffffff;

  background: var(--sciom-green);

  border-radius: 50%;

  font-weight: 800;
}

/* ==========================================
   TABLET
========================================== */

@media (max-width: 900px) {
  .sciom-popup {
    width: 94vw;
  }

  .sciom-popup-content {
    padding: 35px 35px 28px;
  }

  .portal-main-row {
    grid-template-columns:
      48%
      52%;
  }

  .popup-description {
    font-size: 13px;
  }

  .portal-image-wrapper > img {
    max-width: 350px;
  }

  .explore-badge {
    width: 115px;
    height: 115px;

    right: 0;
  }

  .explore-badge span {
    font-size: 10px;
  }

  .explore-badge strong {
    font-size: 15px;
  }

  .explore-badge b {
    font-size: 14px;
  }
}

/* ==========================================
   TABLET / SMALL SCREEN
========================================== */

@media (max-width: 700px) {
  .sciom-popup-overlay {
    padding: 15px;
  }

  .sciom-popup {
    max-height: 94vh;

    overflow-y: auto;

    border-radius: 22px;
  }

  .sciom-popup-content {
    padding: 30px 25px 25px;
  }

  .sciom-popup-close {
    top: 12px;

    right: 12px;

    width: 40px;
    height: 40px;
  }

  .sciom-popup-close span {
    left: 11px;

    top: 19px;
  }

  .sciom-logo img {
    width: 110px;
  }

  .announcement-badge img {
    width: 160px;
  }

  .announcement-small {
    font-size: 18px;
  }

  .sciom-popup-content h1 {
    font-size: 30px;
  }

  .live-title {
    font-size: 30px;
  }

  /* STACK CONTENT ON MOBILE */

  .portal-main-row {
    grid-template-columns: 1fr;

    gap: 10px;
  }

  .portal-description-column {
    padding-right: 0;
  }

  .portal-image-wrapper {
    min-height: auto;

    margin-top: 5px;
  }

  .portal-image-wrapper > img {
    width: 90%;

    max-width: 380px;
  }

  .explore-badge {
    right: 3%;

    bottom: 0;

    width: 105px;
    height: 105px;
  }

  .uk-client-message {
    margin-top: 15px;
  }

  .portal-cta {
    margin-top: 18px;
  }
}

/* ==========================================
   MOBILE
========================================== */

@media (max-width: 480px) {
  .sciom-popup-overlay {
    padding: 10px;
  }

  .sciom-popup {
    width: 100%;

    max-height: 95vh;

    border-radius: 18px;
  }

  .sciom-popup-content {
    padding: 25px 18px 22px;
  }

  .sciom-popup-close {
    width: 38px;
    height: 38px;

    top: 10px;
    right: 10px;
  }

  .sciom-popup-close span {
    width: 17px;

    left: 10px;

    top: 18px;
  }

  .sciom-logo img {
    width: 100px;
  }

  .announcement-badge img {
    width: 145px;
  }

  .announcement-small {
    font-size: 17px;
  }

  .sciom-popup-content h1 {
    font-size: 27px;

    line-height: 1.1;
  }

  .live-title {
    font-size: 28px;
  }

  .popup-description {
    font-size: 13px;

    line-height: 1.45;
  }

  .description-icon {
    width: 23px;

    min-width: 23px;
  }

  .description-icon i {
    font-size: 16px;
  }

  .portal-image-wrapper > img {
    width: 95%;
  }

  .explore-badge {
    width: 92px;
    height: 92px;

    border-width: 3px;

    right: 0;
  }

  .explore-badge span {
    font-size: 8px;
  }

  .explore-badge strong {
    font-size: 12px;
  }

  .explore-badge b {
    font-size: 11px;
  }

  .portal-cta {
    width: 100%;

    justify-content: space-between;

    gap: 10px;

    padding-left: 20px;
  }

  .popup-bottom-message {
    font-size: 11px;
  }
}
/* ==========================================
   SCIOM ROUND BACKGROUND SHAPES
========================================== */

.sciom-popup-content {
  position: relative;
  overflow: hidden;
}

/* Background shape container */

.sciom-bg-shapes {
  position: absolute;
  inset: 0;

  overflow: hidden;

  pointer-events: none;

  z-index: 0;
}

/* Keep popup content above background */

.sciom-popup-content > *:not(.sciom-bg-shapes) {
  position: relative;
  z-index: 2;
}

/* ==========================================
   ROUND SPHERES
========================================== */

.sciom-bg-circle {
  position: absolute;

  border-radius: 50%;

  pointer-events: none;

  animation: sciomCircleFloat 8s ease-in-out infinite;
}

/* BLUE CIRCLE */

.circle-blue {
  width: 180px;
  height: 180px;

  left: -100px;
  top: 150px;

  background: radial-gradient(
    circle at 35% 30%,
    #5aa9d8 0%,
    #00518f 45%,
    #003b68 100%
  );

  opacity: 0.1;

  animation-delay: -2s;
}

/* PINK CIRCLE */

.circle-pink {
  width: 165px;
  height: 165px;

  right: -82px;
  top: 95px;

  background: radial-gradient(
    circle at 35% 30%,
    #e75a88 0%,
    #9d1c4b 50%,
    #721536 100%
  );

  opacity: 0.12;

  animation-delay: -5s;
}

/* GREEN CIRCLE */

.circle-green {
  width: 120px;
  height: 120px;

  left: 18%;
  bottom: -70px;

  background: radial-gradient(
    circle at 35% 30%,
    #d6ed72 0%,
    #afcc3e 50%,
    #739322 100%
  );

  opacity: 0.13;

  animation-delay: -1s;
}

/* YELLOW CIRCLE */

.circle-yellow {
  width: 85px;
  height: 85px;

  right: 22%;
  top: -45px;

  background: radial-gradient(
    circle at 35% 30%,
    #ffe98a 0%,
    #fdc72f 50%,
    #e7a900 100%
  );

  opacity: 0.15;

  animation-delay: -6s;
}

/* ==========================================
   OUTLINE CIRCLES
========================================== */

.sciom-bg-ring {
  position: absolute;

  border-radius: 50%;

  background: transparent;

  pointer-events: none;

  opacity: 0.1;

  animation: sciomRingFloat 10s ease-in-out infinite;
}

/* BLUE RING */

.ring-blue {
  width: 240px;
  height: 240px;

  left: -120px;
  bottom: -110px;

  border: 2px solid var(--sciom-blue);
}

/* PINK RING */

.ring-pink {
  width: 190px;
  height: 190px;

  right: -90px;
  bottom: 20px;

  border: 2px solid var(--sciom-pink);

  animation-delay: -4s;
}

/* ==========================================
   FLOATING ANIMATION
========================================== */

@keyframes sciomCircleFloat {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(0, -12px, 0) scale(1.04);
  }

  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes sciomRingFloat {
  0% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-15px) rotate(8deg);
  }

  100% {
    transform: translateY(0) rotate(0deg);
  }
}
.circle-top-yellow {
  width: 100px;
  height: 100px;
  right: 18%;
  top: -55px;
  background: radial-gradient(circle at 35% 30%, #fff0a8, #fdc72f);
  opacity: 0.18;
}

.circle-top-orange {
  width: 25px;
  height: 25px;
  right: 28%;
  top: 105px;
  background: #f4863b;
  opacity: 0.8;
}

.circle-top-pink {
  width: 18px;
  height: 18px;
  right: 12%;
  top: 75px;
  background: #d94b78;
  opacity: 0.55;
}

.circle-top-teal {
  width: 18px;
  height: 18px;
  right: 23%;
  top: 145px;
  background: #00a99d;
  opacity: 0.75;
}

.ring-top-orange {
  width: 105px;
  height: 105px;
  right: 25%;
  top: 55px;
  border: 2px solid rgba(244, 134, 59, 0.25);
  opacity: 1;
}

.sciom-bg-dots {
  position: absolute;

  width: 90px;
  height: 90px;

  right: 10%;
  top: 175px;

  opacity: 0.14;

  background-image: radial-gradient(#00518f 1.5px, transparent 1.5px);

  background-size: 12px 12px;

  pointer-events: none;
}
