{% scope_css %}
/* ==========================================================================
   1. Base Module & Layout Framework
   ========================================================================== */
.baseModuleStyle {
  margin-block-start: 100px;
  position: relative;
  overflow: hidden;
  {% if module.style.spacing.change_spacing %}{% endif %}
  {% if module.style.background_property.bg_type == 'bgImage' %}
    ;
  {% elif module.style.background_property.bg_type == 'bgColor' %}
    background-color: rgba(, );
  {% endif %}
} 

.baseModuleParent { 
  position: relative; 
  z-index: 1; 
}

.only-form-main .content-wrapper {
  max-width: 1300px !important;
  margin-inline: auto !important;
  width: 100%;
}

/* Overlay Frameworks */
{% if module.style.background_property.bg_type == 'bgImage' %}
.baseModuleOverlay { 
  position: absolute; 
  inset: 0; 
  background-color: rgba(, calc( / 100)); 
}
{% endif %} 

{% if module.style.background_property.bg_type == 'bgGradient' %}
.overlayimage { 
  background-image: url(); 
  background-position: top center; 
  background-repeat: no-repeat; 
  background-size: cover; 
  opacity: 1; 
  transition: background 0.3s, border-radius 0.3s, opacity 0.3s; 
  height: 100%; 
  width: 100%; 
  inset: 0; 
  position: absolute; 
}
{% endif %} 

/* ==========================================================================
   2. Typography & Core Layout Parts
   ========================================================================== */
.only-form-main .title h2 { 
  color: rgba(, ); 
}

.only-form-main .top-content .left-part {
  width: 50%;
  {% if module.content_module.top_content_width %}
    width: %;
  {% endif %}
}

{% if module.content_module.adjust_title_font_size and module.content_module.title_font_size %}
.only-form-main .top-content .left-part .title h2 {
  font-size: px;
}
{% endif %}

.only-form-main .top-content.box_off .left-part {
  width: 100%;
  text-align: center;
}

/* Feature Showcase Box Styling */
.only-form-main .top-content .box-content {
  border-radius: 10px;
  padding: 46px 40px;
  margin-bottom: 20px;
  background: linear-gradient(deg, rgba(, ), rgba(, ));
}

.only-form-main .top-content .box-content .left-text {
  width: 130px;
  position: relative;
  
  & h2 {
    color: rgba(, );
  }
  
  &:before {
    content: '';
    position: absolute;
    top: 0;
    width: 70px;
    height: 1px;
    background-color: #fff;
  }
}

