.dichen-form,
.pagebuilder-wysiwyg-snapshot .doncen-form {
    --dichen-form-accent: #d50032;
    background: #fff;
    box-sizing: border-box;
    color: #212529;
    margin: 0;
    padding-block: clamp(32px, calc(9.4648px + 6.0094vw), 96px);
    padding-inline: 24px;
    width: 100%;
}

.dichen-form__container {
    display: flex;
    flex-direction: column;
    gap: var(--dichen-form-content-gap, clamp(16px, calc(10.3662px + 1.5023vw), 32px));
    margin-inline: auto;
}

.pagebuilder-wysiwyg-snapshot .doncen-form__container {
    display: flex;
    flex-direction: column;
    gap: var(--dichen-form-content-gap, clamp(16px, calc(10.3662px + 1.5023vw), 32px));
    margin-inline: auto;
}

.pagebuilder-stage .dichen-form-preview__content,
.pagebuilder-wysiwyg-snapshot .dichen-form-preview__content,
.pagebuilder-wysiwyg-snapshot .doncen-form-preview__content {
    display: flex;
    flex-direction: column;
    gap: inherit;
    pointer-events: none;
    width: 100%;
}

.pagebuilder-stage .dichen-form {
    position: relative;
}

.pagebuilder-stage .dichen-form-preview__interaction-layer {
    cursor: pointer;
    inset: 0;
    position: absolute;
    z-index: 1;
}

.pagebuilder-stage .dichen-form > .pagebuilder-options {
    z-index: 2;
}

.pagebuilder-stage .dichen-form:hover > .pagebuilder-options,
.pagebuilder-stage .dichen-form:focus-within > .pagebuilder-options {
    opacity: 1;
    visibility: visible;
}

.dichen-form__header {
    margin: 0;
}

.dichen-form__heading,
.pagebuilder-stage .dichen-form__heading {
    color: #212529;
    font-size: clamp(28px, calc(23.7746px + 1.1268vw), 40px);
    font-weight: 500;
    letter-spacing: -.025em;
    line-height: 1.15;
    margin: 0 0 clamp(12px, calc(.376vw + 10.798px), 16px);
}

.dichen-form__description {
    color: #3f4649;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    max-width: 760px;
}

