/* ==========================================================================
   HubSpot popup (Fancybox v3 inline) + form styling
   Change the variables below to restyle the whole form.
   ========================================================================== */

.hs-popup {
    /* Brand tokens: edit these */
    --hs-primary: var(--primary-dark-blue);
    /* buttons, focus, links */
    --hs-primary-hover: var(--secondary-dark-blue);
    --hs-text: var(--black);
    --hs-muted: var(--base-color);
    --hs-border: var(--french-grey);
    --hs-input-bg: var(--base-white);
    --hs-error: #d93025;
    --hs-radius: 8px;
    --hs-font: inherit;
    /* replace with your site font, e.g. "Inter" */
    padding: 36px 32px 32px;
    border-radius: 14px;
    background: #fff;



}

.hs-popup.fancybox-content {
    position: relative;
    width: min(680px, 92vw);
    min-height: 220px;
    max-height: 85vh;
    overflow-y: auto;
    /* long forms scroll inside the card */
    overflow-x: hidden;
    padding: 36px 32px 32px;
    box-sizing: border-box;
    border-radius: 14px;
    background: #fff;
    text-align: left;
    scrollbar-width: thin;
    scrollbar-color: #d1d5db transparent;
}

.hs-popup::-webkit-scrollbar {
    width: 6px;
}

.hs-popup::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 999px;
}

.hs-popup__title {
    margin: 0 0 16px;
    padding-right: 44px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--hs-text);
}

.hs-popup__body {
    width: 100%;
}

