.fbf-form,
.fbf-form * {
    box-sizing: border-box;
}

.fbf-form {
    width: min(100%, 1180px);
    margin-inline: auto;
    color: #fafafa;
    position: relative;
    min-width: 0;
}

.fbf-form button,
.fbf-form input:not([type="checkbox"]):not([type="file"]),
.fbf-form textarea,
.fbf-form select {
    font: inherit;
    appearance: none;
    -webkit-appearance: none;
}

.fbf-form__title {
    margin: 0 0 34px;
    color: #fafafa;
    font-family: "Gerbera", Arial, sans-serif;
    font-size: clamp(32px, 4vw, 50px);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: 0;
    text-transform: uppercase;
}

.fbf-form__title span {
    display: block;
}

.fbf-form__grid {
    display: grid;
    grid-template-columns: minmax(0, 430px) minmax(0, 580px);
    justify-content: space-between;
    gap: clamp(40px, 7vw, 120px);
    align-items: start;
}

.fbf-form__fields,
.fbf-form__content {
    min-width: 0;
}

.fbf-form__fields {
    display: grid;
    align-content: start;
    gap: 15px;
}

.fbf-form__field {
    min-width: 0;
}

.fbf-form__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.fbf-form__input,
.fbf-form__textarea {
    width: 100%;
    max-width: 100%;
    border: 0;
    border-radius: 0;
    background: #fafafa;
    color: #101820;
    font-family: "Gerbera", Arial, sans-serif;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: none;
}

.fbf-form__input {
    height: 41px;
    padding: 0 14px;
}

.fbf-form__textarea {
    min-height: 450px;
    max-height: 720px;
    padding: 14px;
    resize: vertical;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
}

.fbf-form__input::placeholder,
.fbf-form__textarea::placeholder {
    color: #be77cf;
    font-family: "Gerbera", Arial, sans-serif;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 1;
}

.fbf-form__input:focus,
.fbf-form__textarea:focus,
.fbf-form__checkbox:focus-visible,
.fbf-form__submit:focus-visible,
.fbf-form__video-button:focus-visible,
.fbf-form__upload-button:focus-visible,
.fbf-form__menu-item:focus-visible,
.fbf-form__video-remove:focus-visible,
.fbf-form__stop:focus-visible {
    outline: 1px solid #be77cf;
    outline-offset: 2px;
}

.fbf-form__input:focus,
.fbf-form__textarea:focus {
    box-shadow: none;
}

.fbf-form__input:-webkit-autofill,
.fbf-form__input:-webkit-autofill:hover,
.fbf-form__input:-webkit-autofill:focus,
.fbf-form__textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #fafafa inset;
    -webkit-text-fill-color: #101820;
    caret-color: #101820;
    transition: background-color 9999s ease-out;
}

.fbf-form__description {
    color: #fafafa;
    font-family: "Quercus 10", Georgia, serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.2;
}

.fbf-form__description p {
    margin: 0 0 16px;
}

.fbf-form__list {
    margin: 0 0 16px;
    padding-left: 1.2em;
}

.fbf-form__list li {
    margin: 0 0 8px;
    overflow-wrap: anywhere;
}

.fbf-form__consent {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    margin: 28px 0 0;
}

.fbf-form__checkbox {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    width: 20px;
    height: 20px;
    margin: 0;
    padding: 0;
    border: 1px solid #ffd812;
    border-radius: 0;
    background: #ffffff;
    cursor: pointer;
}

.fbf-form__checkbox:checked {
    background: #ffd812;
    position: relative;
}

.fbf-form__checkbox:checked::after {
    content: "";
    display: block;
    width: 10px;
    height: 6px;
    margin: 3px auto 0;
    border-left: 2px solid #101820;
    border-bottom: 2px solid #101820;
    transform: rotate(-45deg);
}

.fbf-form__consent-text {
    color: #c8c8c8;
    font-family: "Quercus 10", Georgia, serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.3;
    overflow-wrap: anywhere;
    display: block;
}

.fbf-form__consent-text a {
    color: inherit;
    text-decoration: underline;
}

.fbf-form__actions {
    display: grid;
    justify-items: start;
    gap: 16px;
    margin-top: 28px;
}

