﻿/* ── Contact: video upload ───────────────────────────────────── */
.tn-upload {
    position: relative;
    padding: 1.5rem;
    text-align: center;
    border: 2px dashed var(--tblr-border-color);
    border-radius: 16px;
    background: var(--tblr-bg-surface-secondary);
    transition: border-color 0.2s, background 0.2s;
}

    .tn-upload.is-dragover {
        border-color: var(--tblr-primary);
        background: rgba(var(--tblr-primary-rgb), 0.06);
    }

.tn-upload-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.tn-upload-icon {
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.tn-upload-name {
    font-weight: 600;
    word-break: break-all;
}

/* ── Contact: error banner ───────────────────────────────────── */
.tn-error-banner {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-radius: 14px;
    background: #dc2626;
    color: #ffffff;
    box-shadow: 0 14px 34px rgba(220, 38, 38, 0.35);
    animation: tn-error-in 0.4s ease-out;
}

.tn-error-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.tn-error-title {
    font-size: 1.125rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.tn-error-text {
    font-size: 1rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.95);
}

@keyframes tn-error-in {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .tn-error-banner {
        animation: none;
    }
}