/* -------------------------------------------------------------------------
   CLEAN HUBSPOT FORM DESIGN - PREMIUM SIDEBAR ADAPTATION
------------------------------------------------------------------------- */

/* .uffizio-hubspot-form,
.uffizio-hubspot-form *,
html,
body {
  scrollbar-width: none !important;
  /* Firefox * /
  -ms-overflow-style: none !important;
  /* IE and Edge * /
} */

.uffizio-hubspot-form::-webkit-scrollbar,
.uffizio-hubspot-form *::-webkit-scrollbar {
  display: none !important;
  /* Chrome, Safari, Opera */
  width: 0 !important;
  height: 0 !important;
}

/* Loader & Spinner */
.hs-loader {
  padding: 40px 0;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  color: #666;
  font-size: 14px;
}

.hs-spinner {
  width: 35px;
  height: 35px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #0057ff;
  border-radius: 50%;
  animation: hs-spin 0.8s linear infinite;
}

@keyframes hs-spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.uffizio-hubspot-form {
  padding: 5px 0;
  overflow: hidden !important;
  /* Stop internal scrolling */
}


.hs-form,
.hs-form-iframe {
  overflow: hidden !important;
  /* Force HubSpot wrappers to stay contained */
}


.hs-form-field {
  margin-bottom: 12px !important;
}

/* Labels & Errors */
.uffizio-hubspot-form label:not(.hs-form-booleancheckbox-display) {
  display: block !important;
  font-size: 16px;
  font-weight: 400;
  color: #484848;
  margin-bottom: 8px !important;
  font-family: "Inter", serif !important;
}

.uffizio-hubspot-form.no-labels label:not(.hs-form-booleancheckbox-display) {
  display: none !important;
}

.uffizio-hubspot-form label .hs-form-required {
  color: #ff0000 !important;
}

.hs-form .hs-error-msg {
  color: #ff0000;
  font-size: 13px;
  margin-top: 4px;
}

/* Base Input Styles */
.uffizio-hubspot-form input.hs-input:not([type="checkbox"]):not([type="radio"]),
.uffizio-hubspot-form select.hs-input,
.uffizio-hubspot-form textarea.hs-input,
.hs-input:not([type=file]) {
  background-color: #ECF6FF !important;
  /* border: 1px solid #cbd6e2 !important; */
  border: 1px solid #0057ff7d !important;
  border-radius: 6px !important;
  padding: 0 8px !important;
  height: 35px !important;
  min-height: 35px !important;
  width: 100% !important;
  font-size: 14px !important;
  line-height: 17px !important;
  color: #8b8b8b;
  box-sizing: border-box !important;
  transition: all 0.2s ease;
}


.uffizio-hubspot-form input.hs-input:focus,
.uffizio-hubspot-form select.hs-input:focus,
.uffizio-hubspot-form textarea.hs-input:focus {
  border-color: #0057ff !important;
  background-color: #fff !important;
  outline: none !important;
}

/* Specific Field Adjustments */
.uffizio-hubspot-form textarea.hs-input {
  height: auto !important;
  min-height: 50px !important;
  max-height: 80px !important;
  padding: 8px !important;
}

.uffizio-hubspot-form select.hs-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M1 4l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px !important;
}

