/* "Buyer / Investor" or "Agent / Broker" on every lead form: resources/views/frontend/partials/visitor-type.blade.php */
.fcp-vt {
    display: flex;
    flex: 0 0 100%;
    flex-wrap: wrap;
    gap: .5rem;
    width: 100%;
    margin: .5rem 0 .75rem;
    text-align: center;
}

.fcp-vt .fcp-vt__choice {
    position: relative;
    display: flex;
    flex: 1 1 7.5rem;
    min-width: 0;
    margin: 0;
    padding: 0;
    cursor: pointer;
}

/*
 * Hidden but focusable, so the browser can point its "please choose" message at it. The themes give
 * every input a full width, which would push the page sideways on a phone: hence !important.
 */
.fcp-vt .fcp-vt__choice input {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 1px !important;
    min-width: 0 !important;
    height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0;
    pointer-events: none;
}

.fcp-vt .fcp-vt__choice span {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin: 0;
    padding: .5rem .75rem;
    border: 1.5px solid #cbd5e1;
    border-radius: 50px;
    background: #fff;
    color: #1e293b;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
}

.fcp-vt .fcp-vt__choice:hover span {
    border-color: var(--color-primary, #6778a4);
}

.fcp-vt .fcp-vt__choice input:checked + span {
    border-color: var(--color-primary, #6778a4);
    background: var(--color-primary, #6778a4);
    color: #fff;
}

.fcp-vt .fcp-vt__choice input:focus-visible + span {
    outline: 2px solid var(--color-primary, #6778a4);
    outline-offset: 2px;
}

/* Kept on its own: a browser without :user-invalid drops only this rule. */
.fcp-vt .fcp-vt__choice input:user-invalid + span {
    border-color: #dc2626;
}
