.cb-service-portal__inner {
  display: flex;
  grid-column-gap: 10rem;
  align-items: flex-start;
}
/* LEFT */
.cb-service-portal__left {
  flex-basis: 60%;
}

.cb-service-portal__left h2 {
  font-size: 3rem;
  position: relative;
  margin-bottom: 3rem;
}

.cb-service-portal__left h2:after {
  content: "";
  position: absolute;
  height: 3px;
  width: 136px;
  background-color: var(--black);
  left: 0;
  bottom: -0.5rem;
}

.cb-service-portal__left p {
  margin-bottom: 2rem;
}

.cb-service-portal__sections {
  display: flex;
  grid-column-gap: 4rem;
  justify-content: flex-start;
  flex-wrap: wrap;
  grid-row-gap: 2rem;
}

.cb-service-portal__section {
  width: calc((100% - 2 * 4rem) / 3);
}

.cb-service-portal__section img {
  /* width: 90%; */
  max-width: 10.25rem;
  max-height: 240px;
  object-fit: cover;
}

/* .cb-service-portal__section a {
  position: relative;
} */

.cb-service-portal__section h3 {
  position: relative;
  max-width: calc(100% - 1.5rem);
  word-wrap: break-word;
  font-size: 1.375rem;
  margin: 0;
  margin-top: 0.5rem;
  transition: all ease 0.3s;
  padding-right: 1rem;
}

.cb-service-portal__section h3:after {
  content: "";
  position: absolute;
  background-image: url("/wp-content/themes/cbra-child/assets/icons/link-arrow.svg");
  background-position: center center;
  background-size: contain;
  background-repeat: no-repeat;
  right: 0;
  width: 24px;
  height: 24px;
  transition: all ease 0.3s;
}

.cb-service-portal__section:hover h3:after {
  right: -0.5rem;
}

.cb-service-portal__section:hover h3 {
  color: var(--grey);
}

.cb-service-portal__section a {
  color: var(--black);
  text-decoration: none;
}

.cb-service-portal__section p {
  margin: 0;
  margin-top: 0.5rem;
}

/* RIGHT */
.cb-service-portal__right {
  flex-basis: 40%;
  background-color: var(--light-light-grey);
  padding-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  /* margin-top: -192px;*/
  z-index: 1;
}

.cb-service-portal__right h3 {
  background-color: var(--yellow);
  text-align: center;
  margin: 0;
  padding: 2rem 1rem;
  margin-bottom: 2rem;
  background-image: url("/wp-content/themes/cbra-child/assets/icons/rectangle-top.png");
  background-position: bottom right;
  background-size: 20%;
  background-repeat: no-repeat;
  height: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.cb-service-portal__detail {
  display: flex;
  align-items: center;
  grid-column-gap: 1.5rem;
  font-family: var(--font-primary);
  margin-bottom: 2rem;
}

.cb-service-portal__detail img {
  flex-basis: 10%;
  max-width: 28px;
}

.cb-service-portal__contact {
  padding: 0 4rem;
  background-image: url("/wp-content/themes/cbra-child/assets/icons/rectangle-bottom.png");
  background-position: top right;
  background-size: 20%;
  background-repeat: no-repeat;
}

.cb-service-portal__detail-content {
  width: 100%;
}

.cb-service-portal__detail-content p {
  margin: 0;
  margin-bottom: 0.5rem;
  font-size: 1.375rem;
  font-family: var(--font-primary);
}

.cb-service-portal__detail-content > p {
  font-weight: bold;
}

.cb-service-portal__detail-content a {
  font-size: 1.375rem;
  color: var(--black);
  transition: all ease 0.3s;
}

.cb-service-portal__detail-content a:hover {
  color: var(--grey);
}

.cb-service-portal__detail-content h4 {
  margin: 1rem 0;
}

.cb-service-portal__time {
  display: flex;
  font-family: var(--font-primary);
}

.cb-service-portal__time p:first-of-type {
  flex-basis: 40%;
}

.cb-service-portal__right .cb-link--primary {
  padding: 0.8rem 4rem;
  border: 3px solid var(--black);
  cursor: pointer;
  font-family: var(--font-secondary);
  font-size: 1rem;
  margin: 0 4rem;
}

.cb-service-portal__right .cb-link--primary:hover {
  background-color: var(--black);
  color: var(--white);
}
.cb-service-portal__right .cb-link--primary:hover:after {
  background-image: url("/wp-content/themes/cbra-child/assets/icons/link-arrow-white.svg");
  background-position: center center;
  background-size: contain;
  background-repeat: no-repeat;
  right: 1rem;
  width: 24px;
  height: 24px;
}

@media only screen and (max-width: 1441px) {
  .cb-service-portal__contact {
    padding: 0 2rem;
  }
  .cb-service-portal__right h4,
  .cb-service-portal__right a,
  .cb-service-portal__detail-content p {
    font-size: 1.2rem;
  }
}

/* FORM */
.cb-service-portal .cb-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
}
.cb-service-portal .cb-modal__inner {
  background-color: var(--white);
  width: 70%;
  height: 90vh;
  padding: 4.625rem 1rem 3.125rem 4.25rem;
  margin: auto;
  display: flex;
  align-items: center;
  flex-direction: row-reverse;
  position: relative;
}
.cb-service-portal .cb-modal__close {
  display: flex;
  flex-flow: row;
  align-items: center;
  cursor: pointer;
  position: absolute;
  top: 6%;
  right: 2%;
}
.cb-service-portal .cb-modal__close button {
  background-color: transparent;
  border: none;
  font-family: var(--font-secondary);
  padding: 0;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
}

