/* QB Club Config Form — estilos del formulario frontend
   Sobrescribe el maquetado por defecto de acf_form() */

.qbccf-wrapper {
    --qbccf-primary: #1e7d4f;
    --qbccf-primary-dark: #145c39;
    --qbccf-border: #e2e5e9;
    --qbccf-bg-card: #ffffff;
    --qbccf-text: #2b2f33;
    --qbccf-radius: 12px;

    max-width: 1200px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--qbccf-text);
}

/* Contenedor tipo tarjeta */
.qbccf-wrapper .acf-form {
    background: var(--qbccf-bg-card);
    border: 1px solid var(--qbccf-border);
    border-radius: var(--qbccf-radius);
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

/* Oculta el texto de instrucciones "genérico" de ACF, cada campo lleva su propio label */
.qbccf-wrapper .acf-form .acf-field .description {
    font-size: 13px;
    color: #6b7280;
    margin-top: 4px;
}

.qbccf-wrapper .acf-form .acf-label label {
    font-weight: 600;
    font-size: 14px;
    color: var(--qbccf-text);
}

.qbccf-wrapper .acf-form .acf-input input[type="text"],
.qbccf-wrapper .acf-form .acf-input input[type="email"],
.qbccf-wrapper .acf-form .acf-input input[type="date"],
.qbccf-wrapper .acf-form .acf-input select,
.qbccf-wrapper .acf-form .acf-input textarea {
    border: 1px solid var(--qbccf-border);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 15px;
    width: 100%;
    transition: border-color 0.15s ease;
}

.qbccf-wrapper .acf-form .acf-input input:focus,
.qbccf-wrapper .acf-form .acf-input select:focus,
.qbccf-wrapper .acf-form .acf-input textarea:focus {
    border-color: var(--qbccf-primary);
    outline: none;
}

/* Separación entre campos */
.qbccf-wrapper .acf-form .acf-field {
    border: none;
    padding: 16px 0;
    border-bottom: 1px solid #f1f2f4;
}

.qbccf-wrapper .acf-form .acf-field:last-of-type {
    border-bottom: none;
}

/* Botón de guardar */
.qbccf-btn-guardar {
    background: var(--qbccf-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 12px;
    transition: background 0.15s ease, transform 0.1s ease;
}

.qbccf-btn-guardar:hover {
    background: var(--qbccf-primary-dark);
}

.qbccf-btn-guardar:active {
    transform: scale(0.98);
}

.qbccf-btn-guardar.qbccf-loading {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Mensaje de éxito al guardar */
.qbccf-wrapper .acf-form .updated {
    background: #ecfdf3;
    border: 1px solid #6ce9a6;
    color: var(--qbccf-primary-dark);
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

/* Aviso de acceso restringido */
.qbccf-aviso {
    max-width: 480px;
    margin: 40px auto;
    text-align: center;
    padding: 20px;
    background: #fef3f2;
    border: 1px solid #fda29b;
    border-radius: var(--qbccf-radius);
    color: #b42318;
}

/* Responsive */
@media (max-width: 600px) {
    .qbccf-wrapper .acf-form {
        padding: 20px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
}
