.contact-section {
  padding: var(--section-padding-vertical) 0;
  flex-grow: 1;
  display: flex;
  align-items: center;
}

.contact-section .container {
  width: 100%;
  max-width: 1300px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
}

.bg-dark_blue {
  background-color: var(--secondary-color);
}

.bg-white {
  background-color: var(--background-color);
}

.contact-layout {
  display: flex;
  align-items: center;
  gap: 24px;
}

.contact-left {
  flex: 1;
  min-width: 320px;
}

.contact-headline {
  margin-bottom: 1.5rem;
  font-size: clamp(2.6rem, 4vw + 1rem, 4.2rem);
}

.contact-headline .headline-part {
  display: inline;
}

.contact-section.bg-dark_blue .contact-headline .headline-part.color-default {
  color: var(--text-color-light);
}

.contact-section.bg-white .contact-headline .headline-part.color-default {
  color: var(--text-color);
}

.contact-headline .headline-part.color-pink {
  color: var(--primary-color);
}

.contact-headline .headline-part.color-light-blue {
  color: var(--accent-color-blue);
}

.contact-section.bg-dark_blue .contact-left p {
  color: var(--text-color-light);
}

.contact-section.bg-white .contact-left p {
  color: var(--text-color);
}

.contact-left p {
  margin-bottom: 2rem;
}

.contact-right {
  flex: 1.25;
  position: relative;
}

.panel {
  display: none;
}

.panel.is-active {
  display: block;
}

.pdf-block {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr;
  gap: 0 10px;
  align-items: center;
}

ul.pdf-block-content {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pdf-block-content li {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.pdf-block-content li i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgb(217 26 141 / 20%);
  box-shadow: 0 0 6px rgb(217 26 141 / 12.5%);
  color: var(--primary-color);
  padding: 6px;
  overflow: hidden;
  border-radius: 4px;
  flex-shrink: 0;
}

.pdf-block-content li span {
  font-size: 13px;
}

.bg-dark_blue .pdf-block-content li i {
  color: var(--text-color-light);
  border: 2px solid rgb(255 255 255 / 25%);
  box-shadow: 0 0 6px rgb(255 255 255 / 12.5%);
}

.bg-dark_blue .pdf-block-content li {
  color: var(--text-color-light);
}

.pdf-img img {
  max-width: 230px;
  height: auto;
  width: 100%;
}

.pdf-block>.pdf-img {
  grid-area: 1/2/-1/-1;
}

.meetings-iframe-container {
  height: 1020px;
  min-height: 1020px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: none;
}

.meetings-iframe-container iframe {
  height: 100% !important;
}

.hubspot-form-panel form.hs-form {
  background: var(--background-color);
  color: var(--text-color);
  padding: 42px 36px 32px;
  border-radius: 8px;
  border: 1px solid var(--secondary-color-darker);
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  width: 100%;
  min-height: 625px;
}

.contact-section.bg-white .hubspot-form-panel form.hs-form {
  background-color: var(--secondary-color);
  color: var(--text-color-light);
  border-color: var(--secondary-color-darker);
}

.contact-section.bg-custom {
  background: radial-gradient(circle at 50% 50%, rgb(217 26 141 / 12.25%), rgb(30 58 95 / 12.5%) 100%);
  border-bottom: 4px solid transparent;
  border-image: linear-gradient(to right, rgb(217 26 141 / 62.5%), rgb(30 58 95 / 75%)) 1;
}

.contact-section.bg-custom .hubspot-form-panel form.hs-form {
  background: var(--secondary-color-light);
  box-shadow: 0 2px 32px rgb(30 58 95 / .125);
  color: var(--text-color-light);
}

.page-template-page-template-services .contact-section.bg-custom {
  background: var(--background-color);
}

.hubspot-form-panel form.hs-form>* {
  flex-basis: 100%;
}

.hubspot-form-panel fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  width: 100% !important;
  max-width: 100% !important;
}