.cb-service-portal .cb-form__box.cb-form__foa {
  width: 30%;
}

.cb-service-portal .cb-form__box.cb-form__title {
  width: 60%;
}

.cb-service-portal .cb-form__box.cb-form__fname,
.cb-service-portal .cb-form__box.cb-form__lname,
.cb-service-portal .cb-form__box.cb-form__company-id,
.cb-service-portal .cb-form__box.cb-form__company,
.cb-service-portal .cb-form__box.cb-form__employee-id,
.cb-service-portal .cb-form__box.cb-form__ssid,
.cb-service-portal .cb-form__box.cb-form__phone,
.cb-service-portal .cb-form__box.cb-form__contact-person {
  width: 45%;
}

.cb-service-portal .cb-form__box.cb-form__topic {
  width: 90.3%;
}
.buak-training .cb-service-portal .cb-form__box.cb-form__email {
  width: 90.3%;
}

.cb-service-portal .cb-form__box.cb-form__message {
  width: 90.3%;
  height: 100%;
}

.cb-service-portal #cb_input_message {
  height: 50px;
}
.cb-service-portal .cb-form__submit svg {
  display: none;
  width: 2rem;
  height: 2rem;
  margin-right: 1rem;
}
.cb-service-portal .cb-form__submit {
  width: 90.5%;
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.cb-service-portal lottie-player {
  position: absolute;
  right: -2rem;
}

.cb-homepage-header + .cb-service-portal .cb-service-portal__right {
  margin-top: -220px;
}

/* TABLET */
@media only screen and (max-width: 1141px) {
  .cb-service-portal__inner {
    flex-direction: column;
    align-items: flex-start;
    grid-row-gap: 3rem;
  }
  .cb-service-portal__right {
    margin-top: 0;
  }
  .cb-homepage-header + .cb-service-portal .cb-service-portal__right {
    margin-top: 0;
  }
  .cb-service-portal .cb-modal__inner {
    width: 90%;
    height: 90vh;
  }
}

/* CUSTOM BREAKPOINT */
@media only screen and (max-width: 1365px) {
  .cb-service-portal__inner {
    grid-column-gap: 5rem;
  }
  .cb-service-portal__right h3 {
    font-size: 1.5rem;
  }
  .cb-service-portal__section h3:after {
    right: unset;
  }
  .cb-service-portal__right h4,
  .cb-service-portal__right a,
  .cb-service-portal__detail-content p {
    font-size: 1rem;
  }
}

@media only screen and (max-height: 650px) {
  .cb-service-portal .cb-modal__inner {
    height: 100vh;
    overflow: auto;
  }
  .cb-service-portal .cb-modal__inner .cb-form {
    position: relative;
    top: 7.5rem;
    padding-bottom: 2rem;
  }
}

/* MOBILE */
@media only screen and (max-width: 786px) {
  .cb-service-portal__left h2 {
    font-size: 2rem;
  }
  .cb-service-portal__section h3 {
    font-size: 1.125rem;
    /* width: 90px; */
    max-width: unset;
    padding-right: 24px;
  }
  .cb-service-portal__section h3:after {
    right: 0;
  }
  .cb-service-portal__left {
    flex-basis: 100%;
    max-width: 100%;
  }
  .cb-service-portal__section img {
    max-width: 100%;
  }
  .cb-service-portal__sections {
    grid-column-gap: 1rem;
    flex-wrap: wrap;
    grid-row-gap: 1rem;
  }
  .cb-service-portal__section p {
    display: none;
  }
  .cb-service-portal__right {
    flex-basis: 90%;
    flex-grow: 0;
  }
  .cb-service-portal__right h3 {
    text-align: left;
    font-size: 1.375rem;
    padding: 1rem 2rem;
  }

  .cb-service-portal__right h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
  }
  .cb-service-portal__contact {
    padding-left: 2rem;
    padding-right: 0;
  }
  .cb-service-portal__right .cb-link--primary {
    margin: 0 2rem;
  }
  .cb-service-portal__detail-content p,
  .cb-service-portal__detail-content a {
    font-size: 1.125rem;
  }
  .cb-service-portal .cb-modal__inner {
    padding: 5rem 1rem 1rem 1rem;
    flex-direction: column;
    width: 100%;
    height: 100%;
    overflow: scroll;
  }
  .cb-service-portal .cb-modal__close {
    align-self: flex-end;
  }
  .cb-service-portal .cb-modal__inner .cb-form {
    position: static;
  }
  .cb-service-portal .cb-form__box.cb-form__foa,
  .cb-service-portal .cb-form__box.cb-form__title,
  .cb-service-portal .cb-form__box.cb-form__fname,
  .cb-service-portal .cb-form__box.cb-form__lname,
  .cb-service-portal .cb-form__box.cb-form__company-id,
  .cb-service-portal .cb-form__box.cb-form__company,
  .cb-service-portal .cb-form__box.cb-form__employee-id,
  .cb-service-portal .cb-form__box.cb-form__social-security,
  .cb-service-portal .cb-form__box.cb-form__phone,
  .cb-service-portal .cb-form__box.cb-form__contact-person,
  .cb-service-portal .cb-form__box.cb-form__topic,
  .cb-service-portal .cb-form__box.cb-form__ssid {
    width: 100%;
  }
  .cb-service-portal .cb-form__box input,
  .cb-service-portal .cb-form__box select {
    height: 2rem;
    font-size: 16px;
  }
  .cb-service-portal .cb-form__box.cb-form__message {
    height: auto;
    width: 100%;
  }
  .cb-service-portal .cb-modal__close {
    top: 2%;
  }
  .cb-service-portal__section {
    width: calc((100% - 2 * 1rem) / 3);
  }
}