.fbf-form__submit,
.fbf-form__video-button,
.fbf-form__stop,
.fbf-form__video-remove,
.fbf-form__menu-item {
    border: 1px solid #be77cf;
    border-radius: 0;
    background: transparent;
    color: #fafafa;
    font-family: "Gerbera", Arial, sans-serif;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    cursor: pointer;
}

.fbf-form__submit {
    width: 281px;
    max-width: 100%;
    min-height: 62px;
    font-size: 18px;
}

.fbf-form__video-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
    min-width: 0;
    width: 100%;
}

.fbf-form__video-wrap {
    position: relative;
    min-width: 0;
}

.fbf-form__video-button {
    width: 201px;
    max-width: 100%;
    min-height: 62px;
    font-size: 18px;
}

.fbf-form__upload-button {
    display: inline-flex;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: #00a896;
    padding: 0;
    cursor: pointer;
}

.fbf-form__upload-button img {
    display: block;
    width: 22px;
    height: 22px;
}

.fbf-form__submit:hover,
.fbf-form__video-button:hover,
.fbf-form__stop:hover,
.fbf-form__video-remove:hover,
.fbf-form__menu-item:hover {
    opacity: 0.86;
    border-color: #be77cf;
}

.fbf-form__upload-button:hover {
    opacity: 0.9;
}

.fbf-form__submit:disabled,
.fbf-form__video-button:disabled {
    opacity: 0.7;
    cursor: wait;
}

.fbf-form__video-menu {
    position: absolute;
    z-index: 20;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    background: #101820;
    border: 1px solid #be77cf;
    padding: 8px;
}

.fbf-form__menu-item {
    display: block;
    width: 100%;
    min-height: 44px;
    margin: 0 0 6px;
    padding: 0 12px;
    text-align: left;
    font-size: 13px;
}

.fbf-form__menu-item:last-child {
    margin-bottom: 0;
}

.fbf-form__file {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.fbf-form__video-preview,
.fbf-form__recorder,
.fbf-form__progress {
    margin-top: 18px;
    min-width: 0;
}

.fbf-form__video-player,
.fbf-form__recorder-live {
    display: block;
    width: min(100%, 320px);
    max-height: 180px;
    background: #000;
}

.fbf-form__video-meta,
.fbf-form__recorder-status,
.fbf-form__progress-text,
.fbf-form__status {
    margin: 10px 0 0;
    font-family: "Quercus 10", Georgia, serif;
    font-size: 14px;
    line-height: 1.3;
    color: #fafafa;
    overflow-wrap: anywhere;
}

.fbf-form__status.is-success {
    color: #00a896;
}

.fbf-form__status.is-error,
.fbf-form__error {
    color: #ffd812;
}

.fbf-form__error {
    margin: 6px 0 0;
    font-family: "Quercus 10", Georgia, serif;
    font-size: 12px;
    line-height: 1.3;
}

.fbf-form__error[hidden],
.fbf-form__video-preview[hidden],
.fbf-form__recorder[hidden],
.fbf-form__progress[hidden],
.fbf-form__video-menu[hidden] {
    display: none;
}

.fbf-form__progress-bar {
    display: block;
    width: 100%;
    height: 4px;
    margin-top: 8px;
    background: #be77cf;
    transform-origin: left center;
}

.fbf-form__stop,
.fbf-form__video-remove {
    margin-top: 10px;
    min-height: 44px;
    padding: 0 16px;
    font-size: 13px;
}

.fbf-hp {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.fbf-form.is-invalid .fbf-form__input[aria-invalid="true"],
.fbf-form.is-invalid .fbf-form__textarea[aria-invalid="true"] {
    outline: 1px solid #ffd812;
}

@media (max-width: 1024px) {
    .fbf-form__grid {
        gap: 40px;
    }

    .fbf-form__textarea {
        min-height: 320px;
    }
}

@media (max-width: 767px) {
    .fbf-form__title {
        margin-bottom: 24px;
        font-size: clamp(28px, 9vw, 40px);
    }

    .fbf-form__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .fbf-form__textarea {
        min-height: 240px;
        max-height: 420px;
    }

    .fbf-form__description {
        font-size: 17px;
    }

    .fbf-form__submit,
    .fbf-form__video-button {
        width: 100%;
    }

    .fbf-form__video-row {
        width: 100%;
    }

    .fbf-form__video-wrap {
        flex: 1 1 auto;
    }
}

@media (max-width: 360px) {
    .fbf-form__consent-text {
        font-size: 12px;
    }
}
