/* Inspiration-image uploader — shared by /contact and the discovery brief.
   The discovery brief is a standalone page that does not load site.css, so every
   value here either stands alone or falls back to a literal. */

.rv-up {
    --rv-up-border: var(--border-color, rgba(0, 0, 0, 0.12));
    --rv-up-bg: var(--bg-input, #F4F4F5);
    --rv-up-text: var(--text-primary, #111);
    --rv-up-muted: var(--text-muted, #737373);
    --rv-up-accent: var(--color-primary, #000);
    --rv-up-danger: #DC2626;
}

.rv-up-zone {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 28px 20px;
    text-align: center;
    background: var(--rv-up-bg);
    border: 1.5px dashed var(--rv-up-border);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.rv-up-zone:hover,
.rv-up-zone:focus-visible {
    border-color: var(--rv-up-accent);
    outline: none;
}

.rv-up-zone.is-dragging {
    border-color: var(--rv-up-accent);
    border-style: solid;
    transform: scale(1.01);
}

.rv-up-zone.is-full {
    opacity: .55;
    cursor: not-allowed;
}

.rv-up-icon {
    font-size: 1.5rem;
    line-height: 1;
    color: var(--rv-up-accent);
}

.rv-up-title {
    font-size: .95rem;
    font-weight: 600;
    color: var(--rv-up-text);
}

.rv-up-hint {
    font-size: .78rem;
    color: var(--rv-up-muted);
}

.rv-up-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.rv-up-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.rv-up-grid:empty {
    display: none;
}

.rv-up-item {
    position: relative;
    border: 1px solid var(--rv-up-border);
    border-radius: 10px;
    overflow: hidden;
    background: var(--rv-up-bg);
}

.rv-up-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background: var(--rv-up-bg);
}

.rv-up-doc {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    color: var(--rv-up-muted);
}

.rv-up-name {
    display: block;
    padding: 6px 8px;
    font-size: .68rem;
    line-height: 1.3;
    color: var(--rv-up-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-top: 1px solid var(--rv-up-border);
}

.rv-up-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, .68);
    color: #fff;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    transition: opacity .15s ease;
}

.rv-up-item:hover .rv-up-remove,
.rv-up-remove:focus-visible {
    opacity: 1;
}

/* Uploading / failed states */
.rv-up-item.is-busy .rv-up-thumb,
.rv-up-item.is-busy .rv-up-doc {
    opacity: .4;
}

.rv-up-bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 26px;
    height: 3px;
    background: rgba(0, 0, 0, .12);
    overflow: hidden;
}

.rv-up-bar span {
    display: block;
    height: 100%;
    width: 0;
    background: var(--rv-up-accent);
    transition: width .2s ease;
}

.rv-up-item.is-error {
    border-color: var(--rv-up-danger);
}

.rv-up-item.is-error .rv-up-name {
    color: var(--rv-up-danger);
}

.rv-up-error {
    margin-top: 10px;
    font-size: .8rem;
    color: var(--rv-up-danger);
}

.rv-up-error:empty {
    display: none;
}

@media (max-width: 520px) {
    .rv-up-grid {
        grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
    }
}
