.bvm-membership {
    border: 1px solid #dadfe4;
    padding: 1.5rem;
    border-radius: 8px;
    background: #fff;
    max-width: 720px;
}

.bvm-form fieldset {
    border: 1px solid #e2e8f0;
    margin-bottom: 1.5rem;
    padding: 1rem;
}

.bvm-form legend {
    font-weight: 600;
    padding: 0 0.5rem;
}

.bvm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.bvm-form label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.95rem;
}

.bvm-form .bvm-choice {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    align-items: flex-start;
}

.bvm-form .bvm-choice input[type="radio"],
.bvm-form .bvm-choice input[type="checkbox"] {
    margin: 0;
    margin-top: 0.2rem;
}

.bvm-form .bvm-choice span {
    flex: 1;
    min-width: 0;
    line-height: 1.4;
}

.bvm-form .bvm-choice--inline {
    align-items: center;
}

.bvm-form .bvm-choice--inline span {
    flex: 0;
}

.bvm-form .bvm-choice--block {
    align-items: flex-start;
    flex-wrap: wrap;
}

.bvm-form input[type="text"],
.bvm-form input[type="email"],
.bvm-form input[type="date"],
.bvm-form input[type="file"] {
    padding: 0.5rem;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
}

.bvm-btn {
    background: #d23c28;
    border: none;
    color: #fff;
    padding: 0.8rem 1.4rem;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
}

.bvm-btn:hover {
    background: #b23021;
}

.bvm-btn--danger {
    background: #991b1b;
}

.bvm-btn--danger:hover {
    background: #7f1d1d;
}

.bvm-btn--ghost {
    background: transparent;
    border: 1px solid #d23c28;
    color: #d23c28;
}

.bvm-btn--ghost:hover {
    background: rgba(210, 60, 40, 0.08);
}

.bvm-form__actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.bvm-alert {
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.bvm-alert--info {
    background: #e0f2fe;
    color: #04324d;
}

.bvm-alert--success {
    background: #ecfdf5;
    color: #064e3b;
}

.bvm-alert--error {
    background: #fee2e2;
    color: #7f1d1d;
}

.bvm-alert--warning {
    background: #fef3c7;
    color: #92400e;
}

.bvm-applicant--secondary {
    display: none;
}

.bvm-existing-request {
    padding: 1rem;
    border: 1px dashed #cbd5e1;
    border-radius: 6px;
    background: #f8fafc;
}

.bvm-existing-request__form {
    margin: 0.75rem 0;
}

.bvm-existing-request__note {
    font-size: 0.9rem;
    color: #475569;
}

.bvm-delete-callout {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1rem;
    border: 1px solid #fecaca;
    background: #fef2f2;
    border-radius: 6px;
    margin-bottom: 1.25rem;
}

.bvm-delete-callout p {
    margin: 0;
    flex: 1;
    min-width: 220px;
}

.bvm-delete-callout .bvm-btn {
    flex-shrink: 0;
}

.bvm-signature {
    border-style: dashed;
}

.bvm-signature__help {
    margin-top: 0;
    color: #475569;
    font-size: 0.95rem;
}

.bvm-signature__preview {
    border: 1px dashed #94a3b8;
    border-radius: 6px;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    margin-bottom: 0.75rem;
    background: #f8fafc;
}

.bvm-signature__preview img {
    max-width: 100%;
    height: auto;
}

.bvm-signature__actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.bvm-signature-modal__body--pad {
    padding: 0;
    background: #f8fafc;
}

.bvm-signature-pad {
    display: block;
    width: 100%;
    height: 280px;
    background: #fff;
    cursor: crosshair;
    touch-action: none;
}

.bvm-signature--fallback input[type="file"] {
    display: block;
    position: static;
}

.bvm-signature-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 1000;
}

.bvm-signature-modal.is-visible {
    display: block;
}

.bvm-signature-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
}

.bvm-signature-modal__dialog {
    position: relative;
    max-width: 640px;
    margin: 5vh auto;
    background: #fff;
    border-radius: 8px;
    padding: 1rem 1.25rem 1.25rem;
    box-shadow: 0 25px 50px rgba(15, 23, 42, 0.2);
    z-index: 1;
}

.bvm-signature-modal__body {
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    overflow: hidden;
    max-height: 60vh;
}

.bvm-signature-modal__body img {
    max-width: 100%;
    display: block;
}

.bvm-signature-modal footer {
    margin-top: 1rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}