.dichen-form__success {
    align-items: center;
    background: linear-gradient(180deg, color-mix(in srgb, #2f8a4c, white 94%) 0%, #fff 100%);
    border: 1px solid color-mix(in srgb, #2f8a4c, white 72%);
    border-radius: 8px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: clamp(360px, 42vw, 620px);
    padding: clamp(48px, 7vw, 88px) 24px;
    text-align: center;
    width: 100%;
}

.dichen-form__success-icon {
    display: block;
    height: 72px;
    margin: 0 0 26px;
    width: 72px;
}

.dichen-form__success-icon svg {
    display: block;
    height: 100%;
    width: 100%;
}

.dichen-form__success-icon circle {
    fill: color-mix(in srgb, #2f8a4c, white 88%);
    stroke: #2f8a4c;
    stroke-width: 2;
}

.dichen-form__success-icon path {
    fill: none;
    stroke: #2f8a4c;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3;
}

.dichen-form__success-title {
    color: #1a1a1a;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 14px;
}

.dichen-form__success-message {
    color: #465154;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    max-width: 560px;
}

.dichen-form__success-action.action.secondary {
    border-radius: 3px;
    font-size: 15px;
    font-weight: 700;
    margin-top: 30px;
    min-height: 50px;
    padding: 13px 28px;
}

.dichen-form__form,
.dichen-form__fields {
    border: 0;
    margin: 0;
    padding: 0;
}

.dichen-form__fields {
    display: grid;
    gap: 20px 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dichen-form__legend {
    border: 0;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.dichen-form__field {
    margin: 0;
}

.dichen-form__field--full,
.dichen-form__fields > .field-recaptcha {
    grid-column: 1 / -1;
}

.dichen-form__label {
    color: #212529;
    display: block;
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 10px;
}

.dichen-form__field.required .dichen-form__label::after {
    color: #e02b27;
    content: '*';
    margin-left: 4px;
}

.dichen-form .dichen-form__control,
.pagebuilder-wysiwyg-snapshot .doncen-form .dichen-form__control {
    background: #fff;
    border: 1px solid #bababa;
    border-radius: 5px;
    box-shadow: none;
    box-sizing: border-box;
    color: #212529;
    font-size: 14px;
    height: 42px;
    line-height: 1.4;
    padding: 12px 16px;
    transition: border-color .2s ease, box-shadow .2s ease;
    width: 100%;
}

.dichen-form select.dichen-form__control,
.pagebuilder-wysiwyg-snapshot .doncen-form select.dichen-form__control {
    appearance: none;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.25 6 6.25l5-5' fill='none' stroke='%23465154' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5'/%3E%3C/svg%3E");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 12px 8px;
    padding-right: 40px;
}

.dichen-form-select {
    position: relative;
}

.dichen-form-select.is-enhanced .dichen-form-select__native {
    clip-path: inset(50%);
    height: 1px;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    width: 1px;
}

.dichen-form-select__trigger {
    align-items: center;
    background: #fff;
    border: 1px solid #bababa;
    border-radius: 5px;
    box-shadow: none;
    box-sizing: border-box;
    color: #212529;
    cursor: pointer;
    display: flex;
    font-size: 14px;
    height: 42px;
    justify-content: space-between;
    line-height: 1.4;
    padding: 12px 16px;
    text-align: left;
    transition: border-color .2s ease, box-shadow .2s ease;
    width: 100%;
}

.dichen-form-select__trigger:hover {
    border-color: #859094;
}

.dichen-form-select__trigger:focus,
.dichen-form-select.is-open .dichen-form-select__trigger {
    border-color: var(--dichen-form-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--dichen-form-accent), transparent 88%);
    outline: 0;
}

.dichen-form-select__arrow {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.25 6 6.25l5-5' fill='none' stroke='%23465154' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5'/%3E%3C/svg%3E") center / 12px 8px no-repeat;
    flex: 0 0 12px;
    height: 8px;
    margin-left: 16px;
    transition: transform .2s ease;
    width: 12px;
}

.dichen-form-select.is-open .dichen-form-select__arrow {
    transform: rotate(180deg);
}

.dichen-form-select__menu {
    background: #fff;
    border: 1px solid #d5d9da;
    border-radius: 8px;
    box-shadow: 0 14px 36px rgba(26, 35, 38, .14);
    box-sizing: border-box;
    left: 0;
    margin-top: 8px;
    max-height: 280px;
    overflow: auto;
    padding: 6px;
    position: absolute;
    right: 0;
    z-index: 30;
}

.dichen-form-select__menu[hidden] {
    display: none;
}

.dichen-form-select__option {
    background: transparent;
    border: 0;
    border-radius: 5px;
    box-sizing: border-box;
    color: #212529;
    cursor: pointer;
    display: block;
    font-size: 14px;
    line-height: 1.4;
    padding: 11px 12px;
    text-align: left;
    width: 100%;
}

.dichen-form-select__option:hover,
.dichen-form-select__option:focus {
    background: #f2f4f4;
    outline: 0;
}

.dichen-form-select__option[aria-selected='true'] {
    background: color-mix(in srgb, var(--dichen-form-accent), white 92%);
    color: var(--dichen-form-accent);
    font-weight: 600;
}

.dichen-form-select__option[aria-disabled='true'] {
    color: #737d80;
    cursor: default;
}

.dichen-form-select__option[aria-disabled='true']:hover,
.dichen-form-select__option[aria-disabled='true']:focus,
.dichen-form-select__option[aria-disabled='true'][aria-selected='true'] {
    background: transparent;
}

.dichen-form-select:has(.dichen-form-select__native.mage-error) .dichen-form-select__trigger {
    border-color: #e02b27;
}

.dichen-form .dichen-form__control:hover,
.pagebuilder-wysiwyg-snapshot .doncen-form .dichen-form__control:hover {
    border-color: #859094;
}

.dichen-form .dichen-form__control:focus,
.pagebuilder-wysiwyg-snapshot .doncen-form .dichen-form__control:focus {
    border-color: var(--dichen-form-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--dichen-form-accent), transparent 88%);
    outline: 0;
}

.dichen-form .dichen-form__message,
.pagebuilder-wysiwyg-snapshot .doncen-form .dichen-form__message {
    height: auto;
    min-height: 112px;
    resize: vertical;
}

.dichen-form label.mage-error,
.dichen-form div.mage-error {
    color: red;
    display: block;
    font-size: 12px;
    margin-block-start: 8px;
}

.dichen-form__consent {
    align-items: flex-start;
    column-gap: 8px;
    display: flex;
    flex-wrap: wrap;
    row-gap: 0;
}

.dichen-form__consent > .mage-error {
    flex-basis: 100%;
    width: 100%;
}

.dichen-form__consent input {
    flex: 0 0 auto;
    accent-color: var(--dichen-form-accent);
    height: 14px;
    margin: 3px 0 0 !important;
    width: 14px;
}

.dichen-form__consent label {
    color: #212529;
    flex: 1;
    font-size: 14px;
    line-height: 1.45;
    min-width: 0;
}

.dichen-form__consent a {
    color: var(--dichen-form-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.dichen-form__actions {
    display: flex;
    margin: 24px 0 0;
}

.dichen-form__actions[data-align='center'] {
    justify-content: center;
}

.dichen-form__actions[data-align='right'] {
    justify-content: flex-end;
}

.dichen-form .dichen-form__submit.action.primary {
    background: var(--dichen-form-accent);
    border: 1px solid var(--dichen-form-accent);
    border-radius: 5px;
    box-shadow: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    min-height: 42px;
    padding: 10px 24px;
}

.dichen-form .dichen-form__submit.action.primary:hover,
.dichen-form .dichen-form__submit.action.primary:focus {
    background: color-mix(in srgb, var(--dichen-form-accent), #000 14%);
    border-color: color-mix(in srgb, var(--dichen-form-accent), #000 14%);
}

.dichen-form__submit[data-full-width='true'] {
    width: 100%;
}

@media only screen and (max-width: 767px) {
    .dichen-form__fields {
        gap: 18px;
        grid-template-columns: minmax(0, 1fr);
    }

    .dichen-form__field--full,
    .dichen-form__fields > .field-recaptcha {
        grid-column: auto;
    }

    .dichen-form__submit.action.primary {
        min-width: 76px;
    }
}
