.pageBg {
  background-image:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 100%),
    url("/wp-content/uploads/images/page-bg/contact_bg.webp") !important;
}

.main {
  /* padding: 15px 0 !important; */
  padding: 15px 0 60px 0 !important;
  align-items: center !important;
}

.leftSide .logo {
  /* margin-bottom: 2vh; */
  width: 50%;
  max-width: 30vh;
  display: none;
}

.contactInfo {
  font-size: 0.75rem !important;
  display: none;
  margin-top: 0.5rem 0;
}

#logoContainer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  position: absolute;
  width: 100%;
  top: 0;
  padding: 2vh 2vh 1vh 5%;
  gap: 1.5rem;
  z-index: 10;
  display: none;
}

#buttongroup {
  display: flex;
  gap: 1rem !important;
}

/* ------------------------------- */

.disclaimer {
  /* display: none; */
  color: rgba(255, 255, 255, 0.7) !important;
  position: fixed;
  /* bottom: 4.5rem; */
  top: 1rem;
  left: 1rem;
  z-index: 10;
  font-size: clamp(0.75rem, 1.8vh, 1.8vw);
}

.disclaimer-content {
  background-color: var(--color-primary);
  backdrop-filter: blur(5px);
  border-radius: 0.5rem;
  font-size: 16px;
  line-height: 0.4rem;
  text-align: justify;
  padding: 1rem 2rem 2rem;
  overflow-y: auto;
  color: var(--color-tertiary);
  font-weight: 200;
}

.disclaimer-content ul {
  font-family: var(--font-body-light);
  font-size: max(0.9rem, 12px);
  color: var(--color-quinary);
}

.disclaimer-content h1 {
  color: var(--color-white) !important;
  color: white;
  text-shadow: none;
  margin-bottom: 1.5rem;
  font-weight: 700;
  font-size: max(1.5rem, 24px) !important;
  letter-spacing: 1px;
}

.disclaimer-content li {
  text-align: left;
  line-height: 1.8;
  margin: 0 0 1rem;
  letter-spacing: 0.04rem;
  list-style: none;
}

.disclaimer-content li::marker {
  color: var(--color-secondary);
}

.disclaimer-content li strong {
  color: var(--color-white);
  font-weight: var(--font-weight-semibold);
}

.disclaimerLink {
  text-decoration: underline !important;
  font-size: small;
}

/*------Cards CSS-----------------------*/

.col3 ul {
  padding: 1rem;
}

/*------General CSS-----------------------*/

.rightSide {
  padding: 0 5% 0 2%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.leftSide {
  pointer-events: visible !important;
  display: flex;
  /* flex-direction: column; */
  overflow: hidden;
  align-items: center;
  text-align: center;
  /* justify-content: space-between; */
  justify-content: end;
  padding: 0.5rem 2% 0.5rem 5%;
  align-items: end !important;
}
.leftSide hr {
  display: none;
  margin: 1rem 0;
  background-color: #3d3843;
  width: 50% !important;
}

.leftSide h4 {
  display: none;
  color: white;
  font-family: var(--font-body);
  font-size: 14px;
  margin-bottom: 1rem;
}
.leftSide div {
  pointer-events: visible !important;
  pointer-events: visible !important;
}

.logo {
  display: none;
}

.companyLogo {
  width: 70px;
  max-height: 40px;
  margin-top: 0;
}

.companyLogo.cc-text {
  width: 40px !important;
}

.companyLogo[src*="CW"] {
  width: 50% !important;
}

.agentImage {
  width: max(14vh, 12vw);
  min-width: 80px;
  max-width: 140px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  border: solid 5px var(--color-tertiary);
  border-radius: 50%;
  display: none;
}

.col3 {
  flex-direction: column;
  justify-content: center;
  gap: 4vh;
  overflow: hidden;
  overflow: auto;
  padding: 1rem 0;
  /* width: 80%; */
  flex-wrap: nowrap !important;
  width: 100%;
  align-items: center;
}

.leftSide h1 {
  display: none;
  margin: 0;
  line-height: 1.2em !important;
}

h3,
.h3 {
  /* font-size: 16px; */
  color: var(--color-white);
  white-space: nowrap;
  word-break: keep-all;
  text-align: center;
  margin: 0.5rem 0;
  font-family: var(--font-header) !important;
  text-shadow: 0 0 15px #000;
  font-size: clamp(20px, 3vw, 26px);
}

#disclaimer {
  display: none;
  max-height: 250px;
  max-width: 90%;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0.5rem;
  pointer-events: all !important;
}

