/* The vendor application on /joinourteam: section headings and photo pickers. */
.form-step {
    display: flex;
    flex-direction: column;
    gap: 28px;
    border: none;
    padding: 0;
    margin: 0;
    min-width: 0;
}
.form-step + .form-step {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 32px;
}
.form-step > h3 {
    font-size: 1.2rem;
    color: var(--white);
    margin: 0;
}
#formError { margin-bottom: 28px; }
.form-hint {
    font-size: 0.85rem;
    color: var(--gray-400);
    line-height: 1.5;
}
.vendor-form [aria-invalid="true"] { border-color: var(--primary); }
.radio-option input[aria-invalid="true"] + label { border-color: var(--primary); }
.radio-option input:focus-visible + label { box-shadow: 0 0 0 3px rgba(212, 43, 43, 0.35); }

.photo-drop {
    position: relative;
    display: block;
    padding: 22px 16px;
    background: var(--dark-3);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    text-align: center;
    color: var(--gray-400);
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color var(--transition);
}
.photo-drop:hover,
.photo-drop.dragging,
.photo-drop:focus-within { border-color: var(--primary); }
.photo-drop strong { color: var(--white); }
.photo-drop input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}
.photo-drop.full { opacity: 0.5; pointer-events: none; }
.photo-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
    gap: 12px;
}
.photo-grid:empty { display: none; }
.photo-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--dark-3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.photo-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-item.uploading img { opacity: 0.4; }
.photo-item.failed { border-color: var(--primary); }
.photo-item.failed img { opacity: 0.25; }
.photo-state {
    position: absolute;
    inset: auto 0 0 0;
    padding: 5px 6px;
    background: rgba(0, 0, 0, 0.75);
    color: var(--white);
    font-size: 0.72rem;
    line-height: 1.3;
    text-align: center;
}
.photo-state:empty { display: none; }
.photo-state button {
    background: none;
    border: none;
    color: inherit;
    font: inherit;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}
.photo-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.75);
    color: var(--white);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
}
.photo-remove:focus-visible { outline: 2px solid var(--white); }
.photo-message { font-size: 0.85rem; color: var(--primary-light); }
.photo-message:empty { display: none; }