.hubspot-form-panel .hs-form-field {
  width: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hubspot-form-panel .hs-form-field label {
  color: var(--text-color);
  font-weight: 600;
}

.contact-section.bg-white .hubspot-form-panel .hs-form-field label,
.contact-section.bg-white .hubspot-form-panel .hs-richtext,
.contact-section.bg-custom .hubspot-form-panel .hs-form-field label,
.contact-section.bg-custom .hubspot-form-panel .hs-richtext {
  color: var(--text-color-light);
}

.hubspot-form-panel fieldset.form-columns-2 {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.hubspot-form-panel form.hs-form fieldset.form-columns-2 .hs-form-field {
  flex-basis: 100%;
  display: block;
  width: 100%;
  float: unset;
  display: grid;
  flex-direction: column;
  flex-wrap: wrap
}

.hubspot-form-panel form.hs-form fieldset.form-columns-2 .input {
  margin: 0;
  display: flex;
  align-self: flex-start
}

.hubspot-form-panel form.hs-form fieldset.form-columns-2 .hs-form-field .hs-error-msgs {
  margin: 4px 0 0;
  list-style: none;
  padding: 0;
  /* color: orangered */
}

.hubspot-form-panel form.hs-form fieldset.form-columns-2 .hs-form-field .hs-error-msgs li label {
  /* color: orangered; */
  font-weight: 500;
  font-size: 13px
}

.hubspot-form-panel form.hs-form fieldset.form-columns-2 .hs-form-field .hs-error-msgs,
.hubspot-form-panel form.hs-form fieldset.form-columns-2 .hs-form-field .hs-error-msgs li {
  line-height: 1
}

.hubspot-form-panel form.hs-form fieldset.form-columns-2 .hs-form-field label {
  display: flex;
  align-items: flex-end;
  line-height: 1
}

.hubspot-form-panel ul.inputs-list {
  margin: 10px 0 0
}

.hubspot-form-panel fieldset.form-columns-2 .hs-form-field {
  flex-basis: calc(50% - 10px);
}


/* === START: loader === */
.iq-hsmf-loader {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 540px;
  /* fills the box while the form loads; tune to your form's real height */
  box-sizing: border-box;
  background: #FFF;
  backdrop-filter: blur(5px);
  color: var(--text-color);
  padding: 48px;
  border-radius: 8px;
  border: 1px solid rgb(21 41 74 / 32.5%);
}

.iq-hsmf-loader::after {
  content: "";
  width: 32px;
  height: 32px;
  border: 3px solid rgba(0, 0, 0, 0.15);
  border-top-color: #333;
  border-radius: 50%;
  animation: iq-spin 0.7s linear infinite;
}

/* include only if iq-spin isn't already defined elsewhere */
@keyframes iq-spin {
  to {
    transform: rotate(360deg);
  }
}

/* === END: loader === */


/* === START: COMBINED FIELD STYLES === */
.hubspot-form-panel input[type="text"],
.hubspot-form-panel input[type="email"],
.hubspot-form-panel input[type="tel"],
.hubspot-form-panel select,
.hubspot-form-panel textarea,
.hs-custom-style>div input:not([type=image]):not([type=submit]):not([type=button]):not([type=radio]):not([type=checkbox]):not([type=file]),
.hs-custom-style fieldset input:not([type=image]):not([type=submit]):not([type=button]):not([type=radio]):not([type=checkbox]):not([type=file]),
.hs-custom-style>div select,
.hs-custom-style fieldset select,
.hs-custom-style>div textarea,
.hs-custom-style fieldset textarea {
  width: 100% !important;
  padding: 16px 14px;
  background-color: var(--background-color);
  border: 1px solid var(--secondary-color-light);
  border-radius: 6px;
  color: var(--text-color);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* === END: COMBINED FIELD STYLES === */

.hubspot-form-panel fieldset:has(.hs-form-field[class*="hs_utm_"]) {
  display: none !important;
}

.hubspot-form-panel select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23333333' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 1em;
  padding-right: 40px !important;
}

.hubspot-form-panel textarea {
  height: 50px !important;
  min-height: 50px;
  resize: vertical;
}

.hubspot-form-panel input:focus,
.hubspot-form-panel select:focus,
.hubspot-form-panel textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px var(--primary-color-light-bg);
}

.hubspot-form-panel select option {
  background: var(--background-color);
  color: var(--text-color);
}

.contact-callout {
  background-color: var(--primary-color-light-bg);
  border: 1px solid var(--primary-color-medium-border);
  border-radius: 8px;
  padding: 2rem;
  margin-top: 2rem;
  text-align: center;
}

.contact-section.bg-dark_blue .contact-callout {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: var(--secondary-color-light);
  color: white;
}

.contact-callout p {
  margin-bottom: 0;
}

.contact-callout p:not(:last-child) {
  margin-bottom: 1rem;
}

.hubspot-form-panel .hs-richtext {
  font-size: 12px;
  opacity: 1;
  line-height: 1.5;
  color: var(--text-color);
  text-align: left;
}

.hubspot-form-panel .actions {
  text-align: center;
}

.hubspot-form-panel .hs-form-required {
  display: none;
}

.hubspot-form-panel .hs-button {
  display: inline-block;
  width: auto;
  min-width: 200px;
  background-color: var(--primary-color);
  color: var(--text-color-light);
  border: none;
  padding: 18px 40px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.hubspot-form-panel .hs-button:hover {
  background-color: var(--primary-color-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217, 26, 141, 0.3);
}

.hubspot-form-panel .hs-richtext a {
  color: var(--primary-color);
  text-decoration: underline;
}

.hubspot-form-panel .hs-legal-consent-container {
  text-align: left;
}

.hubspot-form-panel li.hs-form-booleancheckbox {
  list-style-type: none;
  padding-left: 0;
}

.hubspot-form-panel li.hs-form-booleancheckbox::marker {
  content: "";
}

.hubspot-form-panel .hs-form-booleancheckbox-display>span {
  display: flex;
  align-items: flex-start;
  gap: 1em;
  font-size: 1.2rem;
}

.hubspot-form-panel input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 0.4em;
  accent-color: var(--primary-color);
}

.hubspot-form-panel .inputs-list {
  padding-left: 0;
}

@media (min-width: 992px) {
  /* .contact-left {
    position: sticky;
    top: 18%;
    margin-top: 12%;
    left: 0;
    align-self: flex-start;
  } */
}

@media (max-width: 991px) {
  .contact-layout {
    flex-direction: column;
    gap: 24px;
  }

  .contact-left {
    text-align: center;
    min-width: 0;
  }

  .contact-right {
    width: 100%;
  }

  .hubspot-form-panel form.hs-form,
  .meetings-iframe-container {
    width: 100%;
  }

  .hubspot-form-panel form.hs-form {
    height: auto;
    min-height: 0;
    padding: 32px 24px;
  }

  .hubspot-form-panel .hs-button {
    width: 100%;
  }

  .pdf-block-wp {
    max-width: 600px;
    margin: auto;
  }

  .pdf-block>p {
    grid-column: 1/-1;
  }
}

@media (max-width: 646px) {
  .meetings-iframe-container {
    height: 1930px;
    min-height: 1930px;
  }
}

@media (max-width: 600px) {
  .contact-section .container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 4vw;
    padding-right: 4vw;
  }

  .hubspot-form-panel fieldset.form-columns-2 {
    flex-direction: column;
    gap: 24px;
  }

  .hubspot-form-panel fieldset.form-columns-2 .hs-form-field {
    flex-basis: 100%;
  }

  .pdf-block>.pdf-img {
    grid-area: 2/2/3/3;
  }

  .pdf-img img {
    max-width: 160px;
  }
}


