/* * HubSpot Core CSS * Last updated: 2025-04-15 * Update includes: Enhanced reCAPTCHA handling to prevent white screen issues */ /* Main form container */ .hbspt-form { max-width: 100%; font-family: inherit; overflow: auto; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; } /* Success Message Styling - Safari Compatible */ .hbspt-form .submitted-message { /* Basic display properties */ display: block !important; visibility: visible !important; opacity: 1 !important; /* Sizing and structure */ width: 100% !important; min-height: 120px !important; /* Enforce minimum height for Safari */ height: auto !important; max-height: none !important; overflow: visible !important; /* Styling */ padding: 1rem 1.25rem !important; background-color: #151515 !important; border-radius: 0; text-align: center; margin: 0; box-sizing: border-box; position: relative !important; /* Ensure proper stacking */ z-index: 1 !important; /* Make sure it's on top */ /* Cut corners with alternate method for Safari */ border: none !important; } /* Safari-specific polygon cutout alternative */ @supports (-webkit-hyphens:none) { .hbspt-form .submitted-message { position: relative; clip-path: none !important; -webkit-clip-path: none !important; } .hbspt-form .submitted-message:before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-color: #151515; z-index: -1; clip-path: polygon(7px 0, calc(100% - 7px) 0, 100% 7px, 100% calc(100% - 7px), calc(100% - 7px) 100%, 7px 100%, 0 calc(100% - 7px), 0 7px); -webkit-clip-path: polygon(7px 0, calc(100% - 7px) 0, 100% 7px, 100% calc(100% - 7px), calc(100% - 7px) 100%, 7px 100%, 0 calc(100% - 7px), 0 7px); } } /* Ensure paragraphs inside submitted message are visible */ .hbspt-form .submitted-message p { display: block !important; visibility: visible !important; margin: 0.5rem 0 !important; font-size: 0.75rem !important; line-height: 1.5 !important; color: #fafafa !important; width: 100% !important; } .hbspt-form .submitted-message p:first-child { font-weight: 600 !important; font-size: 0.875rem !important; margin-top: 0 !important; margin-bottom: 0.75rem !important; } /* Direct Safari targeting */ @media not all and (min-resolution:.001dpcm) { @supports (-webkit-appearance:none) { .hbspt-form .submitted-message { display: block !important; background-color: #151515 !important; color: #fafafa !important; padding: 1.5rem !important; } } } /* Form element */ .hbspt-form form.hs-form { display: flex; display: -webkit-flex; /* Safari */ flex-direction: column; -webkit-flex-direction: column; /* Safari */ padding: 0; gap: 0; } /* All paragraph elements inside Hubspot form */ .hs-form>p { margin-top: 0; margin-bottom: 0; } /* Set margin right 0 for input wrapper */ .hs-form .input { margin-right: 0 !important; } /* Max width of fieldset element inside form */ .hs-form>fieldset { max-width: 100% !important; } /* Form Input base */ .hs-input { width: 100% !important; -webkit-appearance: none; -moz-appearance: none; appearance: none; border-radius: 0; } /* Field containers with responsive spacing */ .hs-form-field { margin-bottom: min(0.5vh, 0.5rem); } /* Input container styling */ .hbspt-form .input { padding: 0; border: 0; background-color: transparent; border-radius: 0; } /* Input fields with responsive styling */ .hbspt-form .hs-input:not([type="checkbox"]):not([type="radio"]) { width: 100%; padding: min(3vh, 1rem) min(3vw, 1.25rem); border: 0 solid #151515; --cut: min(7px, 1.2vw); /* Responsive cut corners */ -webkit-clip-path: polygon(var(--cut) 0%, calc(100% - var(--cut)) 0%, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0% calc(100% - var(--cut)), 0% var(--cut)); clip-path: polygon(var(--cut) 0%, calc(100% - var(--cut)) 0%, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0% calc(100% - var(--cut)), 0% var(--cut)); font-size: clamp(0.875rem, 1vw + 0.5rem, 1rem); color: #fafafa !important; line-height: 120%; box-sizing: border-box; transition: border-color 0.3s ease; -webkit-transition: border-color 0.3s ease; background-color: #151515; } .hbspt-form .hs-input:not([type="checkbox"]):not([type="radio"]):focus { outline: none; border-color: #151515; } /* Radio Inputs */ .hs-input[type=radio] { width: auto !important; margin-right: min(0.5rem, 2vw); min-height: auto !important; -webkit-appearance: radio; -moz-appearance: radio; appearance: radio; } /* Checkbox styling - with improved mobile/tablet sizing */ .hs-input[type=checkbox] { /* Desktop size with responsive scaling */ width: clamp(12px, 1vw + 0.5rem, 1rem) !important; height: clamp(12px, 1vw + 0.5rem, 1rem) !important; margin-right: min(0.5rem, 2vw) !important; min-height: 12px !important; min-width: 12px !important; cursor: pointer; -webkit-appearance: checkbox; -moz-appearance: checkbox; appearance: checkbox; } .hs-input[type=checkbox]:focus { box-shadow: 0 0 3px 1px #bdfd2e; -webkit-box-shadow: 0 0 3px 1px #bdfd2e; } .hs-input[type=checkbox]:checked { accent-color: #111; outline: 2px solid #111; } /* Checkbox Labels */ .hs-form-checkbox>label { font-weight: 400 !important; } .hbspt-form .hs-form-booleancheckbox { display: flex; display: -webkit-flex; /* Safari */ align-items: flex-start; -webkit-align-items: flex-start; /* Safari */ margin-bottom: 0; } .hbspt-form .hs-form-booleancheckbox-display { display: flex; display: -webkit-flex; /* Safari */ align-items: flex-start; -webkit-align-items: flex-start; /* Safari */ cursor: pointer; } .hs-form-booleancheckbox-display>span { margin-left: 0 !important; } .hbspt-form .hs-form-booleancheckbox span { font-size: 0.75rem; line-height: 1.5; color: var(--colors--zibra-grey-body, #999999); font-weight: 400; margin-left: 0; } /* Lists in form */ .hbspt-form ul.inputs-list { padding-left: 0; margin: 0; list-style: none; } /* Placeholder styling with responsive text */ .hs-input::placeholder { color: white !important; font-size: clamp(0.875rem, 1vw + 0.5rem, 1rem); opacity: 1; } .hs-input::-webkit-input-placeholder { /* Chrome/Safari/Opera */ color: white !important; font-size: clamp(0.875rem, 1vw + 0.5rem, 1rem); } .hs-input::-moz-placeholder { /* Firefox */ color: white !important; opacity: 1; font-size: clamp(0.875rem, 1vw + 0.5rem, 1rem); } .hs-input:-ms-input-placeholder { /* IE/Edge */ color: white !important; font-size: clamp(0.875rem, 1vw + 0.5rem, 1rem); } /* Label styling */ .hs-form label { display: none; margin-bottom: 0 !important; } /* Required field indicator */ .hbspt-form .hs-form-required { color: #e63946; margin-left: clamp(2px, 0.5vw, 4px); } /* Legal consent container and text */ .legal-consent-container .hs-form-booleancheckbox-display p { font-size: 0.75rem; } .hbspt-form .legal-consent-container { font-size: 0.75rem; line-height: 1.5; color: #555555; margin-bottom: 0; } .hbspt-form .legal-consent-container a { color: #4a90e2; text-decoration: none; } .hbspt-form .legal-consent-container a:hover { text-decoration: underline; opacity: 1; } /* Submit button with responsive styling */ .hbspt-form .hs-button.primary { background-color: #fafafa; color: #151515; border: none; padding: clamp(0.75rem, 2vh, 1.25rem) clamp(2rem, 8vw, 6rem); font-size: clamp(0.875rem, 1vw + 0.5rem, 1rem); font-weight: 400; cursor: pointer; width: 100%; --cut: min(7px, 1.2vw); /* Responsive cut corners matching input fields */ -webkit-clip-path: polygon(var(--cut) 0%, calc(100% - var(--cut)) 0%, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0% calc(100% - var(--cut)), 0% var(--cut)); clip-path: polygon(var(--cut) 0%, calc(100% - var(--cut)) 0%, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0% calc(100% - var(--cut)), 0% var(--cut)); transition: background-color 0.3s ease; -webkit-transition: background-color 0.3s ease; -webkit-appearance: none; -moz-appearance: none; appearance: none; border-radius: 0; } .hbspt-form .hs-button.primary:hover { background-color: #e0e0e0; } /* Error message styling with responsive text */ .hbspt-form .hs-error-msgs { list-style-type: none; margin: min(0.3vh, 5px) 0 0; padding: 0; } .hs-error-msgs>label { margin-bottom: 0 !important; } .hbspt-form .hs-error-msgs label { display: block; color: #e63946; font-size: clamp(0.7rem, 0.7vw + 0.5rem, 0.75rem); } /* Updated reCAPTCHA handling to prevent white screen issues */ .hbspt-form .hs_recaptcha { /* Make it visually hidden but still functional */ position: absolute !important; /* Changed from fixed to absolute for better compatibility */ bottom: 0 !important; /* Changed from -100px to 0 to ensure it remains in document flow */ left: 0 !important; opacity: 0.01 !important; pointer-events: none !important; visibility: visible !important; overflow: visible !important; /* Changed from hidden to visible */ height: 1px !important; /* Changed from 0 to 1px to ensure it renders */ width: 1px !important; clip: auto !important; clip-path: none !important; -webkit-clip-path: none !important; z-index: -1 !important; margin: 0 !important; padding: 0 !important; min-height: auto !important; /* Added to override any min-height settings */ max-height: none !important; /* Added to override any max-height settings */ } /* Style the reCAPTCHA badge but don't hide it completely */ .grecaptcha-badge { visibility: hidden !important; opacity: 0.01 !important; bottom: 0 !important; z-index: -999 !important; transform: scale(0.1) !important; /* Scale down instead of hiding */ transform-origin: bottom right !important; } /* Ensure reCAPTCHA iframe loads properly */ .hbspt-form iframe[src*="recaptcha"], .hbspt-form iframe[src*="google.com"] { opacity: 0.01 !important; pointer-events: none !important; position: absolute !important; /* Changed from fixed to absolute */ bottom: 0 !important; /* Changed to keep it in the document flow */ left: 0 !important; height: 1px !important; width: 1px !important; } /* Add a message about reCAPTCHA for accessibility and compliance */ .hbspt-form form::after { content: "This site is protected by reCAPTCHA."; display: block; font-size: 0.65rem; opacity: 0.5; text-align: center; margin-top: 0.5rem; } /* Layout for stacked form */ .hbspt-form .hs-form.stacked .field { margin-bottom: min(1vh, 10px); } /* Responsive layout adjustments */ @media (max-width: 991px) { .hs-input[type=checkbox] { width: 16px !important; height: 16px !important; min-width: 16px !important; min-height: 16px !important; } /* Improve tap target size by adding padding to the label */ .hs-form-booleancheckbox-display { padding: 2px 0; } } @media (max-width: 767px) { .form-columns-2 .hs-form-field { width: 100% !important; margin-right: 0 !important; } .hbspt-form .hs-input:not([type="checkbox"]):not([type="radio"]) { padding: 0.75rem 1rem; } .hbspt-form .hs-button.primary { padding: 0.75rem 3rem; } } /* Ensure even larger touch targets on very small screens */ @media (max-width: 479px) { .hs-input[type=checkbox] { width: 16px !important; height: 16px !important; min-width: 16px !important; min-height: 16px !important; } .hs-form-booleancheckbox-display { padding: 3px 0; } /* iOS Safari fixes */ select, textarea, input[type="text"], input[type="email"] { font-size: 16px !important; /* Prevents zoom on iOS */ } } /* Handle very small heights */ @media (max-height: 600px) { .hbspt-form { max-height: 90vh; overflow-y: auto; -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */ } .hs-form-field { margin-bottom: 0.25rem; } .hbspt-form .hs-input:not([type="checkbox"]):not([type="radio"]) { padding: 0.5rem 0.75rem; } .hbspt-form .hs-button.primary { padding: 0.5rem 3rem; } } /* Handle landscape orientation on mobile */ @media (max-height: 450px) and (orientation: landscape) { .form-columns-2 { display: flex; display: -webkit-flex; /* Safari */ flex-wrap: wrap; -webkit-flex-wrap: wrap; /* Safari */ gap: 2%; } .form-columns-2 .hs-form-field { width: 49% !important; } .hbspt-form .hs-input:not([type="checkbox"]):not([type="radio"]) { padding: 0.4rem 0.6rem; } .hs-submit { margin-top: 0.5rem; } .hbspt-form .hs-button.primary { padding: 0.4rem 2rem; } .hbspt-form .legal-consent-container { font-size: clamp(0.65rem, 0.6vw + 0.5rem, 0.75rem); } /* Keep checkboxes readable size in landscape */ .hs-input[type=checkbox] { width: 16px !important; height: 16px !important; min-width: 16px !important; min-height: 16px !important; } } /* Additional styling for input elements */ .hs-input { height: 6.666vh; max-height: 3.75rem; min-height: 2.5rem; margin-top: 0; margin-bottom: 0; margin-left: 0; padding-top: 1.25rem; padding-right: 1rem; padding-bottom: 1.25rem; padding-left: 1rem; border-top-style: none; border-top-width: 1px; border-top-color: hsla(0, 0.00%, 70.00%, 1.00); border-right-style: none; border-right-width: 1px; border-right-color: hsla(0, 0.00%, 70.00%, 1.00); border-bottom-style: none; border-bottom-width: 1px; border-bottom-color: hsla(0, 0.00%, 70.00%, 1.00); border-left-style: none; border-left-width: 1px; border-left-color: hsla(0, 0.00%, 70.00%, 1.00); background-color: var(--colors--zibra-middle-black, #151515); } /* Fixed the missing double colon in the placeholder selector */ .hs-input::placeholder { color: hsla(255.75, 100.00%, 15.69%, 0.50); font-size: 1rem; } .hs-input:focus { border-top-color: #150050; border-right-color: #150050; border-bottom-color: #150050; border-left-color: #150050; } /* Safari-specific fixes */ @supports (-webkit-touch-callout: none) { /* iOS Safari specific styles */ .hbspt-form .hs-input:not([type="checkbox"]):not([type="radio"]) { padding-left: min(3vw, 1.25rem); padding-right: min(3vw, 1.25rem); } .hs-input[type=checkbox] { opacity: 1 !important; } } /* Firefox-specific fixes */ @-moz-document url-prefix() { .hs-input[type=checkbox] { opacity: 1; } .hbspt-form .submitted-message { height: auto; min-height: 100px; } } /* Improvements (optional) */ /* Add for better Edge support */ @supports (-ms-ime-align:auto) { .hbspt-form .hs-input:not([type="checkbox"]):not([type="radio"]), .hbspt-form .hs-button.primary { border: 1px solid #151515; clip-path: none; -webkit-clip-path: none; } } /* Focus styles for keyboard navigation */ .hs-input:focus-visible { outline: 2px solid #bdfd2e; outline-offset: 1px; } /* Screen reader only text for accessibility */ .hs-screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; } /* Add subtle animation to success message */ @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } @-webkit-keyframes fadeIn { from { opacity: 0; -webkit-transform: translateY(10px); } to { opacity: 1; -webkit-transform: translateY(0); } } .hbspt-form .submitted-message { animation: fadeIn 0.4s ease-in-out; -webkit-animation: fadeIn 0.4s ease-in-out; } /* Add will-change for smoother animations */ .hbspt-form .hs-button.primary { will-change: background-color; } /* Optimize transitions */ .hbspt-form .hs-input:not([type="checkbox"]):not([type="radio"]) { transition: border-color 0.2s ease; -webkit-transition: border-color 0.2s ease; } /* Prevent iOS zoom on focus for all input types */ @supports (-webkit-touch-callout: none) { input, select, textarea { font-size: 16px !important; } }