/* ======================================================
   RMS Contact Hero
====================================================== */

.block--contact-hero {
    --contact-hero-max-width: 1180px;
    --contact-hero-card-radius: 18px;
    overflow: hidden;
    isolation: isolate;
    padding-top: clamp(5rem, 8vw, 8rem);
    padding-bottom: clamp(5rem, 8vw, 8rem);
}

.contact-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.contact-hero-bg--mobile {
    display: none;
}

.contact-hero-bg__image,
.contact-hero-bg__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
}

.contact-hero-bg__video {
    display: block;
}

.contact-hero-bg__overlay {
    --contact-hero-overlay-opacity: 0.72;
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: var(--contact-hero-overlay-opacity);
}

.contact-hero-bg__overlay--dark-left {
    background: linear-gradient(
        90deg,
        rgba(3, 12, 17, 1) 0%,
        rgba(3, 12, 17, 0.96) 36%,
        rgba(3, 12, 17, 0.72) 62%,
        rgba(3, 12, 17, 0.3) 100%
    );
}

.contact-hero-bg__overlay--dark-full {
    background: rgba(3, 12, 17, 1);
}

.contact-hero-bg__overlay--dark-bottom {
    background: linear-gradient(
        0deg,
        rgba(3, 12, 17, 1) 0%,
        rgba(3, 12, 17, 0.92) 48%,
        rgba(3, 12, 17, 0.38) 100%
    );
}

.contact-hero-bg__overlay--dark-left-bottom {
    background:
        linear-gradient(
            90deg,
            rgba(3, 12, 17, 1) 0%,
            rgba(3, 12, 17, 0.96) 38%,
            rgba(3, 12, 17, 0.58) 74%,
            rgba(3, 12, 17, 0.2) 100%
        ),
        linear-gradient(
            0deg,
            rgba(3, 12, 17, 1) 0%,
            rgba(3, 12, 17, 0.76) 42%,
            rgba(3, 12, 17, 0.18) 100%
        );
}

.contact-hero__inner {
    position: relative;
    z-index: 10;
    width: min(100%, var(--contact-hero-max-width));
    margin-inline: auto;
}