.only-form-main .top-content .box-content .right-text {
  width: calc(100% - 130px);
  padding-left: 30px;
  max-width: 390px;
  position: relative;
  
  &::after {
    height: 10px;
    width: 15px;
    background-image: url(https://25171161.fs1.hubspotusercontent-eu1.net/hubfs/25171161/profitroom_august_2024/Image/tick%20arrow.svg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    content: '';
    position: absolute;
    bottom: 19px;
    right: 7px;
  }
  
  & h3 {
    color: #fff;
    & span { font-family: Fudge Sauce; font-size: 40px; font-weight: 400; line-height: 40px; }
  }
}

/* ==========================================================================
   3. Form Global Core Styles
   ========================================================================== */
.only-form-main .bottom-content .form-content { 
  padding: 50px 60px 45px 60px !important;
  border-radius: 10px;
  margin-top: 50px !important;
  max-width: 1300px !important;
  margin-inline: auto !important;
  background: linear-gradient(90deg, rgba(, ), rgba(, ));
}

.only-form-main .bottom-content .form-content form {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Modern Shared Rules for Typography Layouts */
.only-form-main :is(label > span, .bottom-content .form-content form :is(label, legend), .bottom-content form .hs-richtext :is(h1, h2, h3, h4, h5, h6, p, .only-form-main .bottom-content .form-content form .submitted-message)) {
  color: #ffffff;
}

.only-form-main .bottom-content .form-content form input:is([type=email], [type=file], [type=number], [type=password], [type=search], [type=tel], [type=text]), 
.only-form-main .bottom-content .form-content form :is(select, textarea) {
  background: transparent;
  color: rgb(255 255 255 / 70%);
}

.only-form-main .bottom-content .form-content form select option {
  background-color: #0033cc;
  font-weight: 700;
}

.only-form-main .bottom-content .form-content form .hs-form-field {
  margin-bottom: 25px;
}

.only-form-main .bottom-content .form-content form fieldset:nth-of-type(5) .hs-form-field {
  margin-bottom: 30px;
}

.only-form-main .bottom-content form .hs-dependent-field legend.hs-field-desc + .input {
  min-height: 49px;
}

.only-form-main .bottom-content .form-content .hs_submit.hs-submit {
  margin-top: 60px;
}

.only-form-main .bottom-content .form-content form .submitted-message {
  font-size: 20px;
  font-weight: 700;
  text-align: center;
}

.only-form-main .bottom-content form a {
  text-decoration: none !important; 
  color: #00CCFF; 
  transition: opacity 0.3s ease; 
  font-weight: 300;
  
  &:hover { opacity: 0.5; }
}

/* Multi-Column Layout Structuring via Flexbox/Float systems */
.only-form-main .form-content form fieldset.form-columns-2 {
  & .hs-form-field {
    width: 50%;
    float: left;
  }
  
  & .hs-dependent-field {
    float: left;
    width: calc(50% - 10px);
    margin-left: 10px;
    
    & :is(.hs-form-field, .hs-form-field .input) {
      width: 100%;
      margin-right: 0;
    }
  }
}

/* Checkbox & Boolean Toggle States */
.only-form-main .bottom-content .form-content form li.hs-form-booleancheckbox {
  & label {
    padding-left: 95px;
    
    & > span::after {
      background: transparent;
      height: 45px;
      width: 45px;
      border-radius: 10px;
    }
    
    & > span::before {
      background-color: #00CCFF;
      background-position: 50%;
      background-repeat: no-repeat;
      background-size: cover;
      content: "";
      display: none;
      height: 11px;
      left: 14px;
      -webkit-mask-image: url(https://25171161.fs1.hubspotusercontent-eu1.net/hubfs/25171161/profitroom_august_2024/Image/Check%20Arrow.svg);
      mask-image: url(https://25171161.fs1.hubspotusercontent-eu1.net/hubfs/25171161/profitroom_august_2024/Image/Check%20Arrow.svg);
      -webkit-mask-position: center;
      mask-position: center;
      -webkit-mask-repeat: no-repeat;
      mask-repeat: no-repeat;
      -webkit-mask-size: 9px;
      mask-size: 17px;
      position: absolute;
      top: 18px;
      width: 17px;
      z-index: 99;
    }
    
    & input:checked ~ span::before { display: block; }
    & > input:checked + span::after { border: 1px solid #00CCFF; }
  }
}

.only-form-main .bottom-content form li.hs-form-checkbox label > span::before {
  top: 5px;
}

/* ==========================================================================
   4. Legal & Consent Configs
   ========================================================================== */
.only-form-main .bottom-content .form-content form .legal-consent-container {
  & > div + div { margin-top: 25px; }
  & :is(li.hs-form-booleancheckbox, .field.hs-form-field) { margin: 0; }
}

.only-form-main .bottom-content form span.toggle-button.Whitecolor {
  display: inline;
} 

.only-form-main :is(.legal-consent-container .hs-form-booleancheckbox-display > span, .form-content form .hs-richtext) {
  opacity: 0.7;
  font-size: 14px !important;
  
  & .toggle-button {
    color: #0cf;
    text-decoration: underline;
    cursor: pointer;
  }
}

.only-form-main .form-content form .legal-consent-container {
  &, & *:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6) {
    font-size: 14px !important;
    line-height: 1.6;
    
    label.hs-error-msg.hs-main-font-element {
      font-size: 12px !important;
      margin-inline-start: 95px;
    }
    
  }
}

form ul.no-list.hs-error-msgs.inputs-list li label.hs-error-msg.hs-main-font-element
/* ==========================================================================
   5. Input Handling, Prefixes & Call-To-Actions
   ========================================================================== */
.url-input-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
  
  & .url-prefix {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
    font-size: 14px;
    font-weight: 300;
    z-index: 1;
    transition: opacity 0.3s ease;
  }
  
  & input {
    padding-left: 75px !important;
    
    &.has-value + .url-prefix { opacity: 0; }
  }
}

/* Custom Width Configurations */
{% if module.content_align.custom_width %}
.customWidthOption {
  max-width: px; 
  width: 100%; 
  text-align: {% if module.content_align.content_opt.text_alignment %}{% else %}left{% endif %}; 
  margin: {% if module.content_align.content_opt.box_alignment %}{% else %}0 auto{% endif %}; 
}
{% endif %}

/* Button Override Settings */
{% if module.content_module.cta_group.override_button_style %}
.baseModuleStyle .button-of a {
  background-color: rgba(, );
  color: rgba(, );
  border-color: rgba(, );
  
  &:hover {
    background-color: rgba(, );
    color: rgba(, );
    border-color: rgba(, );
  }
} 
{% endif %}

/* ==========================================================================
   6. Form Validation & Error States
   ========================================================================== */
.only-form-main :is(.latin-only-invalid, .phone-invalid, .rooms-invalid, .website-invalid) {
  border-color: #f2545b !important;
  box-shadow: 0 0 5px rgba(204, 51, 204, 0.3) !important;
}

.only-form-main :is(.latin-only-error, .phone-error, .rooms-error, .website-error) {
  color: #fff !important;
  font-size: 12px;
  margin-top: 10px;
  font-weight: 400;
  display: block;
}

:where(.only-form-main) :is(.hs-form-required, .hs-input.invalid.error) {
  border-color: #f2545b !important;
}

.only-form-main .hs-form-required {
  color: #f2545b !important;
}

:where(.only-form-main) .hs-error-msg {
  padding-inline: 4px;
  padding-block: 0px;
  border-radius: 2px;
  background-color: #f2545b;
  color: #CC33CC !important;
  font-size: 12px;
  margin-block-start: 5px;
  font-weight: 400;
}

:where(.only-form-main) form ul.no-list.hs-error-msgs.inputs-list li label.hs-error-msg.hs-main-font-element {
  font-size: 12px;
  display: inline-block;
  border: none;
  color: #fff !important;
}

/* ==========================================================================
   7. Google reCAPTCHA Overrides & Alignment Rules via :has() & :is()
   ========================================================================== */
.only-form-main :is([style*="text-align: center"], [style*="text-align:center"]) {
  text-align: left !important;
}

.only-form-main :is(.rc-anchor-center-container, .rc-anchor-center-item) {
  text-align: left !important;
  margin-left: 0 !important;
}

.only-form-main :is(.g-recaptcha, .hs-form-field .g-recaptcha, .hs-form-field [class*="captcha"]) {
  text-align: left !important;
  margin-top: 50px !important;
  margin-inline: 0 auto !important;
  float: none !important;
  display: block !important;
}

.only-form-main iframe:is([src*="recaptcha"], [title="reCAPTCHA"]) {
  margin-top: 50px !important;
  margin-inline: 0 auto !important;
  display: block !important;
}

.only-form-main iframe[src*="recaptcha"] {
  margin-top: 30px !important;
  float: none !important;
}

/* Select targets containing captcha elements modernly */
.only-form-main div:has(:is(.g-recaptcha, iframe[src*="recaptcha"])) {
  text-align: left !important;
}

.only-form-main div[style*="width: 304px"] {
  text-align: left !important;
  margin-inline: 0 auto !important;
  display: block !important;
}

/* ==========================================================================
   8. Responsive System Breakpoints
   ========================================================================== */

/* Tablet Responsive Breakpoint */
@media(max-width: 991px) {
  .baseModuleStyle {
    {% if module.style.spacing.change_spacing %}{% endif %}
  } 
  .only-form-main .top-content {
    & .left-part { width: 100% !important; & .title h2 { font-size: 32px; } }
    & .right-part { padding-left: 0; width: 100%; padding-top: 50px; }
  }
  .only-form-main :is(.bottom-content .form-content, .content-wrapper) {
    max-width: 1080px !important;
    margin-inline: auto !important;
  }
  .only-form-main .bottom-content .form-content {
    padding: 50px 40px 45px !important;
    
    & form {
      & .legal-consent-container > div + div { margin-top: 30px; }
      & li.hs-form-booleancheckbox label { padding-left: 65px; }
    }
  }
}

/* Mobile Responsive Breakpoints */
@media(max-width: 767px) {
  .baseModuleStyle {
    {% if module.style.spacing.change_spacing %}{% endif %}
  } 
  .only-form-main .top-content {
    & .left-part .title h2 { font-size: 32px; }
    & .box-content {
      & .left-text { position: relative; width: 100%; }
      & .right-text { max-width: 100%; padding-left: 0; padding-top: 10px; width: 100%; }
    }
  }
  .only-form-main .bottom-content .form-content {
    padding: 35px 24px 30px 24px !important;
    width: 100%;
    
    & form {
      & fieldset.form-columns-2 > .hs-form-field {
        width: 100% !important;
        &:first-child { margin-right: 0 !important; }
        &:last-child { margin-left: 0; }
      }
      & fieldset.form-columns-2 .hs-dependent-field { margin-left: 0px; width: 100%; }
      & li.hs-form-booleancheckbox label {
        padding-left: 40px;
        min-height: 28px;
        & > span::after { height: 25px; width: 25px; }
        & > span::before { height: 11px; left: 7px; -webkit-mask-size: 9px; mask-size: 9px; top: 9px; width: 13px; }
      }
      & .hs-form-field { margin-bottom: 25px; }
    }
    & .hs_submit.hs-submit { margin-top: 30px; }
  }
  .url-input-wrapper {
    & .url-prefix { left: 12px; font-size: 13px; font-weight: 300; }
    & input { padding-left: 70px !important; }
  }
  .only-form-main :is(.g-recaptcha, iframe[src*="recaptcha"], iframe[title="reCAPTCHA"]) {
    margin-top: 50px !important;
  }
}

@media(max-width: 640px) {
  .only-form-main .top-content .left-part .title h2 { font-size: 32px; }
}
{% end_scope_css %}