.garant-form {
    --garant-form-border: #e4e4e4;
    --garant-form-text: #202020;
    --garant-form-muted: #8b8b8b;
    --garant-form-accent: #f2c400;
    --garant-form-checkbox-border: #a0a0a0;
    --garant-form-checkbox-hover: #ffde00;
    --garant-form-checkbox-checked: #ffd600;
    box-sizing: border-box;
    color: var(--garant-form-text);
    max-width: 760px;
    width: 100%;
}

.garant-form *,
.garant-form *::before,
.garant-form *::after {
    box-sizing: border-box;
}

.garant-form__title,
.garant-form__section-title {
    color: inherit;
    font-family: 'Oswald', sans-serif;
    font-style: normal;
    font-weight: 600;
    letter-spacing: 0;
    margin: 0;
    vertical-align: middle;
}

.garant-form__title {
    font-size: 22px;
    line-height: 100%;
    margin-bottom: 24px;
}

.garant-form__section-title {
    font-size: 18px;
    line-height: 100%;
    margin-bottom: 24px;
}

.garant-form__fieldset {
    border: 0;
    margin: 0 0 28px;
    min-width: 0;
    padding: 0;
}

.garant-form__grid {
    display: grid;
    gap: 24px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.garant-form__field {
    min-width: 0;
    position: relative;
}

.garant-form__field--full {
    grid-column: 1 / -1;
}

.garant-form__label {
    color: #272727;
    display: block;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 7px;
}

.garant-form__label--screen-reader {
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.garant-form__required-mark {
    color: #FFDE00;
}

.garant-form__required-note {
    grid-column: 1 / -1;
    margin: -8px 0 0;
    color: #787878;
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
}

.garant-form__control {
    appearance: none;
    background: #fff !important;
    border: 1px solid var(--garant-form-border) !important;
    border-radius: 12px !important;
    color: #595454 !important;
    display: block;
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 400 !important;
    letter-spacing: 0;
    line-height: 100%;
    min-height: 54px;
    padding: 14px 42px 14px 14px;
    text-transform: none;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease, padding .18s ease, font-size .18s ease, line-height .18s ease;
    width: 100%;
}

select.garant-form__control {
    background-image: linear-gradient(45deg, transparent 50%, #444 50%), linear-gradient(135deg, #444 50%, transparent 50%);
    background-position: calc(100% - 20px) 23px, calc(100% - 15px) 23px;
    background-repeat: no-repeat;
    background-size: 6px 6px, 6px 6px;
}

.garant-form__control::placeholder {
    color: var(--garant-form-muted);
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 100%;
    opacity: 1;
}

.garant-form__control:focus {
    border: 2px solid #ffde00 !important;
    box-shadow: none !important;
    outline: 0;
}

.garant-form__control:disabled {
    background-color: #f5f5f5 !important;
    color: #bebebe !important;
    cursor: not-allowed;
}

/* Custom select presentation. The native select remains in the form and is
 * used as the submitted value; this layer only controls the visual UI. */
.garant-form__select {
    min-width: 0;
    position: relative;
}

.garant-form__select .garant-form__control--native {
    border: 0;
    clip: rect(0, 0, 0, 0);
    height: 1px;
    margin: -1px;
    min-height: 1px;
    opacity: 0;
    overflow: hidden;
    padding: 0;
    pointer-events: none;
    position: absolute;
    width: 1px;
}

.garant-form__select-label,
.garant-form__field--floating .garant-form__floating-label {
    font-family: 'Manrope', sans-serif;
    font-size: 11px;
    font-weight: 500;
    left: 15px;
    margin: 0;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    transform: translateY(-3px);
    transition: opacity .16s ease, transform .16s ease, color .16s ease;
    z-index: 1;
}

.garant-form__select-label {
    color: #666;
    line-height: 1.2;
    top: 11px;
}

.garant-form__field--floating .garant-form__floating-label {
    color: #787878;
    line-height: 100%;
    letter-spacing: 0;
    top: 9px;
}

.garant-form__field--floating .garant-form__required-mark,
.garant-form__select-label .garant-form__required-mark,
.garant-form__required-note .garant-form__required-mark {
    color: #FFDE00;
}

.garant-form__field--floating .garant-form__floating-label span {
    color: inherit;
}

.garant-form__select-trigger {
    align-items: center;
    appearance: none;
    background: #fff !important;
    border: 1px solid var(--garant-form-border) !important;
    border-radius: 12px !important;
    color: #595454 !important;
    cursor: pointer;
    display: flex;
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 400 !important;
    letter-spacing: 0;
    line-height: 100%;
    min-height: 54px;
    padding: 14px 42px 14px 14px;
    position: relative;
    text-align: left;
    text-transform: none;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
    width: 100%;
}

.garant-form__select-trigger:focus-visible,
.garant-form__select.is-open .garant-form__select-trigger,
.garant-form__select:focus-within .garant-form__select-trigger {
    border: 2px solid #ffde00 !important;
    box-shadow: none !important;
    outline: 0;
}

.garant-form__select.is-disabled .garant-form__select-trigger .garant-form__select-value {
    color: #bebebe !important;
}

.garant-form__select.is-disabled .garant-form__select-trigger {
    background: #f5f5f5 !important;
    color: #bebebe !important;
}

.garant-form__select.has-value .garant-form__select-label,
.garant-form__select.is-open .garant-form__select-label,
.garant-form__select:focus-within .garant-form__select-label {
    opacity: 1;
    transform: translateY(0);
}

.garant-form__field--floating.has-value .garant-form__floating-label,
.garant-form__field--floating:focus-within .garant-form__floating-label {
    opacity: 1;
    transform: translateY(0);
}

.garant-form__select.has-value .garant-form__select-trigger,
.garant-form__select.is-open .garant-form__select-trigger,
.garant-form__select:focus-within .garant-form__select-trigger {
    padding-bottom: 10px;
    padding-top: 24px;
}

.garant-form__field--floating.has-value .garant-form__control,
.garant-form__field--floating:focus-within .garant-form__control {
    /* 9px label inset + 11px label + 9px gap + 15px value + 9px bottom inset. */
    padding-bottom: 9px;
    padding-top: 27px;
    color: #212121 !important;
    font-size: 15px;
    font-style: normal;
    line-height: 100%;
    letter-spacing: 0;
}

.garant-form__field--floating:focus-within .garant-form__control::placeholder {
    color: transparent;
    opacity: 0;
}

.garant-form__select.has-value .garant-form__select-value {
    color: #595454 !important;
}

.garant-form__select-arrow {
    border-bottom: 2px solid #444;
    border-right: 2px solid #444;
    height: 9px;
    pointer-events: none;
    position: absolute;
    right: 17px;
    top: 20px;
    transform: rotate(45deg);
    transition: transform .16s ease, top .16s ease;
    width: 9px;
}

.garant-form__select.is-open .garant-form__select-arrow {
    top: 24px;
    transform: rotate(225deg);
}

.garant-form__select--has-hint .garant-form__select-trigger {
    padding-right: 66px;
}

.garant-form__select--has-hint .garant-form__select-arrow {
    right: 43px;
}

.garant-form__select-menu {
    background: #fff;
    border: 1px solid #d8d8d8;
    border-radius: 18px;
    box-shadow: 0 10px 20px rgba(32, 32, 32, .14);
    left: 0;
    max-height: 320px;
    overflow-y: auto;
    padding: 12px 14px;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 20;
}

.garant-form__select-option {
    border-radius: 10px;
    color: var(--garant-form-text);
    cursor: pointer;
    font-size: 16px;
    line-height: 1.3;
    padding: 13px 14px;
    transition: background-color .14s ease;
}

.garant-form__select-option:hover,
.garant-form__select-option:focus-visible,
.garant-form__select-option.is-selected {
    background: #f1f1f1;
    outline: 0;
}

.garant-form__select.is-disabled .garant-form__select-trigger {
    background: #f5f5f5 !important;
    color: #bebebe !important;
    cursor: not-allowed;
}

.garant-form__select.is-disabled .garant-form__select-trigger .garant-form__select-value {
    color: #bebebe !important;
}

.garant-form__select.is-disabled .garant-form__select-arrow {
    border-color: #bebebe !important;
}

.garant-form__control--textarea {
    min-height: 118px;
    padding-right: 14px;
    resize: vertical;
}

.garant-form__channels {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 12px;
}

.garant-form__channels .garant-form__label {
    flex-basis: auto;
    margin-bottom: 0;
}

.garant-form__checkbox {
    align-items: center;
    cursor: pointer;
    display: inline-flex;
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
    gap: 12px;
    letter-spacing: 0;
    line-height: 1.4;
}

.garant-form__checkbox input {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: 2px solid var(--garant-form-checkbox-border) !important;
    border-radius: 4px !important;
    cursor: pointer;
    height: 20px;
    margin: 0;
    min-width: 20px;
    padding: 0 !important;
    position: relative;
    transition: background-color .2s ease, border-color .2s ease;
    width: 20px;
}

.garant-form__checkbox input:hover {
    background-color: #ffde0014;
    border-color: var(--garant-form-checkbox-hover) !important;
}

.garant-form__checkbox input:checked {
    background: var(--garant-form-checkbox-checked) !important;
    border-color: var(--garant-form-checkbox-checked) !important;
}

.garant-form__checkbox input:checked::after {
    border: solid #111;
    border-width: 0 2px 2px 0;
    content: '';
    height: 9px;
    left: 5px;
    position: absolute;
    top: 2px;
    transform: rotate(45deg);
    width: 6px;
}

.garant-form__checkbox input:checked + span {
    color: inherit;
}

.garant-form__submit {
    background: #e8e8e8;
    border: 0;
    border-radius: 24px;
    color: #878787;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    min-height: 46px;
    padding: 0 24px;
    text-transform: uppercase;
    transition: background-color .18s ease, color .18s ease;
}

.garant-form__submit:hover:not(:disabled),
.garant-form__submit:focus-visible:not(:disabled) {
    background: var(--garant-form-accent);
    color: #202020;
}

.garant-form__submit:disabled {
    cursor: wait;
    opacity: .65;
}

.garant-form__notice {
    border-radius: 8px;
    margin: 0 0 18px;
    padding: 12px 14px;
}

.garant-form__notice ul {
    margin: 0;
    padding-left: 18px;
}

.garant-form__notice--error {
    background: #fff0f0;
    color: #9d2424;
}

.garant-form__notice--success {
    background: #eff9f0;
    color: #286d32;
}

.garant-form__notice--registration-success {
    background: #f7f7f7;
    border: 1px solid var(--garant-form-accent);
    color: #202020;
    margin-bottom: 0;
    padding: 14px 10px;
}

.garant-form__success-title {
    display: block;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

.garant-form__success-text {
    font-size: 12px;
    line-height: 1.45;
    margin: 7px 0 0;
}

.garant-form__success-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 18px 0 24px;
}

.garant-form [hidden] {
    display: none !important;
}

.garant-form__success-action {
    align-items: center;
    border: 1px solid var(--garant-form-accent);
    border-radius: 24px;
    box-sizing: border-box;
    display: inline-flex;
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 500;
    justify-content: center;
    line-height: 1.2;
    min-height: 42px;
    padding: 0 20px;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.garant-form__success-action--home {
    background: var(--garant-form-accent);
    color: #202020;
}

.garant-form__success-action--additional {
    background: #fff;
    color: #202020;
    cursor: pointer;
}

.garant-form__success-action--home:hover,
.garant-form__success-action--home:focus-visible,
.garant-form__success-action--additional:hover,
.garant-form__success-action--additional:focus-visible {
    background: #ffde00;
    border-color: #ffde00;
    color: #202020;
    outline: 0;
}

.garant-form__hint-trigger {
    align-items: center;
    background: var(--garant-form-accent);
    border: 0;
    border-radius: 50%;
    bottom: 17px;
    color: #242424;
    cursor: pointer;
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    height: 20px;
    justify-content: center;
    line-height: 1;
    padding: 3px 7px !important;
    position: absolute;
    right: 12px;
    width: 20px;
}

.garant-form__hint {
    background: #3d3d3d;
    border-radius: 7px;
    bottom: calc(100% + 8px);
    color: #fff;
    font-size: 12px;
    font-weight: 400;
    left: 0;
    line-height: 1.35;
    padding: 12px 14px;
    position: absolute;
    width: min(330px, 90vw);
    z-index: 2;
}

.garant-form__hint::after {
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 7px solid #3d3d3d;
    bottom: -7px;
    content: '';
    left: 22px;
    position: absolute;
}

.garant-form__honeypot {
    height: 1px;
    left: -9999px;
    overflow: hidden;
    position: absolute;
    top: auto;
    width: 1px;
}

@media (max-width: 640px) {
    .garant-form__title {
        font-size: 21px;
        margin-bottom: 26px;
    }

    .garant-form__grid {
        grid-template-columns: 1fr;
    }

    .garant-form__field--full {
        grid-column: auto;
    }
}

/* Site-specific form styling. Kept in the plugin so both registration and
 * agreement-revocation forms have the same appearance wherever they are used. */
.garant-form__title,
.garant-form__section-title {
    font-family: 'Oswald', sans-serif !important;
    font-weight: 600 !important;
    font-style: normal;
    line-height: 100%;
    letter-spacing: 0;
    vertical-align: middle;
}

.garant-form__title {
    font-size: 22px;
    margin-bottom: 24px;
}

.garant-form__section-title {
    font-size: 18px;
    margin-bottom: 24px;
}

.garant-form__grid {
    gap: 24px !important;
}

.garant-form__select:not(.is-disabled) .garant-form__select-trigger,
.garant-form__control {
    color: #595454 !important;
}

.garant-form__select .garant-form__select-trigger,
.garant-form__control {
    background: #fff !important;
    border: 1px solid var(--garant-form-border) !important;
    border-radius: 12px !important;
    padding: 16px;
}

.garant-form__select-label {
    left: 18px !important;
    color: #787878 !important;
}

.garant-form__control {
    padding: 16px !important;
}

.garant-form__select .garant-form__select-trigger .garant-form__select-value,
.garant-form__control {
    font-family: 'Manrope', sans-serif !important;
    font-weight: 400 !important;
    font-size: 16px !important;
    line-height: 100%;
    letter-spacing: 0;
    color: #595454 !important;
    text-transform: none;
}

.garant-form__select.is-disabled .garant-form__select-trigger .garant-form__select-value {
    color: #bebebe !important;
}

.garant-form__select.is-disabled .garant-form__select-trigger {
    background: #f5f5f5 !important;
}

.garant-form__select.is-open .garant-form__select-value {
    color: #bdbdbd !important;
}

.garant-form__select-trigger:focus-visible,
.garant-form__select.is-open .garant-form__select-trigger,
.garant-form__select:focus-within .garant-form__select-trigger {
    box-shadow: none !important;
    border: 2px solid #ffde00 !important;
}

.garant-form__select.is-disabled .garant-form__select-arrow {
    border-color: #bebebe !important;
}

.garant-form__hint-trigger {
    padding: 3px 7px !important;
    width: 20px !important;
    height: 20px !important;
}

.garant-form__field.has-value .garant-form__control,
.garant-form__control:focus,
.garant-form__control:active {
    padding: 20px 14px 9px 14px !important;
}

.garant-form__control:focus,
.garant-form__control:active {
    box-shadow: none !important;
    border: 2px solid #ffde00 !important;
}

.garant-form__channels {
    flex-direction: column;
    gap: 12px !important;
    flex-wrap: nowrap;
}

.garant-form__channels .garant-form__label {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 100%;
}

.garant-form__checkbox {
    font-family: 'Manrope', sans-serif;
    font-weight: 400;
    font-size: 13px;
    line-height: 140%;
}

@media (max-width: 768px) {
    .garant-form__submit {
        width: 100%;
    }
}