.contact-hero__header {
    max-width: 960px;
    margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.contact-hero__heading {
    margin: 0;
    color: #fff;
    font-size: clamp(3.6rem, 7vw, 6rem);
    font-weight: 300;
    line-height: 1;
    letter-spacing: -0.035em;
}

.contact-hero__eyebrow {
    margin-bottom: 0.85rem;
    color: #ff233c;
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.06em;
   /* text-transform: uppercase;*/
}

.contact-hero__heading span,
.contact-hero__heading strong,
.contact-hero__heading em {
    color: #ff233c;
    font-style: normal;
    font-weight: inherit;
}

.contact-hero__intro {
    max-width: 680px;
    margin-top: 1.25rem;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    line-height: 1.6;
}

.contact-hero__intro > :last-child,
.contact-hero__sales-intro > :last-child,
.contact-hero__step-description > :last-child,
.contact-hero__form-intro > :last-child {
    margin-bottom: 0;
}


.contact-hero__grid {
    display: grid;
/*    grid-template-columns: minmax(0, 0.68fr) minmax(600px, 1.32fr);*/
    gap: clamp(3rem, 3vw, 4rem);
    align-items: start;
}


.contact-hero__grid--balanced {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.contact-hero__grid--form_wide {
    grid-template-columns: minmax(0, 0.7fr) minmax(580px, 1.3fr);
}

.contact-hero__grid--content_wide {
    grid-template-columns: minmax(0, 1.3fr) minmax(720px, 0.7fr);
}

.contact-hero__grid textarea {
    height: 80px;
    min-height: 80px;
    resize: vertical;
}


.contact-hero__content {
    color: #fff;
}

.contact-hero__sales-heading,
.contact-hero__other-contact-heading {
    margin: 0;
    color: #fff;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.contact-hero__benefits {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.7rem ;
    margin: 1.25rem 0 0;
    padding: 0;
    list-style: none;
}

.contact-hero__benefits li {
    position: relative;
    padding:4px 15px 4px 24px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
	border-radius: 24px;
	border-bottom: 2px solid #4c0c13;
	background:#FF233C;
}

.contact-hero__benefits li::before {
    content: "";
    position: absolute;
    left: 0.5em;
    top: 0.58em;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ffffff;
}

.contact-hero__sales-heading {
    font-size: clamp(1.15rem, 2.2vw, 1.3rem);
    line-height: 1.15;
}

.contact-hero__sales-intro {
    margin-top: 0.85rem;
    max-width: 520px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 1rem;
    line-height: 1.65;
}

.contact-hero__steps {
    position: relative;
    display: grid;
    gap: 1.75rem;
    margin: 2.25rem 0 0;
    padding: 0;
    list-style: none;
}

.contact-hero__steps::before {
    content: "";
    position: absolute;
    left: 31px;
    top: 36px;
    bottom: 36px;
    width: 1px;
    background: linear-gradient(
        to bottom,
        rgba(255, 35, 60, 0.9),
        rgba(255, 255, 255, 0.2)
    );
}

.contact-hero__step {
    position: relative;
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 1.4rem;
    align-items: start;
}

.contact-hero__step-marker {
    position: relative;
    width: 64px;
    min-height: 64px;
}

.contact-hero__step-icon {
    display: grid;
    place-items: center;
    width: 70px;
    height: 70px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 999px;
    background: rgba(7, 23, 30, 0.6);
    box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.015);
    backdrop-filter: blur(5px);
}

.contact-hero__step-icon-image {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.contact-hero__step-icon-fallback {
    width: 18px;
    height: 18px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 4px;
}

.contact-hero__step-number {
    position: absolute;
    top: -2px;
    right: -4px;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: #ff233c;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 0 0 4px rgba(7, 23, 30, 0.9);
}

.contact-hero__step-copy {
    padding-top: 0.35rem;
}

.contact-hero__step-heading {
    margin: 0;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.35;
}

.contact-hero__step-description {
    margin-top: 0.4rem;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.95rem;
    line-height: 1.55;
}

.contact-hero__other-contact {
    margin-top: 3rem;
}

.contact-hero__other-contact-heading {
    font-size: 1.2rem;
}

.contact-hero__contact-links {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}

.contact-hero__contact-card {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 0.9rem;
    align-items: center;
    min-height: 72px;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.045);
    color: #fff;
    text-decoration: none;
    transition:
        border-color 180ms ease,
        background-color 180ms ease,
        transform 180ms ease;
}

.contact-hero__contact-card:hover,
.contact-hero__contact-card:focus-visible {
    border-color: rgba(255, 35, 60, 0.72);
    background: rgba(255, 255, 255, 0.075);
    transform: translateY(-2px);
}

.contact-hero__contact-card-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
  /*  border: 1px solid rgba(255, 255, 255, 0.2);*/
    border-radius: 8px;
}

.contact-hero__contact-icon-image {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.contact-hero__contact-card-copy {
    display: grid;
    gap: 0.1rem;
}

.contact-hero__contact-card-eyebrow {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.85rem;
    line-height: 1.3;
}

.contact-hero__contact-card-label {
    color: #ff233c;
    font-size: 0.95rem;
    font-weight: 500;
}

.contact-hero__contact-card-arrow {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.2rem;
    transition: transform 180ms ease;
}

.contact-hero__contact-card:hover .contact-hero__contact-card-arrow,
.contact-hero__contact-card:focus-visible .contact-hero__contact-card-arrow {
    transform: translateX(3px);
}

.contact-hero__form-card {
    overflow: hidden;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border: 1px solid rgba(210, 220, 228, 0.95);
    border-radius: var(--contact-hero-card-radius);
    background: rgba(255, 255, 255, 0.98);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.34),
        0 2px 10px rgba(0, 0, 0, 0.08);
    color: #07171e;
}

.contact-hero__form-heading {
    margin: 0;
    color: #07171e;
    font-size: clamp(1.15rem, 2.4vw, 1.85rem);
    font-weight: 500;
    letter-spacing: -0.025em;
    line-height: 1.1;
}

.contact-hero__form-intro {
    margin-top: 0.6rem;
    padding-bottom: 1.35rem;
    border-bottom: 1px solid #e1e8ed;
    color: #53626c;
    font-size: 0.98rem;
    line-height: 1.55;
}

.contact-hero__form-embed {
    margin-top: 1.35rem;
}

.contact-hero__form-placeholder {
    margin-top: 1.35rem;
    padding: 1rem;
    border: 1px dashed #aab8c2;
    border-radius: 8px;
    background: #f4f7f9;
    color: #53626c;
    font-size: 0.95rem;
}