#disclaimer h6 {
  font-weight: 200;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

ul > li:last-child {
  margin: 0;
}

.contentIcon {
  height: min(32px, 22vh);
}

.rightSide {
  padding: 0;
}

/* .leftSide {
  padding: 0;
} */

.phoneIcon {
  margin-right: 3px;
  vertical-align: middle;
  /* width: max(1.8vw, 1.8vh); */
}

.contactCard {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: fit-content;
  /* gap: 1.25rem; */
  gap: 0;
  width: 100%;
  padding: 0 !important;
  min-width: 260px;
}
.contactCardTop {
  width: 100%;
  background-color: transparent;
  flex-direction: column;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contactCardTop h4 {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-gray-300);
  /* display: none; */
}

.contactCardBottom {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: rgb(0 0 0 / 50%);
  /* padding: 1rem; */
  padding: 1rem;
  position: relative;
  width: fit-content;
  height: auto;
  margin: 0;
  border-radius: 16px;
  font-size: 14px;
  backdrop-filter: blur(4px);
  outline: 5px solid rgba(125, 125, 125, 0.05);
  border-bottom: 3px solid var(--color-secondary-70);
  gap: 1rem;
  width: 100%;
}

.contactCardBottom a[href^="http"] {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 35px;
}

.contactCardBottom div {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.col3 div a[href^="mailto"] {
  display: inline-block;
  font-size: clamp(0.9rem, 1.7vw, 13.5px);
  color: #cfc4c0;
  font-weight: 200;
}

.col3 div a[href^="tel"] {
  font-weight: 300;
}

.contactCard .shortenedLine a {
  display: inline-block;
  white-space: nowrap;
  max-width: 5.5em;
  text-overflow: ellipsis;
  overflow: hidden;
  vertical-align: bottom;
  transition:
    max-width 1s,
    color 0.3s !important;
  cursor: pointer;
  font-size: clamp(16px, 2vw, 18px);
  color: white;
}
.contactCard .shortenedLine a.opened {
  max-width: 40em;
}

.contactCard .shortenedLine a:hover,
.disclaimerLink:hover {
  color: var(--color-white) !important;
}

main[data-page-url="contacts"] body.hasHover a:hover,
main[data-page-url="contacts"] body.hasHover a:active {
  color: var(--color-secondary) !important;
}

/* -------------------------------------------- */

/* Styles for mobile landscape screens */
@media only screen and (min-width: 412px) and (max-height: 767px) and (orientation: landscape) {
  .pageBg {
    background-image:
      linear-gradient(to right, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 100%),
      url("/wp-content/uploads/images/page-bg/contact_bg.webp") !important;
  }
  .main {
    padding: 15px 0 40px 0 !important;
  }
  .leftSide {
    flex-direction: column;
    justify-content: space-between;
    align-items: start;
    text-align: left;
    width: 33% !important;
    gap: 1rem;
  }
  .contactCard {
    width: fit-content !important;
  }
  .rightSide {
    padding: 1% 2% 2% 0;
    width: 100%;
  }
  .contactCardTop h4 {
    display: block;
  }
  .col3 {
    gap: 2rem;
    width: 100% !important;
  }
  .contactCardBottom {
    gap: 1rem;
    padding: 1.25rem;
  }
  h3,
  .h3 {
    margin: 0.75rem 0;
  }
  .disclaimer {
    position: fixed;
    top: initial;
    left: 4rem;
    bottom: 6rem;
    z-index: 10;
  }
  .leftSide h1 {
    display: inline-block;
    margin: 0;
    line-height: 1.2em !important;
  }
}

@media only screen and (min-width: 768px) {
  .main {
    flex-direction: row;
    padding: 40px 0;
  }
  .leftSide {
    flex-direction: column;
    align-items: start !important;
    gap: 1rem;
    width: 33% !important;
  }
  #logoContainer {
    display: flex;
  }
  .contentIcon {
    height: min(64px, 22vh);
  }
  .agentImage {
    width: max(13vh, 12vw);
  }
  .contactCardTop h4 {
    display: block;
  }
  h3,
  .h3 {
    margin: 0.5rem 0;
  }
  .companyLogo {
    display: inline;
  }
  .leftSide .logo {
    display: block;
    width: 11vh !important;
  }
  .leftSide hr {
    display: block;
    margin: 1rem 0 !important;
  }
  .disclaimer {
    position: fixed;
    top: initial;
    left: 3rem;
    bottom: 5rem;
    z-index: 10;
  }
  .leftSide h1 {
    display: inline-block;
    margin: 0;
    line-height: 1.2em !important;
  }
  #buttongroup {
    margin-top: 0.75rem;
  }
}

