/* ===== Section wrapper ===== */
.custom-two-column-module {
  display: grid;
  grid-template-columns: 12fr 8fr;
  gap: 2rem;
  align-items: stretch;
}
.custom-two-column-module__col--image {
  position: relative;
  isolation: isolate;

}
.custom-two-column-module,
.custom-two-column-module * {
  box-sizing: border-box;
}

.custom-two-column-module {
  max-width: 100%;
  overflow-x: hidden;
}

.custom-two-column-module__col {
  min-width: 0;
}
.custom-two-column-module__col--text {
  height: auto;
  min-height: 0;
  overflow: visible;
}



/* ===== Columns ===== */
/* ===== Column 1 (text) ===== */
.custom-two-column-module__col--text {
  display: flex;
  flex-direction: column;
}


/* Top content */
.custom-two-column-module__top > * + * {
  margin-top: 1rem;
}
.custom-two-column-module__top.contact-module  p {
  max-width: 60%;
}

/* Bottom-aligned content */
.custom-two-column-module__bottom {
  margin-top: auto;
}


.custom-two-column-module__bottom > * + * {
  margin-top: 0px;
}

/* ===== Column 2 (image) ===== */
.custom-two-column-module__col--image {
  background-size: cover;
  background-position: center;
  position: relative;
  min-height: 700px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* 🔥 key for bottom alignment */
}
@media (min-width: 1400px) {
  .custom-two-column-module__col--image {
    min-height:900px;
  }
}
/* Inner wrapper on image */
.custom-two-column-module__inner {
  padding: 40px;
  width: 100%;
}

/* Two inner columns */
.custom-two-column-module__inner--two-cols {
  display: flex;
  gap: 1rem;
}

/* Inner columns - base styles */
.custom-two-column-module__inner-col {
  /* Removed flex: 1 to allow custom widths */
  min-width: 0; /* Prevents content from breaking the flexbox layout */
}

/* Left column: 70% minus its share of the gap */
.custom-two-column-module__inner-col--left {
  flex: 0 0 calc(70% - (1rem * 0.3)); /* Subtract 30% of the gap */
  max-width: calc(70% - (1rem * 0.3));
  text-align: left;
  font-size: 16px !important;
}

/* Right column: 30% minus its share of the gap */
.custom-two-column-module__inner-col--right {
  flex: 0 0 calc(30% - (1rem * 0.7)); /* Subtract 70% of the gap */
  max-width: calc(30% - (1rem * 0.7));
  text-align: right;
  font-size: 16px !important;
}



.custom-two-column-module {
  background-color: #000;
}
.custom-two-column-module {
  color: #fff;
}
.custom-two-column-module__col--image {
  border-radius: 12px;
  overflow: hidden;
}

.custom-two-column-module__col--image {
  position: relative;
  overflow: hidden; /* already needed for border-radius */
}

/* Bottom gradient overlay */
.custom-two-column-module__col--image::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.35) 20%,
    rgba(0, 0, 0, 0.15) 40%,
    rgba(0, 0, 0, 0) 65%
  );
}

.custom-two-column-module__inner {
  position: relative;
  z-index: 1;
}
/* ===== Responsive (safe only) ===== */

/* Tablet & down */
@media (max-width: 991px) {
  /* Reduce outer spacing only */
  .custom-two-column-module {
    gap: 2rem;
    grid-template-columns: 1fr;
}

.custom-two-column-module__col--image {
  min-height: 500px;
}
  /* Adjust inner card padding */
  .custom-two-column-module__inner {
    padding: 2rem;
  }
  .custom-two-column-module__col--image {
  background-size: cover;
  background-position: center;
}
  /* Add breathing room between text blocks */
  .custom-two-column-module__top {
    padding-bottom: 24px;
  }

  .custom-two-column-module__bottom {
    padding-top: 24px;
  }

  /* Remove extra right padding used on desktop */
  .custom-two-column-module__col--text {
    padding-right: 0;
  }
  .custom-two-column-module__inner-col--left,
  .custom-two-column-module__inner-col--right {
    flex: 0 0 100%;
    max-width: 100%;
    text-align: left; /* Optional: align left on mobile for better readability */
  }
    .custom-two-column-module__inner--two-cols {
    flex-wrap: wrap; /* Allows the right column to drop below the left if needed */
    gap: 1rem;      /* Ensures vertical spacing when stacked */
  }

  .custom-two-column-module__inner-col--left,
  .custom-two-column-module__inner-col--right {
    flex: 0 0 100%;
    max-width: 100%;
    text-align: left; 
  }
   }