/* HubSpot form overrides. These target standard non-iframe HubSpot embeds. */
.contact-hero__form-embed .hs-form {
    display: grid;
    gap: 1rem;
}

.contact-hero__form-embed .hs-form-field {
    margin: 0;
}

.contact-hero__form-embed fieldset {
    max-width: none !important;
    margin: 0 !important;
}

.contact-hero__form-embed fieldset.form-columns-2,
.contact-hero__form-embed fieldset.form-columns-3 {
    display: grid;
    gap: 0.9rem;
}

.contact-hero__form-embed fieldset.form-columns-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-hero__form-embed fieldset.form-columns-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contact-hero__form-embed fieldset.form-columns-1 .hs-form-field,
.contact-hero__form-embed fieldset.form-columns-2 .hs-form-field,
.contact-hero__form-embed fieldset.form-columns-3 .hs-form-field {
    width: 100% !important;
    float: none !important;
}

.contact-hero__form-embed fieldset.form-columns-0 .hs-richtext h4 {
    position: relative;
    margin: 1.5rem 0 1rem !important;
    padding-left: 1rem;
    color: #53626c;
    font-size: 1rem;
    font-weight: 700 !important;
    letter-spacing: 0.08em;
    line-height: 1.3;
    text-transform: uppercase;
}

.contact-hero__form-embed fieldset.form-columns-0 .hs-richtext h4::before {
    content: "";
    position: absolute;
    top: 0.05em;
    bottom: 0.05em;
    left: 0;
    width: 3px;
    border-radius: 2px;
    background: #ff233c;
}

.contact-hero__form-embed fieldset legend.hs-field-desc {font-size: 0.88rem; line-height: 1.2rem; margin-bottom: 10px;}

.contact-hero__form-embed label,
.contact-hero__form-embed .hs-form-field > label {
    display: block;
    margin-bottom: 0.38rem;
    color: #17232b;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.35;
}

.contact-hero__form-embed .hs-form-required {
    color: #ff233c;
}

.contact-hero__form-embed input[type='text'],
.contact-hero__form-embed input[type='email'],
.contact-hero__form-embed input[type='tel'],
.contact-hero__form-embed input[type='number'],
.contact-hero__form-embed input[type='url'],
.contact-hero__form-embed select,
.contact-hero__form-embed textarea {
    width: 100% !important;
    min-height: 48px;
    margin: 0;
    padding: 0.75rem 0.9rem;
    border: 1px solid #cbd7df;
    border-radius: 9px;
    outline: none;
    background: #f7f9fa;
    color: #07171e;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.4;
    box-shadow: none;
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease,
        background-color 160ms ease;
}

.contact-hero__form-embed textarea {
    min-height: 80px;
    resize: vertical;
}

.contact-hero__form-embed input:focus,
.contact-hero__form-embed select:focus,
.contact-hero__form-embed textarea:focus {
    border-color: #ff233c;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255, 35, 60, 0.12);
}

.contact-hero__form-embed .inputs-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.contact-hero__form-embed .inputs-list label {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.15rem;
    align-items: start;
    margin: 0;
    color: #53626c;
    font-size: 0.78rem;
    font-weight: 400;
    line-height: 1.5;
}

.contact-hero__form-embed input[type='checkbox'],
.contact-hero__form-embed input[type='radio'] {
    margin-top: 0.18rem;
    accent-color: #ff233c;
}

.contact-hero__form-embed .legal-consent-container,
.contact-hero__form-embed .hs-richtext {
    color: #667680;
    font-size: 0.75rem;
    line-height: 1.55;
}

.contact-hero__form-embed .legal-consent-container p,
.contact-hero__form-embed .hs-richtext p {
    margin: 0 0 0.65rem;
}

.contact-hero__form-embed .hs-error-msgs {
    margin: 0.35rem 0 0;
    padding: 0;
    list-style: none;
}

.contact-hero__form-embed .hs-error-msg {
    color: #c61e32 !important;
    font-size: 0.76rem;
}

.contact-hero__form-embed .hs-submit {
    margin-top: 0.35rem;
}

.contact-hero__form-embed .hs-button,
.contact-hero__form-embed input[type='submit'] {
    min-height: 50px;
    padding: 0.8rem 5.35rem;
    border: 0;
    border-radius: 999px;
    background: #ff233c;
    color: #fff;
    font-family: inherit;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    box-shadow: none;
    transition:
        background-color 160ms ease,
        transform 160ms ease,
        box-shadow 160ms ease;
}