/* Contact Us page only: intro below the headline */
.contact-intro {
  margin: var(--space-sm) 0 var(--space-md);
  color: inherit;
}

.contact-intro .contact-intro__desc {
  margin: 0 0 var(--space-md);
  font-size: clamp(1.6rem, 1.2vw, 1.8rem);
  line-height: 1.65;
  color: inherit;
  opacity: .9;
}

.contact-intro__checks {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-intro__checks li {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  font-size: 1.5rem;
  line-height: 1.55;
  color: inherit;
}

.contact-intro__checks i {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.2rem;
  height: 2.2rem;
  margin-top: .1rem;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: var(--text-color-light);
  font-size: 1.1rem;
}

.contact-intro__quote {
  margin: var(--space-md) 0 0;
  padding: var(--space-sm) var(--space-sm) var(--space-sm) 2rem;
  border-left: 3px solid var(--primary-color);
  border-radius: 0 8px 8px 0;
  background-color: var(--primary-color-light-bg);
}

.contact-intro__quote blockquote {
  margin: 0 0 var(--space-xs);
}

.contact-intro__quote blockquote p {
  margin: 0;
  font-size: 1.6rem;
  font-style: italic;
  line-height: 1.6;
  color: inherit;
}

.contact-intro__quote figcaption {
  font-size: 1.3rem;
  line-height: 1.4;
  color: inherit;
  opacity: .8;
}

.contact-intro__quote figcaption strong {
  display: block;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary-color);
  opacity: 1;
}

@media (max-width: 900px) {
  .contact-intro {
    margin-bottom: var(--space-sm);
  }

  .contact-intro__checks li {
    font-size: 1.4rem;
  }

  .contact-intro__quote {
    margin-top: var(--space-sm);
  }

  .contact-intro__quote blockquote p {
    font-size: 1.5rem;
  }
}