/* Fancybox close button inside the card (v3 smallBtn) */
.hs-popup .fancybox-close-small {
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    padding: 6px;
    color: var(--base-color);
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.hs-popup .fancybox-close-small:hover {
    background: var(--dim-light-grey);
    color: var(--black);
}

/* Backdrop: scoped to HubSpot popups only (class added via baseClass in the JS) */
.hs-fancybox .fancybox-bg {
    background: var(--primary-dark-blue);
}

.hs-fancybox.fancybox-is-open .fancybox-bg {
    opacity: 0.6;
}

/* ==========================================================================
   HubSpot form: variable overrides (these beat HubSpot's --hsf-default-* values)
   ========================================================================== */

.hs-popup .hsfc-Renderer {
    --hsf-global__font-family: var(--hs-font), Helvetica, Arial, sans-serif;
    --hsf-global__color: var(--hs-text);
    --hsf-global__error-color: var(--hs-error);

    /* Remove HubSpot's own 40px inner padding (the popup already has padding) */
    --hsf-background__padding: 0;
    --hsf-background__background-color: transparent;
    --hsf-background__border-style: none;

    /* Spacing */
    --hsf-row__horizontal-spacing: 20px;
    --hsf-row__vertical-spacing: 18px;
    --hsf-module__vertical-spacing: 6px;

    /* Labels */
    --hsf-field-label__font-size: 15px;
    --hsf-field-label__color: var(--hs-text);

    /* Inputs, textarea, dropdowns */
    --hsf-field-input__font-size: 15px;
    --hsf-field-input__color: var(--hs-text);
    --hsf-field-input__background-color: var(--hs-input-bg);
    --hsf-field-input__border-color: var(--hs-border);
    --hsf-field-input__border-radius: var(--hs-radius);
    --hsf-field-input__padding: 11px 14px;
    --hsf-field-input__placeholder-color: var(--hs-muted);

    --hsf-field-textarea__background-color: var(--hs-input-bg);
    --hsf-field-textarea__border-color: var(--hs-border);
    --hsf-field-textarea__border-radius: var(--hs-radius);
    --hsf-field-textarea__padding: 11px 14px;

    --hsf-field-dropdown-options__border-radius: var(--hs-radius);

    /* Checkboxes and radios */
    --hsf-field-checkbox__background-color: #fff;
    --hsf-field-checkbox__border-color: var(--hs-border);
    --hsf-field-radio__background-color: #fff;
    --hsf-field-radio__border-color: var(--hs-border);

    /* Button */
    --hsf-button__background-color: var(--hs-primary);
    --hsf-button--hover__background-color: var(--hs-primary-hover);
    --hsf-button__color: #fff;
    --hsf-button__font-size: 16px;
    --hsf-button__font-weight: 600;
    --hsf-button__border-radius: var(--hs-radius);
    --hsf-button__padding: 13px 32px;

    /* Intro text and errors */
    --hsf-richtext__font-size: 15px;
    --hsf-richtext__color: var(--hs-text);
    --hsf-erroralert__font-size: 13px;
    --hsf-default-navigationrow-buttons-single__justify-content: start;

}

/* ==========================================================================
   HubSpot form: direct overrides for things variables cannot reach
   ========================================================================== */

/* Intro paragraph */
.hs-popup .hsfc-RichText {
    line-height: 1.55;
}

.hs-popup .hsfc-RichText a {
    color: var(--hs-primary);
    text-decoration: underline;
}

/* Labels */
.hs-popup .hsfc-FieldLabel {
    font-weight: 600;
    line-height: 1.35;
}

.hs-popup .hsfc-FieldLabel__RequiredIndicator {
    margin-left: 2px;
}

/* Checkbox and radio option text should not be bold */
.hs-popup .hsfc-CheckboxFieldGroup__Options .hsfc-FieldLabel,
.hs-popup .hsfc-RadioFieldGroup__Options .hsfc-FieldLabel,
.hs-popup .hsfc-CheckboxField .hsfc-FieldLabel {
    font-weight: 400;
}

/* Bigger, easier to tap checkboxes */
.hs-popup .hsfc-CheckboxInput,
.hs-popup .hsfc-RadioInput {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Input focus state */
.hs-popup .hsfc-TextInput:focus,
.hs-popup .hsfc-TextareaInput:focus {
    border-color: var(--hs-primary);
    box-shadow: 0 0 0 3px var(--light-dark-blue);
}

.hs-popup .hsfc-TextareaInput {
    min-height: 110px;
}

/* Error messages */
.hs-popup .hsfc-ErrorAlert {
    margin-top: 2px;
}

/* Dropdown list */
.hs-popup .hsfc-DropdownOptions {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    border-color: var(--hs-border);
}

.hs-popup .hsfc-DropdownOptions__List {
    max-height: 240px;
}

.hs-popup .hsfc-DropdownOptions__List__ListItem {
    font-size: 15px;
}

/* Phone flag button matches inputs */
.hs-popup .hsfc-PhoneInput__FlagAndCaret {
    border-color: var(--hs-border);
    border-radius: var(--hs-radius) 0 0 var(--hs-radius);
}

.hs-popup .hsfc-PhoneInput .hsfc-TextInput {
    border-radius: 0 var(--hs-radius) var(--hs-radius) 0;
}

.hs-popup .hsfc-Button {
    letter-spacing: 0.2px;
}

/* Thank-you message after submit */
.hs-popup .hsfc-PostSubmit {
    padding: 8px 0;
}

/* Global HubSpot form for shortcode– narrower and centered */
.hs-shortcode-embeded {
    width: 100%;
    max-width: 720px;
    margin: 0px auto;
    box-sizing: border-box;
}

/* Responsive layout */
@media (max-width: 767px) {
    .hs-shortcode-embeded {
        max-width: 100%;
      
    }
}

/* Mobile */
@media (max-width: 600px) {
    .hs-popup {
        padding: 32px 18px 22px;
    }

    .hs-popup.fancybox-content {
        padding: 32px 18px 22px;
        max-height: 88vh;
    }

    .hs-popup__title {
        font-size: 21px;
    }

    .hs-popup .hsfc-Renderer {
        --hsf-row__vertical-spacing: 16px;
        --hsf-button__padding: 13px 20px;
    }

    .hs-popup .hsfc-Button {
        width: 100%;
    }
}