/*
 * Lead forms (Contact Form 7 + Flamingo) — replaces the HubSpot embeds.
 *
 * Part 1 is HubSpot's own form stylesheet, copied verbatim from what the
 * HubSpot embed injected on onebeat.co (2026-11-22), with its per-form scope
 * class renamed to .ob-hsf. Keeping it identical keeps the forms identical.
 * The theme's own .hs-form rules (single-post.css, request-demo-popup.css,
 * Customizer CSS) still apply on top, as before.
 *
 * Part 2 adapts CF7's extra markup so it adds nothing visible.
 * Part 3 styles the blog-listing subscribe form (was a static form).
 */

/* Part 1: HubSpot form styles */
.ob-hsf .inputs-list.inline-list li{vertical-align:top;display:inline-block;word-wrap:break-word;padding-right:16px}
.ob-hsf .inputs-list.inline-list li:after{clear:both}
.ob-hsf .inputs-list.inline-list li input{float:left}
.ob-hsf .inputs-list.inline-list.inline-list-2 li{width:50%}
.ob-hsf .inputs-list.inline-list.inline-list-2 li:nth-child(2n){padding-right:0}
.ob-hsf .inputs-list.inline-list.inline-list-3 li{width:33%}
.ob-hsf .inputs-list.inline-list.inline-list-3 li:nth-child(3n){width:34%;padding-right:0}
.hs-fieldtype-intl-phone.hs-input{padding:0;background:none;border:none;height:auto}
.hs-fieldtype-intl-phone.hs-input:after{clear:both;content:" ";display:table}
.hs-fieldtype-intl-phone.hs-input .hs-input{margin-bottom:0}
.hs-fieldtype-intl-phone.hs-input input{width:68%!important;float:right}
.hs-fieldtype-intl-phone.hs-input select{float:left;width:30%!important}
@media (max-device-width:480px) and (min-device-width:320px),(max-width:400px){.ob-hsf>.hs-phone>.input>.hs-fieldtype-intl-phone.hs-input>input.hs-input{width:68%!important}
.ob-hsf>.hs-phone>.input>.hs-fieldtype-intl-phone.hs-input>select.hs-input{width:30%!important}}
.hs-fieldtype-textarea.hs-input{resize:vertical}
.ob-hsf .hs-button{white-space:pre-wrap}
.ob-hsf .hs-richtext{word-break:break-word}
.ob-hsf fieldset{border:0;padding:0;margin:0;max-width:500px}
.ob-hsf fieldset.form-columns-1 .hs-input{width:95%}
.ob-hsf fieldset.form-columns-1 .input{margin-right:8px}
.ob-hsf fieldset.form-columns-1 input[type=checkbox],.ob-hsf fieldset.form-columns-1 input[type=radio]{width:auto}
.ob-hsf fieldset.form-columns-2 .hs-form-field{width:50%;float:left}
.ob-hsf fieldset.form-columns-2 .input{margin-right:8px}
.ob-hsf fieldset.form-columns-3 .hs-form-field{width:32.7%;float:left}
.ob-hsf fieldset.form-columns-3 .input{margin-right:8px}
.ob-hsf label.hs-hidden{visibility:hidden}
.ob-hsf .hs-field-desc{width:100%}
.hs-custom-style .hs-input,.hs-custom-style fieldset{max-width:100%}
.hs-custom-style>div.form-columns-3 .hs-form-field,.hs-custom-style fieldset.form-columns-3 .hs-form-field{width:33.3%}
.hs-custom-style>div>div:last-of-type .hs-input:not([type=checkbox]):not([type=radio]),.hs-custom-style fieldset>div:last-of-type .hs-input:not([type=checkbox]):not([type=radio]){width:100%;max-width:100%}
.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]){box-sizing:border-box;padding:0 15px;min-height:27px}
.hs-custom-style>div textarea,.hs-custom-style fieldset textarea{padding:10px 15px}
.hs-custom-style .hs-dependent-field>div .hs-input:not([type=checkbox]):not([type=radio]){width:100%}
@media (max-width:400px),(min-device-width:320px) and (max-device-width:480px){.hs-custom-style .hs-input:not([type=checkbox]):not([type=radio]),.hs-custom-style fieldset{margin-right:0!important;width:100%!important}
form.ob-hsf:not(.hs-video-form) .form-columns-2 .hs-form-field,form.ob-hsf:not(.hs-video-form) .form-columns-3 .hs-form-field{float:none;width:100%}
form.ob-hsf:not(.hs-video-form) .form-columns-2 .hs-form-field .hs-input,form.ob-hsf:not(.hs-video-form) .form-columns-3 .hs-form-field .hs-input{width:95%}
form.ob-hsf:not(.hs-video-form) .form-columns-2 .hs-form-field input[type=checkbox],form.ob-hsf:not(.hs-video-form) .form-columns-2 .hs-form-field input[type=radio],form.ob-hsf:not(.hs-video-form) .form-columns-3 .hs-form-field input[type=checkbox],form.ob-hsf:not(.hs-video-form) .form-columns-3 .hs-form-field input[type=radio]{width:auto}}
.legal-consent-container .field.hs-form-field{margin-bottom:8px}
.legal-consent-container .hs-field-desc.checkbox-desc{margin:-12px 0 0 21px}
.legal-consent-container .hs-form-booleancheckbox-display input{float:left}
.legal-consent-container .hs-form-booleancheckbox-display>span{display:block;margin-left:20px}
.legal-consent-container .hs-form-booleancheckbox-display p{margin:0;display:inline}
.legal-consent-container .hs-error-msgs label{color:#f2545b}
.legal-consent-container~.hs_recaptcha{margin-top:18px}
.cookie-reset-container{font-size:14px;margin-bottom:10px;text-align:right}
#hs-outer-captcha-target,#hs-outer-captcha-target *{display:none;height:0;width:0}
.hubspot-link__container{font-size:14px;padding-bottom:40px;position:relative;color:#9fa0a2;font-family:Helvetica Neue,Helvetica,Arial,sans-serif}
.hubspot-link-text{color:#00a4bd;font-weight:400}
.hubspot-link__container.sproket{color:#9fa0a2}
.hubspot-link{color:#9fa0a2}
.hubspot-link,.hubspot-link:hover{text-decoration:none}
.hubspot-link:hover .hubspot-link-text{text-decoration:underline}
.hubspot-link__icon{margin-bottom:-1px;margin-right:5px}
.hubspot-link__container.sproket .hubspot-link__icon{width:30px;margin-right:0;float:left;margin-top:-9px;margin-left:-5px}


/* Part 2: CF7 adaptations */
.ob-form .wpcf7-form-control-wrap {
  display: block;
}

/* CF7 makes this wrapper position:relative, which paints the input over the
   theme's .input::before field icons. HubSpot had no wrapper. */
.ob-hsf .wpcf7-form-control-wrap {
  position: static;
}

.ob-form .hidden-fields-container,
.ob-form .wpcf7-spinner,
.ob-hsf .wpcf7-not-valid-tip,
.ob-form .wpcf7-response-output {
  display: none !important;
}

.ob-form form.spam .wpcf7-response-output,
.ob-form form.aborted .wpcf7-response-output {
  display: block !important;
  margin: 8px 0 0;
  padding: 0;
  border: 0;
  color: #f2545b;
  font-size: 14px;
}

.ob-hsf.submitting .hs-button {
  opacity: 0.6;
  pointer-events: none;
}

/* Part 3: blog listing subscribe form */
.ob-form--listing .ob-listing-email {
  display: block;
  width: 100%;
  border: 0;
  border-bottom: 1px solid #D7D8D9;
  border-radius: 0;
  background: transparent;
  padding: 0.75rem 0;
  text-align: center;
  font-size: 1rem;
  line-height: 1.5rem;
  color: var(--color-ob-dark);
  box-shadow: none;
  outline: none;
}

.ob-form--listing .ob-listing-email::placeholder {
  color: #626263;
  opacity: 1;
}

.ob-form--listing .ob-listing-email:focus {
  border-bottom-color: var(--color-ob-dark);
}

.ob-form--listing .wpcf7-not-valid-tip {
  margin-top: 6px;
  color: #b42318;
  font-size: 12px;
  text-align: center;
}

.ob-form--listing form.submitting button[type="submit"] {
  opacity: 0.6;
  pointer-events: none;
}

.ob-listing-success {
  margin: 0;
  padding: 0.75rem 0;
  text-align: center;
  font-size: 1rem;
  color: var(--color-ob-dark);
}

/* Anti-spam trap field: off-screen (not display:none, which some bots skip). */
.ob-hp {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