.contact-hero__form-embed .hs-button:hover,
.contact-hero__form-embed .hs-button:focus-visible,
.contact-hero__form-embed input[type='submit']:hover,
.contact-hero__form-embed input[type='submit']:focus-visible {
    background: #e71731;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(255, 35, 60, 0.24);
}
.contact-hero__form-embed input[type="checkbox"] {
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    margin: 2px 6px 0 0 !important;
    padding: 0 !important;
    appearance: auto !important;
    -webkit-appearance: checkbox !important;
    accent-color: #ff233c;
}

.contact-hero__form-embed .hs-form-checkbox-display,
.contact-hero__form-embed .hs-form-booleancheckbox-display {
    display: flex;
    align-items: flex-start;
    gap: 0;
}


.contact-hero__form-embed .hs-fieldtype-checkbox .inputs-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 24px;
}

.contact-hero__form-embed .hs-fieldtype-checkbox .inputs-list > li {
    margin: 0;
}

@media (max-width: 600px) {
    .contact-hero__form-embed .hs-fieldtype-checkbox .inputs-list {
        grid-template-columns: 1fr;
    }
}



.contact-hero__form-embed .legal-consent-container .hs-form-booleancheckbox-display>span {margin-left:0;}

@media (max-width: 1023px) {
    .contact-hero__grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-hero__content {
        max-width: 680px;
    }

    .contact-hero__form-card {
        max-width: 760px;
    }
}

@media (max-width: 767px) {
    .block--contact-hero {
        padding-top: 4.5rem;
        padding-bottom: 4rem;
    }

    .contact-hero-has-mobile-static-bg .contact-hero-bg--desktop {
        display: none;
    }

    .contact-hero-has-mobile-static-bg .contact-hero-bg--mobile {
        display: block;
    }

    .contact-hero-bg__overlay--dark-left,
    .contact-hero-bg__overlay--dark-left-bottom {
        background: rgba(3, 12, 17, 0.93);
    }

    .contact-hero__header {
        margin-bottom: 2.5rem;
    }

    .contact-hero__heading {
        font-size: clamp(3.25rem, 15vw, 5rem);
    }

    .contact-hero__grid {
        gap: 2.5rem;
    }

    .contact-hero__form-card {
        order: 1;
        padding: 1.25rem;
        border-radius: 14px;
    }

    .contact-hero__content {
        order: 2;
    }

    .contact-hero__steps::before {
        left: 27px;
    }

    .contact-hero__step {
        grid-template-columns: 56px minmax(0, 1fr);
        gap: 0.9rem;
    }

    .contact-hero__step-marker,
    .contact-hero__step-icon {
        width: 56px;
        min-height: 56px;
        height: 56px;
    }

    .contact-hero__form-embed fieldset.form-columns-2,
    .contact-hero__form-embed fieldset.form-columns-3 {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .contact-hero__contact-card,
    .contact-hero__contact-card-arrow,
    .contact-hero__form-embed .hs-button,
    .contact-hero__form-embed input[type='submit'] {
        transition: none;
    }
}
/* d-Matrix Demo Cloud: HubSpot developer embed.
   Wrap the developer embed in <div id="dm-demo-cloud-form">...</div>.
   Append these rules after the existing contact-hero CSS.
   Prepared from the live original form and multistep markup.
   Verify all steps after installing; no form submission was performed. */

#dm-demo-cloud-form,
#dm-demo-cloud-form .hsfc-Renderer {
  --hsf-global__font-family: "Aeonik", sans-serif;
  --hsf-global__font-size: 16px;
  --hsf-global__color: #07171e;
  --hsf-global-error__color: #c61e32;
  --hsf-background__background-color: transparent;
  --hsf-background__background-image: none;
  --hsf-background__border-width: 0px;
  --hsf-background__padding: 0px;
  --hsf-row__horizontal-spacing: 0.9rem;
  --hsf-row__vertical-spacing: 1rem;
  --hsf-module__vertical-spacing: 1rem;
  --hsf-field-label__font-family: "Aeonik", sans-serif;
  --hsf-field-label__font-size: 16px;
  --hsf-field-label__color: #17232b;
  --hsf-field-label-requiredindicator__color: #ff233c;
  --hsf-field-input__font-family: "Aeonik", sans-serif;
  --hsf-field-input__color: #07171e;
  --hsf-field-input__background-color: #f7f9fa;
  --hsf-field-input__placeholder-color: #667680;
  --hsf-field-input__border-color: #cbd7df;
  --hsf-field-input__border-width: 1px;
  --hsf-field-input__border-style: solid;
  --hsf-field-input__border-radius: 9px;
  --hsf-field-input__padding: 0.75rem 0.9rem;
  --hsf-field-textarea__font-family: "Aeonik", sans-serif;
  --hsf-field-textarea__color: #07171e;
  --hsf-field-textarea__background-color: #f7f9fa;
  --hsf-field-textarea__placeholder-color: #667680;
  --hsf-field-textarea__border-color: #cbd7df;
  --hsf-field-textarea__border-width: 1px;
  --hsf-field-textarea__border-style: solid;
  --hsf-field-textarea__border-radius: 9px;
  --hsf-field-textarea__padding: 0.75rem 0.9rem;
  --hsf-button__font-family: "Aeonik", sans-serif;
  --hsf-button__font-size: 1.2rem;
  --hsf-button__color: #fff;
  --hsf-button__background-color: #ff233c;
  --hsf-button__background-image: none;
  --hsf-button__border-radius: 999px;
  --hsf-button__padding: 0.8rem 2.5rem;
  --hsf-button__box-shadow: none;
  --hsf-richtext__font-family: "Aeonik", sans-serif;
  --hsf-richtext__font-size: 0.875rem;
  --hsf-richtext__color: #667680;
  --hsf-heading__font-family: "Aeonik", sans-serif;
  --hsf-heading__color: #07171e;
  --hsf-progressbar-text__font-family: "Aeonik", sans-serif;
  --hsf-progressbar-text__font-size: 0.875rem;
  --hsf-progressbar-text__color: #53626c;
  --hsf-progressbar-progressLine__background-color: #ff233c;
  --hsf-progressbar-trackLine__background-color: #e1e8ed;
}

