.tbpf-form {
box-sizing: border-box;
direction: inherit;
font-family: inherit;
color: inherit;
}
.tbpf-form *,
.tbpf-form *::before,
.tbpf-form *::after {
box-sizing: inherit;
}
.tbpf-row {
margin-block-end: 1.1rem;
}
.tbpf-label {
display: block;
margin-block-end: 0.42rem;
font-weight: 600;
line-height: 1.35;
color: #202124;
}
.tbpf-input,
.tbpf-select,
.tbpf-textarea,
.tbpf-file {
display: block;
inline-size: 100%;
max-inline-size: 100%;
min-block-size: 48px;
padding-block: 0.78rem;
padding-inline: 0.9rem;
border: 1px solid #E4E0DA;
border-radius: 8px;
background: #fff;
color: #202124;
font: inherit;
line-height: 1.4;
transition: border-color 160ms ease, box-shadow 160ms ease;
}
.tbpf-textarea {
min-block-size: 132px;
resize: vertical;
}
.tbpf-file {
min-block-size: auto;
padding-block: 0.7rem;
}
.tbpf-input::placeholder,
.tbpf-textarea::placeholder {
color: #756f68;
}
.tbpf-checkbox-row {
display: flex;
gap: 0.6rem;
align-items: flex-start;
}
.tbpf-checkbox-row .tbpf-label {
margin-block-end: 0;
}
.tbpf-checkbox {
flex: 0 0 auto;
margin-block-start: 0.2rem;
}
.tbpf-help {
margin-block: 0.42rem 0;
font-size: 0.95em;
line-height: 1.5;
color: #5f5b56;
}
.tbpf-error,
.tbpf-success,
.tbpf-message {
padding-block: 0.82rem;
padding-inline: 0.95rem;
margin-block: 0.55rem 1.1rem;
border: 1px solid currentColor;
border-inline-start-width: 0.35rem;
border-radius: 8px;
line-height: 1.5;
}
.tbpf-message[hidden] {
display: none;
}
.tbpf-error,
.tbpf-field-error {
color: #8a1f11;
background: #fff4f0;
}
.tbpf-success {
color: #155724;
background: #f0fff4;
}
.tbpf-field-error {
padding-block: 0.55rem;
padding-inline: 0.7rem;
margin-block: 0.5rem 0;
border: 1px solid currentColor;
border-inline-start-width: 0.28rem;
border-radius: 8px;
font-size: 0.95em;
}
.tbpf-hp {
position: absolute;
inset-inline-start: -9999px;
inline-size: 1px;
block-size: 1px;
overflow: hidden;
}
.tbpf-submit:focus-visible,
.tbpf-input:focus-visible,
.tbpf-select:focus-visible,
.tbpf-textarea:focus-visible,
.tbpf-file:focus-visible,
.tbpf-checkbox:focus-visible {
outline: 2px solid #202124;
outline-offset: 2px;
}
.tbpf-input:focus,
.tbpf-select:focus,
.tbpf-textarea:focus,
.tbpf-file:focus {
border-color: #202124;
box-shadow: 0 0 0 3px rgba(32, 33, 36, 0.08);
}
.tbpf-submit {
display: inline-flex;
align-items: center;
justify-content: center;
min-block-size: 48px;
padding-block: 0.85rem;
padding-inline: 1.3rem;
border: 1px solid #C8102E;
border-radius: 8px;
background: #C8102E;
color: #fff;
font: inherit;
font-weight: 700;
line-height: 1.2;
text-decoration: none;
cursor: pointer;
transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.tbpf-submit:hover,
.tbpf-submit:focus {
border-color: #A50D26;
background: #A50D26;
color: #fff;
}
.tbpf-submit:active {
transform: translateY(1px);
}
.tbpf-submit:disabled,
.tbpf-submit[disabled] {
border-color: #E4E0DA;
background: #E4E0DA;
color: #5f5b56;
cursor: progress;
transform: none;
}
.tbpf-is-loading .tbpf-submit {
cursor: progress;
}
.tbpf-is-loading .tbpf-submit::after {
content: "";
inline-size: 0.85em;
block-size: 0.85em;
margin-inline-start: 0.65rem;
border: 2px solid currentColor;
border-block-start-color: transparent;
border-radius: 50%;
animation: tbpf-spin 800ms linear infinite;
}
@keyframes tbpf-spin {
to {
transform: rotate(360deg);
}
}