/* Phone Field Alignment Fixes */
.uffizio-hubspot-form div.hs-fieldtype-intl-phone.hs-input {
  display: flex !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  gap: 4px !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.uffizio-hubspot-form .hs-fieldtype-intl-phone.hs-input select {
  flex: 0 0 25% !important;
  /* width: 75px !important; */
  /* max-width: 75px !important; */
  border-radius: 6px !important;
  /* border: 1px solid #d0e6fb !important; */
  background-color: #ECF6FF !important;
  height: 35px !important;
  padding: 0 18px 0 6px !important;
  font-size: 13px !important;
  appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M1 4l5 5 5-5z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 4px center !important;
}

.uffizio-hubspot-form .hs-fieldtype-intl-phone.hs-input input {
  flex: 1 1 auto !important;
  width: 100% !important;
  min-width: 0 !important;
  border-radius: 6px !important;
  border: 1px solid #d0e6fb !important;
  background-color: #ECF6FF !important;
  height: 35px !important;
}

/* Checkbox & Terms */
.uffizio-hubspot-form .hs-form-booleancheckbox-display {
  display: flex !important;
  align-items: flex-start;
  font-size: 13px !important;
  line-height: 15px !important;
  color: #666;
  cursor: pointer;
  align-items: center;
  margin-top: 5px !important;
}

.uffizio-hubspot-form .hs-form-booleancheckbox-display input {
  width: 16px !important;
  height: 16px !important;
  /* margin-right: 8px !important; */
  margin-top: 0 !important;
}

/* Submit Button & Footer */
.uffizio-hubspot-form .hs-submit {
  text-align: center;
  margin-top: 20px;
}

.uffizio-hubspot-form .hs-button {
  background: #0057ff !important;
  color: #fff !important;
  font-family: 'Antonio', sans-serif !important;
  font-size: 18px !important;
  font-weight: 500 !important;
  text-transform: uppercase !important;
  padding: 8px 40px !important;
  border: none !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
}

.uffizio-hubspot-form.no-labels .hs-button {
  width: 100% !important;
}


.uffizio-hubspot-form .hs-button:hover {
  background: #0046cc !important;
  transform: translateY(-1px);
}

.hs-form .hs-richtext {
  font-size: 13px;
  margin-top: 4px;
}

/* Fieldset Utilities */
.hs-form .fieldset {
  display: flex !important;
  gap: 15px !important;
  max-width: 100% !important;
}

.hs-form .fieldset .hs-form-field {
  flex: 1 !important;
}

@media (max-width: 768px) {
  .hs-form .fieldset {
    flex-direction: column !important;
    gap: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .hs-form .hs-form-field {
    width: 100% !important;
    margin-bottom: 15px !important;
  }

  .uffizio-hubspot-form input.hs-input,
  .uffizio-hubspot-form select.hs-input,
  .uffizio-hubspot-form textarea.hs-input {
    font-size: 16px !important;
    /* Prevents auto-zoom on iOS */
    padding: 0 12px !important;
  }

  /* Terms and Checkbox on mobile */
  .uffizio-hubspot-form .hs-form-booleancheckbox-display {
    font-size: 14px !important;
    line-height: 18px !important;
  }

  /* Full width button for easier thumb access */
  .uffizio-hubspot-form .hs-button {
    width: 100% !important;
    font-size: 16px !important;
    padding: 12px 20px !important;
  }

  /* Recaptcha responsiveness */
  .hs_recaptcha {
    transform: scale(0.8);
    transform-origin: left top;
    height: 65px;
    /* Adjust height for the scale */
  }
}

.uffizio-meeting-popup-modal {
  overflow: hidden !important;
  /* Force hide modal-level scrollbars */
}

/* Meeting Popup Specifics (3rd Option) */
.uffizio-meeting-popup-modal .uffizio-video-popup-modal-content {
  max-width: 900px;
  width: 95%;
  background-color: #fff !important;
  /* Restore white background container */
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
  border-radius: 11px;
  /* Match your requested border radius */
  overflow: hidden !important;
  /* Ensure no internal scroll leak */
  position: relative;
}


.uffizio-meeting-popup-modal .uffizio-video-popup-close {
  position: absolute;
  top: 15px;
  right: 15px;
  color: #333;
  background: #fff;
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  border-radius: 50%;
  font-size: 18px;
  z-index: 1000;
  /* Extremely high to stay over internal iframe content if possible */
  display: flex !important;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}

.uffizio-meeting-popup-modal .uffizio-video-popup-close:hover {
  background: #0057ff;
  color: #fff;
  transform: rotate(90deg);
}



.uffizio-meeting-popup-modal .uffizio-video-popup-modal-content-body {
  height: 720px !important;
  width: 100% !important;
  /* Fixed large height */
  overflow: hidden !important;
  /* Definitive scroll removal */
  position: relative;
  background: #fff !important;
  border-radius: 11px;
}

.uffizio-meeting-iframe-container {
  width: 100%;
  height: 100% !important;
  position: relative;
  overflow: hidden !important;
}



.uffizio-meeting-popup-modal .hs-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 5;
  background: #fff;
  padding: 30px 50px;
  border-radius: 11px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}



.myCustomForm .uffizio-meeting-popup-modal iframe {
  width: 100%;
  height: 100%;
  border: none;
}


.myCustomForm .hs-form-booleancheckbox-display {
  display: flex;
  /* align-items: baseline; */

}

.myCustomForm .hs-form-booleancheckbox-display input {
  margin-top: -1%;
}

.myCustomForm .legal-consent-container .hs-form-booleancheckbox-display input {
  width: 5% !important;
  float: none;

}

.myCustomForm input.hs-button.primary.large {
  background: #0057ff;
  text-transform: uppercase;
  font-weight: bold;

  color: white;
}

.myCustomForm input.hs-button.primary.large:hover {
  background: white;
  border: 1px solid #0057ff;
  color: #0057ff;
}

.myCustomForm .hs-input:not(.hs-form-booleancheckbox-display):not(.hs-fieldtype-intl-phone),
.myCustomForm .hs-input:not(.hs-form-booleancheckbox-display):not(.hs-fieldtype-intl-phone):focus-visible {
  background-color: #ECF6FF !important;
  /* border: 1px solid #cbd6e2 !important; */
  border: 1px solid #0057ff7d !important;
  outline: none;
}

.myCustomForm .field {
  margin-bottom: 10px;
}

.myCustomForm label {
  font-size: 14px;
  font-family: "Inter";
  margin-bottom: 6px;
  line-height: 2.5em;
}

.myCustomForm .hs-input.hs-fieldtype-intl-phone {
  background-color: transparent !important;
  border: none !important;
  padding: 0px !important;
}

#uffSidePanel .uffizio-hubspot-form .hs-form-booleancheckbox-display {
  align-items: self-start !important;
  margin-top: -4px !important;
}