/* Block Form: sidebar text sizing and paragraph reset */
.block-form .block-form-sidebar-body p,
.block-form .block-form-sidebar-item-text p {
  margin: 0 !important;
  line-height: inherit !important;
}

.block-form .block-form-sidebar-body,
.block-form .block-form-sidebar-item-text,
.block-form .block-form-sidebar-listitem {
  min-height: 48px;
}

@media (max-width: 390px) {
  .block-form .block-form-sidebar-body,
  .block-form .block-form-sidebar-item-text {
    min-height: 32px !important;
  }

  .block-form .block-form-sidebar-listitem {
    min-height: 70px !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
    line-height: 22px !important;
  }
}
@media (min-width: 768px) and (max-width: 1024px) {
  .block-form .block-form-sidebar-body,
  .block-form .block-form-sidebar-item-text {
    min-height: 40px !important;
  }

  .block-form .block-form-sidebar-listitem {
    min-height: 70px !important;
  }

  .block-form .block-form-sidebar-body,
  .block-form .block-form-sidebar-item-text,
  .block-form .block-form-sidebar-body p,
  .block-form .block-form-sidebar-item-text p {
    font-size: 14px !important;
    line-height: 20px !important;
  }

  .block-form .block-form-sidebar-listitem .block-form-sidebar-item-text,
  .block-form .block-form-sidebar-listitem .block-form-sidebar-item-text p {
    line-height: 22px !important;
  }
}

.block-form .block-form-polygon-top,
.block-form .block-form-polygon-bottom {
  --block-form-polygon-color: #ffffff;
  aspect-ratio: 1440 / 87;
  background-color: var(--block-form-polygon-color);
  width: 100%;
}

.block-form.block-form--footer-attached {
  --block-form-footer-overlap: -6.0416666667%;
  margin-bottom: var(--block-form-footer-overlap);
  position: relative;
  z-index: 1;
}