#dm-demo-cloud-form .hsfc-Form {
  font-family: "Aeonik", sans-serif;
}

#dm-demo-cloud-form .hsfc-FieldLabel {
  display: block;
  margin: 0 0 0.38rem;
  color: #17232b;
  font-family: "Aeonik", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
}

#dm-demo-cloud-form .hsfc-FieldLabel__RequiredIndicator {
  color: #ff233c;
}

#dm-demo-cloud-form .hsfc-TextInput,
#dm-demo-cloud-form .hsfc-TextareaInput {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 0.75rem 0.9rem;
  border: 1px solid #cbd7df;
  border-radius: 9px;
  background: #f7f9fa;
  color: #07171e;
  font-family: "Aeonik", sans-serif;
  font-size: 16px;
  line-height: 1.4;
  box-shadow: none;
}

#dm-demo-cloud-form .hsfc-TextInput--button {
  padding-right: 2.5rem;
}

#dm-demo-cloud-form .hsfc-TextareaInput {
  min-height: 80px;
  resize: vertical;
}

#dm-demo-cloud-form .hsfc-TextInput:focus,
#dm-demo-cloud-form .hsfc-TextareaInput:focus {
  outline: none;
  border-color: #ff233c;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 35, 60, 0.12);
}

#dm-demo-cloud-form .hsfc-TextInput[aria-invalid="true"],
#dm-demo-cloud-form .hsfc-TextareaInput[aria-invalid="true"] {
  border-color: #c61e32;
}

#dm-demo-cloud-form .hsfc-DropdownOptions {
  color: #07171e;
  background: #fff;
  font-family: "Aeonik", sans-serif;
  font-size: 16px;
}

#dm-demo-cloud-form .hsfc-NavigationRow__Buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

#dm-demo-cloud-form .hsfc-Button {
  min-height: 50px;
  padding: 0.8rem 2.5rem;
  border: 0;
  border-radius: 999px;
  background: #ff233c;
  color: #fff;
  font-family: "Aeonik", sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: none;
}

#dm-demo-cloud-form .hsfc-Button:not(:disabled):not([aria-disabled="true"]):hover {
  background: #e71731;
  box-shadow: 0 10px 22px rgba(255, 35, 60, 0.24);
}

#dm-demo-cloud-form .hsfc-Button:focus-visible {
  outline: 3px solid #07171e;
  outline-offset: 3px;
}

#dm-demo-cloud-form .hsfc-Button:disabled,
#dm-demo-cloud-form .hsfc-Button[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
}

