/* ── VIP Submissions — Formulario frontend ───────────────────────────────── */

.vipsub-form-wrap {
    max-width: 760px;
    margin: 0 auto;
    font-family: inherit;
}

.vipsub-heading {
    margin-bottom: 6px;
}

.vipsub-intro {
    color: #666;
    margin-bottom: 28px;
}

/* ── Notices ──────────────────────────────────────────────────────────────── */
.vipsub-notice {
    border-left: 4px solid #ccc;
    padding: 14px 18px;
    margin-bottom: 24px;
    border-radius: 4px;
    line-height: 1.55;
}
.vipsub-success {
    border-color: #2ecc71;
    background: #f0fdf4;
    color: #1a6b3c;
}
.vipsub-error {
    border-color: #e74c3c;
    background: #fff5f5;
    color: #8b1a1a;
}
.vipsub-info {
    border-color: #3498db;
    background: #f0f8ff;
    color: #1a4a8b;
}

/* ── Campos ───────────────────────────────────────────────────────────────── */
.vipsub-form .vipsub-field {
    margin-bottom: 24px;
}

.vipsub-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 7px;
    font-size: 0.97em;
}

.vipsub-form .req {
    color: #e74c3c;
}

.vipsub-form input[type="text"],
.vipsub-form select,
.vipsub-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 14px;
    border: 1.5px solid #d0d0d0;
    border-radius: 6px;
    font-size: 1em;
    font-family: inherit;
    color: #222;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.vipsub-form input[type="text"]:focus,
.vipsub-form select:focus,
.vipsub-form textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
    outline: none;
}

.vipsub-form textarea {
    resize: vertical;
    min-height: 180px;
    line-height: 1.65;
}

.vipsub-hint {
    font-size: 0.82em;
    color: #888;
    margin-top: 6px;
}

/* ── Zona de upload ───────────────────────────────────────────────────────── */
.vipsub-upload-area {
    border: 2px dashed #c8d0e0;
    border-radius: 8px;
    padding: 28px 20px 20px;
    background: #f8fafc;
    text-align: center;
    transition: border-color 0.2s, background 0.2s;
    cursor: pointer;
    position: relative;
}

.vipsub-upload-area.dragover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.vipsub-upload-area input[type="file"] {
    /* Solo cubre el label de subida, no las miniaturas */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    /* Altura fija que cubre solo el label, no el preview */
    height: 110px;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.vipsub-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: #555;
    pointer-events: none;
    /* Altura explícita para coincidir con el input */
    min-height: 80px;
    justify-content: center;
}

.vipsub-upload-icon {
    font-size: 2.4em;
    line-height: 1;
}

.vipsub-upload-label small {
    color: #999;
    font-size: 0.8em;
}

/* ── Previsualizaciones ───────────────────────────────────────────────────── */
.vipsub-preview-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 16px;
    position: relative;
    z-index: 3; /* por encima del input file */
    pointer-events: none;
}

.vipsub-thumb {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 100px;
}

.vipsub-thumb img {
    width: 100px;
    height: 75px;
    object-fit: cover;
    border-radius: 5px;
    border: 1px solid #dde;
    box-shadow: 0 1px 4px rgba(0,0,0,.1);
}

.vipsub-thumb span {
    font-size: 0.72em;
    color: #666;
    text-align: center;
    word-break: break-all;
}

/* ── Botón ────────────────────────────────────────────────────────────────── */
.vipsub-actions {
    margin-top: 32px;
}

.vipsub-btn {
    display: inline-block;
    padding: 13px 32px;
    background: #1a56db;
    color: #fff;
    font-size: 1.02em;
    font-weight: 600;
    border: none;
    border-radius: 7px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    text-decoration: none;
}

.vipsub-btn:hover {
    background: #1644b0;
    transform: translateY(-1px);
}

.vipsub-btn:active {
    transform: translateY(0);
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .vipsub-form-wrap {
        padding: 0 4px;
    }
    .vipsub-thumb {
        width: 80px;
    }
    .vipsub-thumb img {
        width: 80px;
        height: 60px;
    }
}

/* ── Campo imagen destacada ───────────────────────────────────────────────── */
.vipsub-featured-info {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 7px;
    padding: 11px 15px;
    margin-bottom: 12px;
    font-size: 0.93em;
    color: #555;
    line-height: 1.5;
}
