/* CONTENEDOR GENERAL DEL FORMULARIO */
.cavp-form-wrapper {
    max-width: 100%;
    margin: 0;
    border: none;
    border-radius: 0;
    padding: 10px 0 20px;
    background: #ffffff;
    box-sizing: border-box;
    font-size: 15px;
}

.cavp-form-wrapper h3 {
    margin-top: 0;
    margin-bottom: 15px;
    text-align: left;
    font-size: 22px;
}

.cavp-section {
    margin-bottom: 20px;
    border-bottom: 1px solid #e1e1e1;
    padding-bottom: 15px;
}

.cavp-section:last-of-type {
    border-bottom: none;
}

.cavp-section h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 18px;
}

/* CAMPOS GENERALES */
.cavp-field {
    margin-bottom: 12px;
}

.cavp-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 15px;
}

.cavp-field input[type="text"],
.cavp-field input[type="email"],
.cavp-field input[type="number"],
.cavp-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 9px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 15px;
}

.cavp-field textarea {
    resize: vertical;
}

.cavp-field small,
.cavp-note {
    font-size: 12px;
    color: #666;
}

.cavp-field-inline {
    display: flex;
    gap: 10px;
}

.cavp-field-half {
    flex: 1;
}

/* INPUT FILE OCULTO + BOTÓN CUSTOM */
.cavp-input-hidden {
    display: none;
}

.cavp-upload-btn {
    display: inline-block;
    padding: 8px 16px;
    margin-bottom: 6px;
    background: #2271b1;
    color: #fff;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.cavp-upload-btn:hover {
    background: #135e96;
}

.cavp-file-names {
    margin-top: 4px;
    font-size: 13px;
    color: #444;
}

/* LISTAS DE OPCIONES VISIBLES (RADIOS EN REJILLA) */
.cavp-options-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
    margin-top: 6px;
}

.cavp-option-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    background: #ffffff;
    cursor: pointer;
    font-size: 15px;
    user-select: none;
    box-sizing: border-box;
}

.cavp-option-item input[type="radio"],
.cavp-option-item input[type="checkbox"] {
    margin: 0;
}

.cavp-option-item span {
    display: inline-block;
}

/* PREVIEW DE IMÁGENES */
.cavp-preview-grid {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cavp-preview-item {
    position: relative;
    width: 90px;
    height: 90px;
    border-radius: 4px;
    border: 1px solid #ccc;
    overflow: hidden;
    background: #f5f5f5;
}

.cavp-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cavp-preview-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    border-radius: 2px;
    font-size: 11px;
    padding: 1px 4px;
    cursor: pointer;
}

/* PREVIEW DE VIDEO */
.cavp-preview-video-box {
    margin-top: 10px;
}

.cavp-preview-video-inner {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #f9f9f9;
    max-width: 320px;
}

.cavp-preview-video-inner video {
    width: 100%;
    max-height: 180px;
}

.cavp-preview-video-name {
    font-size: 13px;
    word-break: break-all;
}

.cavp-preview-video-remove {
    align-self: flex-end;
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 3px;
    border: none;
    background: #dc3232;
    color: #fff;
    cursor: pointer;
}

/* SUBMIT */
.cavp-submit-section {
    text-align: center;
}

.cavp-submit-section button {
    display: inline-block;
    padding: 11px 22px;
    background: #2271b1;
    color: #fff;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 15px;
}

.cavp-submit-section button:hover {
    background: #135e96;
}

/* MENSAJES */
.cavp-errors {
    border: 1px solid #dc3232;
    background: #ffe5e5;
    color: #a00;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
}

.cavp-errors ul {
    margin: 0;
    padding-left: 18px;
}

.cavp-success {
    border: 1px solid #46b450;
    background: #e7f7ea;
    color: #217a2c;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
}

/* RESPONSIVE MÓVIL */
@media (max-width: 600px) {

    .cavp-field-inline {
        flex-direction: column;
    }

    .cavp-form-wrapper h3 {
        font-size: 20px;
    }

    .cavp-section h4 {
        font-size: 17px;
    }
}
/* ====== AUMENTAR TIPOGRAFÍA COMPLETA DEL FORMULARIO ====== */
.cavp-form-wrapper {
    font-size: 18px !important;   /* tamaño general */
    line-height: 1.55 !important;
}

/* Títulos */
.cavp-form-wrapper h4 {
    font-size: 22px !important;
    margin-bottom: 10px;
}

/* Etiquetas del formulario */
.cavp-form-wrapper label {
    font-size: 18px !important;
    font-weight: 600;
}

/* Inputs y textarea */
.cavp-form-wrapper input[type="text"],
.cavp-form-wrapper input[type="email"],
.cavp-form-wrapper input[type="number"],
.cavp-form-wrapper textarea {
    font-size: 18px !important;
    padding: 10px 14px !important;
}

/* Radios y checkboxes */
.cavp-form-wrapper .cavp-option-item span {
    font-size: 18px !important;
}

/* Mensajes y notas */
.cavp-note {
    font-size: 16px !important;
}

/* Botón enviar */
.cavp-submit-btn {
    font-size: 20px !important;
    padding: 14px 22px !important;
}

/* Texto en el overlay "estamos subiendo tu anuncio" */
.cavp-loading-box p {
    font-size: 18px !important;
}
/* ====== TIPOGRAFÍA GRANDE Y CÓMODA ====== */
.cavp-form-wrapper {
    font-size: 20px !important; /* tamaño general */
    line-height: 1.6 !important;
}

/* Títulos */
.cavp-form-wrapper h4 {
    font-size: 24px !important;
    font-weight: 700;
    margin-bottom: 12px;
}

/* Etiquetas del formulario */
.cavp-form-wrapper label {
    font-size: 20px !important;
    font-weight: 600;
}

/* Inputs y textarea */
.cavp-form-wrapper input[type="text"],
.cavp-form-wrapper input[type="email"],
.cavp-form-wrapper input[type="number"],
.cavp-form-wrapper textarea {
    font-size: 20px !important;
    padding: 12px 16px !important;
}

/* Radios y checkboxes */
.cavp-form-wrapper .cavp-option-item span {
    font-size: 20px !important;
}

/* Mensajes pequeños */
.cavp-note {
    font-size: 18px !important;
}

/* Botón publicar */
.cavp-submit-btn,
.cavp-form-wrapper button[type="submit"] {
    font-size: 22px !important;
    padding: 16px 26px !important;
}

/* Texto dentro del overlay de carga */
.cavp-loading-box p {
    font-size: 20px !important;
}
/* ================================
   FAKE PROGRESS BAR (PUBLICAR)
   ================================ */

.cavp-fakebar {
    width: 100%;
    height: 12px;
    background: #e6e6e6;
    border-radius: 999px;
    overflow: hidden;
    margin: 12px 0 6px;
}

.cavp-fakebar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(
        90deg,
        #25d366,
        #22c55e,
        #16a34a
    );
    border-radius: 999px;
    transition: width 0.3s ease;
}

.cavp-fakebar-text {
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    color: #333;
}