#dm-demo-cloud-form .hsfc-CheckboxFieldGroup__Options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 24px;
}

#dm-demo-cloud-form input[type="checkbox"],
#dm-demo-cloud-form input[type="radio"] {
  accent-color: #ff233c;
}

#dm-demo-cloud-form .hsfc-DataPrivacyField {
  color: #667680;
  font-family: "Aeonik", sans-serif;
  font-size: 0.75rem;
  line-height: 1.55;
}

#dm-demo-cloud-form .hsfc-DataPrivacyField a {
  color: #c61e32;
  text-decoration: underline;
}

@media (max-width: 600px) {
  #dm-demo-cloud-form .hsfc-Row {
    grid-template-columns: 1fr;
    flex-direction: column;
    gap: 1rem;
  }

  #dm-demo-cloud-form .hsfc-Row > * {
    width: 100%;
    min-width: 0;
  }

  #dm-demo-cloud-form .hsfc-CheckboxFieldGroup__Options {
    grid-template-columns: 1fr;
  }

  #dm-demo-cloud-form .hsfc-Button {
    padding-inline: 1.75rem;
  }
}

/* Checkbox alignment and secondary Previous button */
#dm-demo-cloud-form .hsfc-FieldLabel:has(> .hsfc-CheckboxInput) {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  cursor: pointer;
}

#dm-demo-cloud-form .hsfc-FieldLabel:has(> .hsfc-CheckboxInput) > span {
  flex: 1;
  min-width: 0;
  margin: 0;
}

#dm-demo-cloud-form input.hsfc-CheckboxInput {
  -webkit-appearance: checkbox !important;
  appearance: auto !important;
  position: relative;
  display: inline-block;
  box-sizing: border-box;
  flex: 0 0 13px;
  width: 13px !important;
  min-width: 13px !important;
  max-width: 13px !important;
  height: 13px !important;
  min-height: 13px !important;
  margin: 4px 0 0 !important;
  padding: 0 !important;
  border: initial !important;
  border-radius: 2px;
  background: initial !important;
  accent-color: #ff233c;
  box-shadow: none;
  cursor: pointer;
}

#dm-demo-cloud-form input.hsfc-CheckboxInput::before,
#dm-demo-cloud-form input.hsfc-CheckboxInput::after,
#dm-demo-cloud-form input.hsfc-CheckboxInput:checked::before,
#dm-demo-cloud-form input.hsfc-CheckboxInput:checked::after {
  content: none !important;
  display: none !important;
}

#dm-demo-cloud-form input.hsfc-CheckboxInput:not(:disabled):hover,
#dm-demo-cloud-form input.hsfc-CheckboxInput:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 35, 60, 0.12);
}

#dm-demo-cloud-form input.hsfc-CheckboxInput:focus-visible {
  outline: 2px solid #c61e32;
  outline-offset: 2px;
}

#dm-demo-cloud-form input.hsfc-CheckboxInput:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#dm-demo-cloud-form input.hsfc-CheckboxInput[aria-invalid="true"] {
  outline: 1px solid #c61e32;
  outline-offset: 2px;
}

#dm-demo-cloud-form .hsfc-CheckboxFieldGroup__Options {
  gap: 12px 20px;
}

#dm-demo-cloud-form .hsfc-DataPrivacyField .hsfc-FieldLabel:has(> .hsfc-CheckboxInput) {
  color: #53626c;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
}

/* In this form, Previous is the first button when a step has two buttons.
   The first step's single Next button keeps its primary styling. */
#dm-demo-cloud-form .hsfc-NavigationRow__Buttons > .hsfc-Button[type="button"]:first-child:not(:only-child) {
  border: 1px solid #cbd7df;
  background: #edf1f4;
  color: #53626c;
  font-size: 16px;
  font-weight: 500;
  box-shadow: none;
}

#dm-demo-cloud-form .hsfc-NavigationRow__Buttons > .hsfc-Button[type="button"]:first-child:not(:only-child):not(:disabled):not([aria-disabled="true"]):hover {
  border-color: #aab8c2;
  background: #e1e8ed;
  color: #07171e;
  box-shadow: none;
}

@media (forced-colors: active) {
  #dm-demo-cloud-form input.hsfc-CheckboxInput {
    -webkit-appearance: auto !important;
    appearance: auto !important;
  }

  #dm-demo-cloud-form input.hsfc-CheckboxInput:checked::after {
    content: none;
  }
}