.block-form.block-form--footer-attached .block-form-polygon-bottom {
  --block-form-polygon-color: var(--color-bg-enterprise, #f4f6f9);
}

.block-form .block-form-polygon-top {
  --block-form-cut-overshoot: 16px;
  clip-path: polygon(0 100%, 100% 0, 100% 0, 0 0);
  margin-right: calc(var(--block-form-cut-overshoot) * -1);
  margin-top: -1px;
  width: calc(100% + var(--block-form-cut-overshoot));
}

.block-form .block-form-polygon-bottom {
  background-color: transparent;
  clip-path: none;
  margin-right: -1px;
  position: relative;
}

.block-form .block-form-polygon-bottom::before {
  background-color: var(--block-form-polygon-color);
  clip-path: polygon(0 100%, 100% 0%, 100% 100%, 0 100%);
  content: "";
  inset: -1px -1px -1px 0;
  pointer-events: none;
  position: absolute;
}

    .block-form-custom-select {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        background-image: none !important;
    }

    .block-form .block-form-consent-checkbox {
        -webkit-appearance: none;
        appearance: none;
        width: 20px;
        height: 20px;
        border-radius: var(--Low, 2px);
        border: 1px solid var(--primary, #0072CE);
        background: var(--grey-1, #F2F2F2);
        background-repeat: no-repeat;
        background-position: center;
        background-size: 16px 16px;
        cursor: pointer;
    }

    .block-form .block-form-consent-checkbox:hover {
        background: var(--info-alternative, #E6F2F9);
    }

    .block-form .block-form-consent-checkbox:checked,
    .block-form .block-form-consent-checkbox:checked:hover {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M2 0C1.46957 0 0.960859 0.210714 0.585786 0.585786C0.210714 0.960859 0 1.46957 0 2L0 14C0 14.5304 0.210714 15.0391 0.585786 15.4142C0.960859 15.7893 1.46957 16 2 16H14C14.5304 16 15.0391 15.7893 15.4142 15.4142C15.7893 15.0391 16 14.5304 16 14V2C16 1.46957 15.7893 0.960859 15.4142 0.585786C15.0391 0.210714 14.5304 0 14 0L2 0ZM12.03 4.97C11.9586 4.89882 11.8735 4.84277 11.7799 4.80522C11.6863 4.76766 11.5861 4.74936 11.4853 4.75141C11.3845 4.75347 11.2851 4.77583 11.1932 4.81717C11.1012 4.85851 11.0185 4.91797 10.95 4.992L7.477 9.417L5.384 7.323C5.24183 7.19052 5.05378 7.1184 4.85948 7.12183C4.66518 7.12525 4.47979 7.20397 4.34238 7.34138C4.20497 7.47879 4.12625 7.66418 4.12283 7.85848C4.1194 8.05278 4.19152 8.24083 4.324 8.383L6.97 11.03C7.04128 11.1012 7.12616 11.1572 7.21958 11.1949C7.313 11.2325 7.41305 11.2509 7.51375 11.2491C7.61444 11.2472 7.71374 11.2251 7.8057 11.184C7.89766 11.1429 7.9804 11.0837 8.049 11.01L12.041 6.02C12.1771 5.8785 12.2523 5.68928 12.2504 5.49296C12.2485 5.29664 12.1698 5.10888 12.031 4.97H12.03Z' fill='%230072CE'/%3E%3C/svg%3E");
        background-size: cover;
        border:0px;
    }

    .block-form .block-form-consent-radio {
        -webkit-appearance: none;
        appearance: none;
        width: 20px;
        height: 20px;
        padding: 0;
        border: 0;
        background-repeat: no-repeat;
        background-position: center;
        background-size: 100% 100%;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17' height='17' viewBox='0 0 17 17' fill='none'%3E%3Cpath d='M8.5 0.5C12.9183 0.5 16.5 4.08172 16.5 8.5C16.5 12.9183 12.9183 16.5 8.5 16.5C4.08172 16.5 0.5 12.9183 0.5 8.5C0.5 4.08172 4.08172 0.5 8.5 0.5Z' fill='white' stroke='%23BFBFBF'/%3E%3C/svg%3E");
        cursor: pointer;
    }

    .block-form .block-form-consent-radio:hover {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17' height='17' viewBox='0 0 17 17' fill='none'%3E%3Cpath d='M8.5 0.5C12.9183 0.5 16.5 4.08172 16.5 8.5C16.5 12.9183 12.9183 16.5 8.5 16.5C4.08172 16.5 0.5 12.9183 0.5 8.5C0.5 4.08172 4.08172 0.5 8.5 0.5Z' fill='%23E6F2F9' stroke='%23BFBFBF'/%3E%3C/svg%3E");
    }

    .block-form .block-form-consent-radio:checked {
        background-image:
            radial-gradient(circle at center, var(--primary, #0072CE) 0 6.5px, transparent 6.6px),
            url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17' height='17' viewBox='0 0 17 17' fill='none'%3E%3Cpath d='M8.5 0.5C12.9183 0.5 16.5 4.08172 16.5 8.5C16.5 12.9183 12.9183 16.5 8.5 16.5C4.08172 16.5 0.5 12.9183 0.5 8.5C0.5 4.08172 4.08172 0.5 8.5 0.5Z' fill='white' stroke='%23BFBFBF'/%3E%3C/svg%3E");
        background-size: contain;
        background-position: center, center;
        background-repeat: no-repeat, no-repeat;
    }

    .block-form .iti {
        width: 100%;
    }

    .block-form .iti__tel-input {
        width: 100%;
        height: 48px;
        border: 1px solid #bfbfbf;
        border-radius: 4px;
        padding-right: 12px;
        color: #666;
        font-size: 16px;
        line-height: 24px;
        background: #fff;
    }

    .block-form .iti--separate-dial-code .iti__tel-input {
        padding-left: 156px;
    }

    .block-form .iti__tel-input:focus {
        border-color: #006f98;
        outline: none;
        box-shadow: 0 0 0 1px rgba(0, 111, 152, 0.2);
    }

    .block-form .iti__tel-input::placeholder {
        color: #666;
        opacity: 1;
    }

    .block-form .iti__country-container {
        top: 5px;
        bottom: 5px;
        left: 1px!important;
        padding: 0;
    }

    .block-form .iti__selected-country {
        display: flex;
        align-items: center;
        height: 100%;
        padding: 0 4px 0 12px;
        border-right: 1px solid #bfbfbf;
        border-radius: 6px 0 0 6px;
        background: #fff;
    }

    .block-form .iti__selected-country-primary {
        height: 100%;
        padding: 0px;
        width: 24px;
    }

    .block-form .iti__selected-dial-code {
        order: 2;
        margin-left: 4px;
        margin-right: 4px;
        color: #666;
        font-size: 16px;
        line-height: 24px;
    }

    .block-form .iti__arrow {
        display: none;
    }

    .block-form .iti__selected-country::after {
        content: "";
        order: 3;
        width: 24px;
        height: 24px;
        flex: 0 0 24px;
        background-repeat: no-repeat;
        background-position: center;
        background-size: 24px 24px;
        background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8.69643 11.3102L11.2868 13.9007C11.6769 14.2907 12.307 14.2907 12.6971 13.9007L15.2875 11.3102C15.9176 10.6801 15.4675 9.59998 14.5774 9.59998H9.39654C8.5064 9.59998 8.06633 10.6801 8.69643 11.3102Z' fill='%23001022'/%3E%3C/svg%3E");
    }

    .block-form .iti__selected-country .iti__flag-box {
        width: 24px;
        height: 16.8px;
        flex-shrink: 0;
        overflow: hidden;
    }

    .block-form .iti__selected-country .iti__flag {
        order: 1;
        transform: scale(1.5);
        transform-origin: left;
    }

    .block-form .iti__selected-country .iti__flag.iti__it {
        margin-top: 0;
    }

    .block-form .iti__dropdown-content {
        z-index: 40;
        width: 100%;
        background: #fff !important;
        border: 1px solid #bfbfbf !important;
        border-radius: 6px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
        color: #001022 !important;
    }

    .block-form .iti__search-input {
        height: 40px;
        padding: 8px 12px;
        border: 0;
        border-bottom: 1px solid #e5e7eb;
        color: #001022 !important;
        background: #fff !important;
        font-size: 14px;
        line-height: 20px;
    }

    .block-form .iti__search-input::placeholder {
        color: #6b7280 !important;
    }

    .block-form .iti__country-list {
        margin: 0;
        padding: 4px 0;
        background: #fff !important;
        color: #001022 !important;
    }

    .block-form .iti__country {
        display: flex !important;
        align-items: center;
        gap: 8px;
        min-height: 36px;
        padding: 8px 12px;
        color: #001022 !important;
    }

    .block-form .iti__country .iti__flag-box {
        width: 20px;
        height: 15px;
        flex: 0 0 20px;
        margin-right: 2px;
        overflow: hidden;
    }

    .block-form .iti__country .iti__flag {
        transform: none !important;
    }

    .block-form .iti__country-name {
        color: #001022 !important;
        font-size: 14px;
        line-height: 20px;
    }

    .block-form .iti__country .iti__dial-code {
        margin-left: auto;
        color: #4b5563 !important;
        font-size: 14px;
        line-height: 20px;
    }

    .block-form .iti__country:hover,
    .block-form .iti__country.iti__highlight {
        background: #f3f4f6 !important;
    }

    .block-form .iti__country.iti__selected {
        background: #e5efff !important;
    }

    .block-form .is-invalid-field {
        border-radius: var(--Medium, 4px) !important;
        border: 1px solid var(--danger, #EC0045) !important;
        background: var(--white, #FFF) !important;
    }

    .block-form .is-invalid-field:focus {
        border-color: var(--danger, #EC0045) !important;
        box-shadow: none !important;
        outline: none !important;
    }

    .block-form .js-field-error {
        display: flex;
        align-items: flex-start;
        gap: 4px;
        margin-top: 4px;
        color: var(--danger, #EC0045);
        font-family: var(--family-body, "Albert Sans");
        font-size: var(--size-Body-2, 14px);
        font-style: normal;
        font-weight: 400;
        line-height: var(--line-height-Body-2, 20px);
    }

    .block-form .js-captcha-error {
        align-items: flex-start;
        gap: 4px;
    }

    .block-form .js-captcha-error:not(.hidden) {
        display: flex;
    }

    .block-form .block-form-error-icon {
        flex-shrink: 0;
        color: var(--danger, #EC0045);
        font-size: 16px;
        line-height: 20px;
    }

    .block-form-sidebar-text {
        color: var(--secondary-dark, #001022);
        font-family: var(--family-body, "Albert Sans");
        font-size: var(--size-Body-2, 14px);
        font-style: normal;
        font-weight: 400;
        line-height: var(--line-height-Body-2, 20px);
    }

    [data-color-variant="corporate"] .block-form-sidebar-text,
    [data-color-variant="pa"] .block-form-sidebar-text {
        color: white;
    }

    .block-form-sidebar-text a {
        font-size: var(--size-Body-1, 16px);
        line-height: var(--line-height-Body-1, 24px);
    }

    [data-color-variant="corporate"] .block-form-sidebar-text a,
    [data-color-variant="pa"] .block-form-sidebar-text a {
        color: white;
    }

    @media (min-width: 1280px) {
        .block-form-sidebar-text {
            font-size: var(--size-Body-1, 16px);
            line-height: var(--line-height-Body-1, 24px);
        }
    }
