.vcard-app {
    margin-inline: auto;
    max-width: 1140px;
}

.vcard-sections {
    display: grid;
    gap: 1rem;
}

.vcard-section {
    min-width: 0;
}

.vcard-section > legend {
    float: none;
    width: auto;
}

.vcard-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vcard-wide {
    grid-column: 1 / -1;
}

.vcard-repeatable-group + .vcard-repeatable-group {
    border-top: 1px solid var(--bs-border-color);
    margin-top: 1.25rem;
    padding-top: 1.25rem;
}

.vcard-repeatable-list {
    display: grid;
    gap: .75rem;
    margin-top: .75rem;
}

.vcard-repeatable-row {
    align-items: start;
    display: grid;
    gap: .5rem;
    grid-template-columns: minmax(8rem, .35fr) minmax(12rem, 1fr) auto;
}

.vcard-photo-preview {
    border: 1px solid var(--bs-border-color);
    border-radius: 50%;
    display: block;
    height: 8rem;
    margin-top: 1rem;
    object-fit: cover;
    width: 8rem;
}

.vcard-submit-panel {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1rem;
}

@media (max-width: 767.98px) {
    .vcard-grid,
    .vcard-repeatable-row {
        grid-template-columns: 1fr;
    }

    .vcard-repeatable-row .btn {
        justify-self: start;
    }

    .vcard-submit-panel .btn {
        width: 100%;
    }
}