/*  PRINT STYLES */

/* @media print {
  .cb-service-portal__inner {
    display: block;
  }

  .cb-service-portal__left {
    width: 100%;
  }

  .cb-service-portal__left h2:after {
    display: none;
  }

  .cb-service-portal__section img {
    display: none;
  }

  .cb-service-portal__sections {
    display: block;
    column-gap: 0;
    row-gap: 0;
  }

  .cb-service-portal__section {
    width: 100%;
    margin-bottom: 2rem;
    page-break-inside: avoid;
  }

  .cb-service-portal__section h3:after {
    display: none;
  }

  .cb-service-portal__section p {
    font-size: 1rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
  }

  .cb-service-portal__right {
    width: 100%;
    padding: 0;
    page-break-inside: avoid;
  }

  .cb-service-portal__right .cb-link--primary {
    display: none;
  }

  .cb-service-portal__detail img {
    display: none;
  }

  .cb-service-portal__time {
    display: block;
    font-size: 1rem;
  }

  .cb-service-portal .cb-modal,
  .cb-service-portal .cb-modal__close {
    display: none;
  }
} */

/* New Print Styles*/

@media print {
  .cb-service-portal__inner {
    display: none !important;
  }

  .cb-service-portal__left {
    display: none !important;
  }

  .cb-service-portal__section img {
    display: none !important;
  }

  .cb-service-portal__section h3:after {
    display: none !important;
  }

  .cb-service-portal__right {
    display: none !important;
  }

  .cb-service-portal__right .cb-link--primary {
    display: none !important;
  }

  .cb-service-portal__time {
    display: none !important;
  }

  .cb-service-portal .cb-modal,
  .cb-service-portal .cb-modal__close {
    display: none !important;
  }

  .cb-service-portal__detail img {
    display: none !important;
  }

  .cb-service-portal__section {
    display: none !important;
  }

  .cb-service-portal__section p {
    display: none !important;
  }

  .cb-service-portal__contact {
    display: none !important;
  }

  .cb-service-portal__right {
    display: none !important;
  }

  .cb-service-portal .cb-form__submit {
    display: none !important;
  }
  .cb-footer__links-wrapper {
    display: none !important;
  }
}