@media (max-width: 1400px) {
  /* 1. Force the stack and set the internal gap to 30px */
  .custom-two-column-module__inner--two-cols {
    flex-direction: column;
    gap: 10px !important; 
    display: block;
  }

  /* 2. Reset widths and remove individual column padding/margins */
  .custom-two-column-module__inner-col--left,
  .custom-two-column-module__inner-col--right {
    flex: 0 0 100%;
    max-width: 100%;
    text-align: left;
    padding: 0;
    margin: 0;
  
  }
}
/* make sure the modal can overlap everything */
.dnd-section:has(.custom-modal.is-active) {
  position: static !important;
}


.custom-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 1010;
}

.custom-modal.is-active {
  display: block;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.5);
}



/* =========================
   MODAL CONTAINER
========================= */

.modal-box {
  padding: 20px;
  padding-top:100px!important;
  max-height: 90%;
  overflow: scroll;
  background: #000;
  color: #fff;
  max-width: 1000px;
  border-radius: 24px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  position: absolute;
  z-index: 1004;
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
}
@media (min-width: 900px) {
  .modal-box{
    padding: 40px 40px;
    padding-top: 110px !important;
    max-height: 90% !important;

  }
}
.modal-box .modal_header{
  color: white;
  margin-bottom: 30px;
  background: linear-gradient(90deg,#b388eb,#f7a8c4);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  border-top-right-radius: 24px;
  border-top-left-radius: 24px;
  text-align: left;
  padding: 20px;
  padding-left: 95px;
}
.modal-box h4 {
  font-size: 36px;
  font-weight: 500;
  margin: 0 0 40px 0;
}
.modal-box .hs_cos_wrapper h3{
  margin: 0!important;
}
/* Close button */
.modal-close {
  position: absolute;
  top: 25px;
  right: 30px;
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}

/* =========================
   FORM LAYOUT
========================= */

.modal-box .hs-form fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 0 0;
}

.modal-box .form-columns-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.modal-box .hs_firstname, .modal-box .hs_lastname{
  width:100% !important;
}
.modal-box .form-columns-1 {
  display: block;
}

/* =========================
   LABELS
========================= */
.modal-box .hs-form-field {
  margin-bottom: 10px; !important
}
.modal-box .hs-form-field label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 5px;
  color: #fff;
}

.modal-box .hs-form-required {
  color: #fff;
  margin-left: 2px;
}

/* =========================
   INPUTS & TEXTAREA
========================= */

.modal-box .hs-input,
.modal-box textarea.hs-input {
  width: 100% !important;
  background: transparent;
  border: 2px solid lightgray;
  border-radius: 10px;
  padding: 14px 16px;
  color: #fff;
  font-size: 15px;
  outline: none;
  transition: border 0.2s ease, background 0.2s ease;
}

.modal-box .hs-input:focus,
.modal-box textarea.hs-input:focus {
  border-color: #fff;
}

.modal-box textarea.hs-input {
  min-height: 110px;
  resize: vertical;
}

/* Remove HubSpot default error styling */
.modal-box .hs-error-msgs {
  margin: 6px 0 0 0;
  padding: 0;
  position: relative;
}

.modal-box .hs-error-msg {
  font-size: 13px;
  color: #ff6b6b;
}

/* =========================
   LEGAL TEXT
========================= */

.modal-box .legal-consent-container {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: #ccc;
}

.modal-box .legal-consent-container a {
  color: #fff;
  text-decoration: underline;
}

/* =========================
   CHECKBOX
========================= */

.modal-box .hs-form-booleancheckbox-display {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: #fff;
}

.modal-box input[type="checkbox"] {
  width: 18px !important;
  height: 18px;
  margin-top: 3px;
  accent-color: #fff;
}

/* =========================
   SUBMIT BUTTON
========================= */
.modal-box .hs-recaptcha{
  float: left;
}
.modal-box .hs-submit {
  display: flex;
  justify-content: flex-end;
}

.modal-box .legal-consent-container p {
  font-size: 14px !important;
}
.modal-box .hs-richtext{
  line-height: 1.2;
}

.modal-box .hs-button.primary {
  background: linear-gradient(90deg,#b388eb,#f7a8c4);
  color: white;
  border: none;
  padding: 18px 32px !important;
  border-radius: 10px;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s ease;
  max-height: 60px;
}

.modal-box .hs-button.primary:hover {
  background: #ffffff;
}