@media only screen and (min-width: 768px) and (max-width: 1023px) and (orientation: portrait) {
  .col3 {
    justify-content: start;
    flex-direction: column;
  }
}

@media only screen and (min-width: 768px) and (max-width: 1023px) and (orientation: landscape) {
  .col3 {
    flex-direction: column;
  }
}

@media only screen and (min-width: 1024px) {
  .leftSide {
    align-items: start !important;
  }
  .contactCard {
    width: fit-content !important;
    gap: 0.5rem;
  }
  .agentImage {
    width: 14vw;
  }
  .col3 {
    flex-direction: row;
    gap: 1.25rem 2.5rem;
    padding: 0;
    align-items: center;
    flex: 1;
    flex-wrap: wrap !important;
    align-content: start;
    justify-content: center;
  }
  .leftSide .logo {
    display: block;
    margin-bottom: 1rem;
    width: 12vh !important;
  }
  .leftSide h4 {
    display: block;
  }
  .leftSide hr {
    display: block !important;
  }
  .contactInfo {
    display: block;
    margin: 0.5rem 0;
  }
  .registerBtn {
    position: static !important;
    transform: translate(0) !important;
  }
}

@media only screen and (min-width: 1024px) and (orientation: portrait) {
  .col3 {
    align-content: center;
  }
}

@media only screen and (min-width: 1023px) and (max-width: 1279px) and (orientation: landscape) {
  .col3 {
    align-content: center !important;
  }
}

@media only screen and (min-width: 1280px) {
  h3,
  .h3 {
    margin: 0.5rem 0;
  }
  .col3 div a[href^="mailto"] {
    display: inline-block;
  }
  .phoneIcon {
    vertical-align: sub;
    /* width: 1.8vh; */
  }
  .disclaimer {
    position: fixed;
    top: initial;
    left: 2rem;
    bottom: 5rem;
    z-index: 10;
  }
  .col3 {
    align-content: center;
  }
}

@media only screen and (min-width: 1441px) and (max-width: 1920px) {
  #buttongroup {
    margin-top: 0.75rem;
  }
}

@media only screen and (min-width: 1500px) {
  .col3 {
    justify-content: space-evenly;
  }
  .rightSide {
    padding: 0 5% 0 2% !important;
  }
}

@media only screen and (min-width: 1921px) {
  #buttongroup {
    margin-top: 0.75rem;
  }
}

@media only screen and (min-width: 481px) and (max-height: 430px) and (orientation: landscape) {
  .leftSide {
    gap: 1rem;
  }
  .disclaimer {
    position: fixed;
    top: initial;
    left: 2rem;
    bottom: 8rem;
    z-index: 10;
  }
}

@media only screen and (orientation: landscape) {
  .leftSide {
    align-items: start !important;
  }
  .pageBg {
    background-image:
      linear-gradient(to right, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 100%),
      url("/wp-content/uploads/images/page-bg/contact_bg.webp") !important;
  }
}

@media (min-width: 1024px) and (orientation: landscape) {
  #buttongroup {
    margin-top: 0.75rem;
  }
}
